diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1383b37c..bfbbd1e4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -113,6 +113,19 @@ jobs: exit 1 fi + cat << EOF >> test-values.yaml + extraEnv: + - name: TEST_EXTRA_ENV + value: test-extra-env + EOF + + output=$(helm template oci://ttl.sh/automated-${{ github.run_id }}/replicated --version 0.0.0 --values test-values.yaml) + + if ! echo $output | grep -q 'TEST_EXTRA_ENV'; then + printf "user-set extraEnv should exist:\n\n%s\n\n" "$output" + exit 1 + fi + create-test-release: runs-on: ubuntu-22.04 needs: [ build-and-push-e2e ] @@ -136,7 +149,7 @@ jobs: - name: Create release id: create-release - uses: replicatedhq/replicated-actions/create-release@v1.1.1 + uses: replicatedhq/replicated-actions/create-release@v1.5.2 with: app-slug: ${{ env.APP_SLUG }} api-token: ${{ secrets.C11Y_MATRIX_TOKEN }} diff --git a/chart/templates/replicated-deployment.yaml b/chart/templates/replicated-deployment.yaml index 50b586f5..659c8b58 100644 --- a/chart/templates/replicated-deployment.yaml +++ b/chart/templates/replicated-deployment.yaml @@ -47,6 +47,9 @@ spec: readOnly: true subPath: config.yaml env: + {{- with .Values.extraEnv }} + {{- toYaml . | nindent 8 }} + {{- end }} - name: REPLICATED_NAMESPACE valueFrom: fieldRef: diff --git a/chart/values.yaml.tmpl b/chart/values.yaml.tmpl index 747f4b55..ebf98483 100644 --- a/chart/values.yaml.tmpl +++ b/chart/values.yaml.tmpl @@ -43,6 +43,8 @@ service: type: ClusterIP port: 3000 +extraEnv: [] + # "integration" mode related values. integration: licenseID: ""