From 98333c3fc963c7c1b60332c202e24b7b87a712cb Mon Sep 17 00:00:00 2001 From: Michele Zanotti Date: Mon, 30 Sep 2024 14:39:13 +0200 Subject: [PATCH] fix secret provider class --- templates/secret-provider-class.tpl.yaml | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/templates/secret-provider-class.tpl.yaml b/templates/secret-provider-class.tpl.yaml index 13a721f..21f24a5 100644 --- a/templates/secret-provider-class.tpl.yaml +++ b/templates/secret-provider-class.tpl.yaml @@ -1,45 +1,45 @@ apiVersion: secrets-store.csi.x-k8s.io/v1 kind: SecretProviderClass metadata: - name: nebuly-platform + name: ${secret_provider_class_name} namespace: nebuly spec: provider: gcp secretObjects: - - secretName: nebuly-platform-credentials + - secretName: ${secret_provider_class_secret_name} type: Opaque data: - - key: auth-db-username + - key: ${k8s_secret_key_auth_db_username} objectName: auth-db-username - - key: auth-db-password + - key: ${k8s_secret_key_auth_db_password} objectName: auth-db-password - - key: analytics-db-password + - key: ${k8s_secret_key_analytics_db_password} objectName: analytics-db-password - - key: analytics-db-username + - key: ${k8s_secret_key_analytics_db_username} objectName: analytics-db-username - - key: openai-api-key + - key: ${k8s_secret_key_openai_api_key} objectName: openai-api-key - - key: jwt-signing-key + - key: ${k8s_secret_key_jwt_signing_key} objectName: jwt-signing-key - - key: nebuly-azure-client-id + - key: ${k8s_secret_key_nebuly_client_id} objectName: nebuly-client-id - - key: nebuly-azure-client-secret + - key: ${k8s_secret_key_nebuly_client_secret} objectName: nebuly-client-secret parameters: secrets: | - - resourceName: projects/796017054480/secrets/dev-postgres-auth-username/versions/2 + - resourceName: ${secret_name_auth_db_username} path: auth-db-username - - resourceName: projects/796017054480/secrets/dev-postgres-auth-password/versions/2 + - resourceName: ${secret_name_auth_db_password} path: auth-db-password - - resourceName: projects/796017054480/secrets/dev-postgres-analytics-username/versions/2 + - resourceName: ${secret_name_analytics_db_username} path: analytics-db-username - - resourceName: projects/796017054480/secrets/dev-postgres-analytics-password/versions/2 + - resourceName: ${secret_name_analytics_db_password} path: analytics-db-password - - resourceName: projects/796017054480/secrets/dev-nebuly-client-id/versions/1 + - resourceName: ${secret_name_nebuly_client_id} path: nebuly-client-id - - resourceName: projects/796017054480/secrets/dev-nebuly-client-secret/versions/1 + - resourceName: ${secret_name_nebuly_client_secret} path: nebuly-client-secret - - resourceName: projects/796017054480/secrets/dev-openai-api-key/versions/1 + - resourceName: ${secret_name_openai_api_key} path: openai-api-key - - resourceName: projects/796017054480/secrets/dev-jwt-signing-key/versions/1 + - resourceName: ${secret_name_jwt_signing_key} path: jwt-signing-key