Commit c8069a6f authored by Thong Kuah's avatar Thong Kuah
Browse files

Merge branch 'crossplane-options-ado' into 'master'

feat: Options to provision managed Postgres using Crossplane

See merge request gitlab-org/cluster-integration/auto-deploy-image!37
parents 846b06cf a51233b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ build:

test-shellcheck:
  stage: test
  image: koalaman/shellcheck-alpine
  image: koalaman/shellcheck-alpine:stable
  script:
    - shellcheck src/bin/auto-deploy

+6 −0
Original line number Diff line number Diff line
@@ -102,6 +102,8 @@ function deploy() {

  service_enabled="true"
  postgres_enabled="$POSTGRES_ENABLED"
  postgres_managed="$AUTO_DEVOPS_POSTGRES_MANAGED"
  postgres_managed_selector="$AUTO_DEVOPS_POSTGRES_MANAGED_CLASS_SELECTOR"

  # if track is different than stable,
  # re-use all attached resources
@@ -159,6 +161,8 @@ function deploy() {
      --set service.additionalHosts="$additional_hosts" \
      --set replicaCount="$replicas" \
      --set postgresql.enabled="$postgres_enabled" \
      --set postgresql.managed="$postgres_managed" \
      --set postgresql.managedClassSelector="$postgres_managed_selector" \
      --set postgresql.nameOverride="postgres" \
      --set postgresql.postgresUser="$POSTGRES_USER" \
      --set postgresql.postgresPassword="$POSTGRES_PASSWORD" \
@@ -204,6 +208,8 @@ function deploy() {
      --set service.additionalHosts="$additional_hosts" \
      --set replicaCount="$replicas" \
      --set postgresql.enabled="$postgres_enabled" \
      --set postgresql.managed="$postgres_managed" \
      --set postgresql.managedClassSelector="$postgres_managed_selector" \
      --set postgresql.nameOverride="postgres" \
      --set postgresql.postgresUser="$POSTGRES_USER" \
      --set postgresql.postgresPassword="$POSTGRES_PASSWORD" \