From c1702638876e2d75d22222abc5d8d3f6bbd4d2bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Alves?= Date: Tue, 20 Feb 2024 17:57:29 +0000 Subject: [PATCH] adding functions for prod and test enviroment --- .github/workflows/deploy-functions.yaml | 1 + common/function_config_prod.yaml | 2 +- common/function_config_test.yaml | 2 +- execute_rest_extractor/function_config_prod.yaml | 4 ++-- execute_rest_extractor/function_config_test.yaml | 4 ++-- oee_timeseries/function_config_prod.yaml | 2 +- oee_timeseries/function_config_test.yaml | 2 +- 7 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-functions.yaml b/.github/workflows/deploy-functions.yaml index 04a384d..591801e 100644 --- a/.github/workflows/deploy-functions.yaml +++ b/.github/workflows/deploy-functions.yaml @@ -30,6 +30,7 @@ jobs: # Each environment should have a corresponding github environment with secrets. environment: - test + - prod environment: ${{ matrix.environment }} diff --git a/common/function_config_prod.yaml b/common/function_config_prod.yaml index 1f4188b..6ed9b64 100644 --- a/common/function_config_prod.yaml +++ b/common/function_config_prod.yaml @@ -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--prod +cdf_project: cdf-bootcamp-41-prod diff --git a/common/function_config_test.yaml b/common/function_config_test.yaml index 0169d21..546b240 100644 --- a/common/function_config_test.yaml +++ b/common/function_config_test.yaml @@ -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--test +cdf_project: cdf-bootcamp-41-test diff --git a/execute_rest_extractor/function_config_prod.yaml b/execute_rest_extractor/function_config_prod.yaml index 482382f..8a7b99a 100644 --- a/execute_rest_extractor/function_config_prod.yaml +++ b/execute_rest_extractor/function_config_prod.yaml @@ -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--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: 3380619097314863 diff --git a/execute_rest_extractor/function_config_test.yaml b/execute_rest_extractor/function_config_test.yaml index 6a5c056..e434035 100644 --- a/execute_rest_extractor/function_config_test.yaml +++ b/execute_rest_extractor/function_config_test.yaml @@ -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--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: 7669077075863878 diff --git a/oee_timeseries/function_config_prod.yaml b/oee_timeseries/function_config_prod.yaml index dd2183c..e5228cf 100644 --- a/oee_timeseries/function_config_prod.yaml +++ b/oee_timeseries/function_config_prod.yaml @@ -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: 3380619097314863 diff --git a/oee_timeseries/function_config_test.yaml b/oee_timeseries/function_config_test.yaml index c48fde7..bf927ec 100644 --- a/oee_timeseries/function_config_test.yaml +++ b/oee_timeseries/function_config_test.yaml @@ -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: 7669077075863878