From 1f46590213a3a4b87e00bf601cc4fd9c0f775349 Mon Sep 17 00:00:00 2001 From: Piotr Grzeskowiak Date: Wed, 24 Jan 2024 15:24:44 +0000 Subject: [PATCH] NIT-1046 allow the pipeline to modify the dev namespace --- .github/workflows/cloud-platform-deploy-release.yml | 8 +++++--- alfresco-content-services/values_dev.yaml | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 alfresco-content-services/values_dev.yaml diff --git a/.github/workflows/cloud-platform-deploy-release.yml b/.github/workflows/cloud-platform-deploy-release.yml index 8fb3ada..2e7434b 100644 --- a/.github/workflows/cloud-platform-deploy-release.yml +++ b/.github/workflows/cloud-platform-deploy-release.yml @@ -22,7 +22,9 @@ jobs: include: - environment: poc values: values_poc.yaml - # Get this GitHub environment populated with action secrets by raising a CP pull request. See docs at: + - environment: dev + values: values_dev.yaml + # Get this GitHub environment populated with action secrets by raising a CP pull request. See docs at: # https://github.com/ministryofjustice/cloud-platform-terraform-serviceaccount?tab=readme-ov-file#input_github_environments environment: name: ${{ matrix.environment }} @@ -62,8 +64,8 @@ jobs: # Helm will not deploy unless this secret is present. Create a new one if one does not already exist from env section SECRET=$(awk '{print substr($0, 19)}' <<< $(kubectl get secrets alfresco-content-services-alfresco-repository-properties-secret -o jsonpath='{.data.alfresco-global\.properties}' | base64 -d)) 2> /dev/null - if [ -z ${SECRET} ] - then + if [ -z ${SECRET} ] + then SECRET=$(openssl rand -base64 20) fi diff --git a/alfresco-content-services/values_dev.yaml b/alfresco-content-services/values_dev.yaml new file mode 100644 index 0000000..b1cad58 --- /dev/null +++ b/alfresco-content-services/values_dev.yaml @@ -0,0 +1,5 @@ +# this file overrides values defined in ./values.yaml +# repository: +# replicaCount: 1 +# share: +# replicaCount: 1