Skip to content

Commit

Permalink
Merge pull request #57 from jonchenn/sb-vars
Browse files Browse the repository at this point in the history
added sb-vars and updated copier raw scope for GHA yamls
  • Loading branch information
jonchenn authored Oct 18, 2023
2 parents 7418eb2 + 6473a02 commit ca2430c
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/e2e_gke_api_test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# copier:raw

name: E2E API Tests on GKE Microservices
on:
pull_request:
Expand All @@ -21,7 +23,6 @@ env:
SKAFFOLD_VERSION: 2.4.0
SKAFFOLD_CACHE_GCS: gs://artifacts.gcp-mira-demo.appspot.com/skaffold/cache

# copier:raw
jobs:
deploy:
name: Deploy all microservices in PR namespace
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unit_test_linter_authentication.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# copier:raw

name: Unit test & lint for Authentication Service
on:
push:
Expand All @@ -20,7 +22,6 @@ on:
env:
PROJECT_ID: ${{ vars.PROJECT_ID }}

# copier:raw
jobs:
unit-test:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unit_test_linter_common.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# copier:raw

name: Unit test & linter for Common
on:
push:
Expand All @@ -18,7 +20,6 @@ on:
env:
PROJECT_ID: ${{ vars.PROJECT_ID }}

# copier:raw
jobs:
unit-test:
environment: dev
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unit_test_linter_jobs_service.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# copier:raw

name: Unit test & lint for Jobs Service
on:
push:
Expand All @@ -20,7 +22,6 @@ on:
env:
PROJECT_ID: ${{ vars.PROJECT_ID }}

# copier:raw
jobs:
unit-test:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unit_test_linter_llm_service.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# copier:raw

name: Unit test & lint for LLM Service
on:
push:
Expand All @@ -20,7 +22,6 @@ on:
env:
PROJECT_ID: ${{ vars.PROJECT_ID }}

# copier:raw
jobs:
unit-test:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unit_test_linter_rules_engine.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# copier:raw

name: Unit test & lint for Rules Engine
on:
push:
Expand All @@ -27,7 +29,6 @@ jobs:
matrix:
python-version: [3.9]
target-folder: [components/rules_engine]
# copier:raw
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -97,4 +98,4 @@ jobs:
cd ${{ matrix.target-folder }}/src
python -m pylint $(git ls-files '*.py') --rcfile=$BASE_DIR/.pylintrc
# copier:endraw
# copier:endraw
3 changes: 2 additions & 1 deletion .github/workflows/unit_test_linter_user_management.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# copier:raw

name: Unit test & lint for User Management Service
on:
push:
Expand All @@ -20,7 +22,6 @@ on:
env:
PROJECT_ID: ${{ vars.PROJECT_ID }}

# copier:raw
jobs:
unit-test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion ingress/kustomize/gke/managed_cert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: default-managed-cert
spec:
domains:
- # Fill in your Domain name
- example.com # sb-var:domain_name
10 changes: 7 additions & 3 deletions sb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ components:
custom_component: true
init_script_path: ./components/user_management/src/utils/init.py
created_at: 2023-Jul-19 19:00:45 UTC
global_variables:
cluster_ca_certificate: ''
cluster_external_endpoint: ''
domain_name: example.com
project_id: your-project-id
project_name: core-solution-services
project_number: your-project-number
modified_at: 2023-Jul-19 19:00:45 UTC
project_id: your-project-id
project_name: core-solution-services
project_number: your-project-number
12 changes: 7 additions & 5 deletions terraform/stages/3-gke-ingress/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
project_id = "your-project-id"
region = "us-central1"
project_id = "your-project-id" # sb-var:project_id
region = "us-central1" # sb-var:gcp_region
cluster_name = "main-cluster"
cluster_external_endpoint = ""
cluster_ca_certificate = ""
cluster_external_endpoint = "" # sb-var:cluster_external_endpoint
cluster_ca_certificate = "" # sb-var:cluster_ca_certificate
managed_cert_name = "managed-cert"
frontend_config_name = "default-frontend-config"
domains = []
domains = [
"example.com" # sb-var:domain_name
]

0 comments on commit ca2430c

Please sign in to comment.