Skip to content

Commit

Permalink
Merge pull request #1 from andrelcalves/bootstrap-cli
Browse files Browse the repository at this point in the history
adding functions for prod and test enviroment
  • Loading branch information
andrelcalves authored Feb 20, 2024
2 parents 1c37ed5 + c170263 commit b47bb5e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
# Each environment should have a corresponding github environment with secrets.
environment:
- test
- prod

environment: ${{ matrix.environment }}

Expand Down
2 changes: 1 addition & 1 deletion common/function_config_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# configurations files in specific function folder.
tenant_id: 16e3985b-ebe8-4e24-9da4-933e21a9fc81
cdf_cluster: westeurope-1
cdf_project: cdf-bootcamp-<n>-prod
cdf_project: cdf-bootcamp-41-prod
2 changes: 1 addition & 1 deletion common/function_config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# configurations files in specific function folder.
tenant_id: 16e3985b-ebe8-4e24-9da4-933e21a9fc81
cdf_cluster: westeurope-1
cdf_project: cdf-bootcamp-<n>-test
cdf_project: cdf-bootcamp-41-test
4 changes: 2 additions & 2 deletions execute_rest_extractor/function_config_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ owner: CDF Bootcamp Team
cpu: 1.0
memory: 1.5
env_vars: {"COGNITE_BASE_URL": "https://westeurope-1.cognitedata.com",
"COGNITE_PROJECT": "cdf-bootcamp-<n>-prod",
"COGNITE_PROJECT": "cdf-bootcamp-41-prod",
"COGNITE_TOKEN_URL": "https://login.microsoftonline.com/16e3985b-ebe8-4e24-9da4-933e21a9fc81/oauth2/v2.0/token",
}
data_set_id: <DATA SET ID FOR execute_rest_extractor in PROD environment>
data_set_id: 3380619097314863
4 changes: 2 additions & 2 deletions execute_rest_extractor/function_config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ owner: CDF Bootcamp Team
cpu: 1.0
memory: 1.5
env_vars: {"COGNITE_BASE_URL": "https://westeurope-1.cognitedata.com",
"COGNITE_PROJECT": "cdf-bootcamp-<n>-test",
"COGNITE_PROJECT": "cdf-bootcamp-41-test",
"COGNITE_TOKEN_URL": "https://login.microsoftonline.com/16e3985b-ebe8-4e24-9da4-933e21a9fc81/oauth2/v2.0/token",
}
data_set_id: <DATA SET ID FOR execute_rest_extractor in TEST environment>
data_set_id: 7669077075863878
2 changes: 1 addition & 1 deletion oee_timeseries/function_config_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: "Function to calculate OEE"
owner: CDF Bootcamp Team
cpu: 1.0
memory: 1.5
data_set_id: <DATA SET ID FOR oee_timeseries in PROD environment>
data_set_id: 3380619097314863
2 changes: 1 addition & 1 deletion oee_timeseries/function_config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: "Function to calculate OEE"
owner: CDF Bootcamp Team
cpu: 1.0
memory: 1.5
data_set_id: <DATA SET ID FOR oee_timeseries in TEST environment>
data_set_id: 7669077075863878

0 comments on commit b47bb5e

Please sign in to comment.