diff --git a/codefresh/.ci/values/values-install-only.yaml b/codefresh/.ci/values/values-install-only.yaml new file mode 100644 index 0000000000..7cb1966a83 --- /dev/null +++ b/codefresh/.ci/values/values-install-only.yaml @@ -0,0 +1,12 @@ +# -- checking postgresql password with special characters +postgresql: + auth: + postgresPassword: "e%C9ar$Yka4Zb!H" + +secrets: + ext-postgres: + enabled: true + stringData: + postgres-hostname: cf-postgresql + postgres-password: e%C9ar$Yka4Zb!H + postgres-user: postgres diff --git a/codefresh/.ci/values/values-upgrade.yaml b/codefresh/.ci/values/values-upgrade-only.yaml similarity index 100% rename from codefresh/.ci/values/values-upgrade.yaml rename to codefresh/.ci/values/values-upgrade-only.yaml diff --git a/codefresh/Chart.lock b/codefresh/Chart.lock index f619043480..09ca4f4bfe 100644 --- a/codefresh/Chart.lock +++ b/codefresh/Chart.lock @@ -142,18 +142,18 @@ dependencies: version: 0.8.7 - name: cf-platform-analytics repository: oci://quay.io/codefresh/charts - version: 0.49.63 + version: 0.49.65 - name: cf-platform-analytics repository: oci://quay.io/codefresh/charts - version: 0.49.63 + version: 0.49.65 - name: argo-platform repository: oci://quay.io/codefresh/charts - version: 1.3037.0-onprem-680e6c9 + version: 1.3037.0-onprem-fb06d0a - name: argo-hub-platform repository: oci://quay.io/codefresh/charts version: 0.1.16 - name: cf-oidc-provider repository: oci://quay.io/codefresh/charts version: 0.0.15 -digest: sha256:5caa90b76bb269d520322473dd9014d852412bdcfd912af7d99255e2ae8fd9e1 -generated: "2024-10-11T09:24:24.192115705+03:00" +digest: sha256:5f3103c713ddac080b88d73dbb094b2bc02406d87fda6f130bb89abdc2690e3d +generated: "2024-10-18T22:52:29.468059483+03:00" diff --git a/codefresh/Chart.yaml b/codefresh/Chart.yaml index 09cc6971fb..af0063cdf0 100644 --- a/codefresh/Chart.yaml +++ b/codefresh/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Helm Chart for Codefresh On-Prem name: codefresh -version: 2.5.4 +version: 2.5.5 keywords: - codefresh home: https://codefresh.io/ @@ -18,8 +18,8 @@ annotations: # artifacthub.io/containsSecurityUpdates: "true" # supported kinds are added, changed, deprecated, removed, fixed and security. artifacthub.io/changes: | - - kind: changed - description: "Enable allow-snippet-annotations by default for ingress-nginx" + - kind: fixed + description: "encode special characters in postgresql password (argo-platform)" dependencies: - name: cf-common repository: oci://quay.io/codefresh/charts @@ -237,7 +237,7 @@ dependencies: repository: oci://quay.io/codefresh/charts condition: argo-platform.enabled - name: argo-platform - version: "1.3037.0-onprem-680e6c9" + version: "1.3037.0-onprem-fb06d0a" repository: oci://quay.io/codefresh/charts condition: argo-platform.enabled - name: argo-hub-platform diff --git a/codefresh/README.md b/codefresh/README.md index b54a96c120..c81148de5d 100644 --- a/codefresh/README.md +++ b/codefresh/README.md @@ -1,6 +1,6 @@ ## Codefresh On-Premises -![Version: 2.5.4](https://img.shields.io/badge/Version-2.5.4-informational?style=flat-square) ![AppVersion: 2.5.0](https://img.shields.io/badge/AppVersion-2.5.0-informational?style=flat-square) +![Version: 2.5.5](https://img.shields.io/badge/Version-2.5.5-informational?style=flat-square) ![AppVersion: 2.5.0](https://img.shields.io/badge/AppVersion-2.5.0-informational?style=flat-square) Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/getting-started/intro-to-codefresh/) to Kubernetes. diff --git a/codefresh/templates/secrets/secret.yaml b/codefresh/templates/secrets/secret.yaml index 8d832196fe..06d794d843 100644 --- a/codefresh/templates/secrets/secret.yaml +++ b/codefresh/templates/secrets/secret.yaml @@ -26,7 +26,7 @@ stringData: POSTGRES_USER: {{ coalesce .Values.global.postgresUser }} POSTGRES_PASSWORD: {{ coalesce .Values.global.postgresPassword }} POSTGRES_SEED_USER: {{ (coalesce .Values.seed.postgresSeedJob.postgresUser .Values.global.postgresSeedJob.postgresUser) | default .Values.global.postgresUser }} - POSTGRES_SEED_PASSWORD: {{ (coalesce .Values.seed.postgresSeedJob.postgresPassword .Values.global.postgresSeedJob.postgresPassword) | default .Values.global.postgresPassword }} + POSTGRES_SEED_PASSWORD: {{ urlquery ((coalesce .Values.seed.postgresSeedJob.postgresPassword .Values.global.postgresSeedJob.postgresPassword) | default .Values.global.postgresPassword) }} POSTGRES_HOSTNAME: {{ default (printf "%s-%s" .Release.Name .Values.global.postgresService) .Values.global.postgresHostname }} POSTGRES_PORT: {{ coalesce .Values.global.postgresPort | default 5432 | quote }} - POSTGRES_DATABASE: {{ .Values.global.postgresDatabase | default "codefresh" }} \ No newline at end of file + POSTGRES_DATABASE: {{ .Values.global.postgresDatabase | default "codefresh" }} diff --git a/codefresh/templates/seed/postgres-seed-job.yaml b/codefresh/templates/seed/postgres-seed-job.yaml index 4791920025..5a18b31e9d 100644 --- a/codefresh/templates/seed/postgres-seed-job.yaml +++ b/codefresh/templates/seed/postgres-seed-job.yaml @@ -39,6 +39,10 @@ spec: {{- include "codefresh.postgres-password-env-var-value" . | indent 12 }} - name: POSTGRES_HOSTNAME {{- include "codefresh.postgres-host-env-var-value" . | indent 12 }} + - name: POSTGRES_SEED_USER + {{- include "codefresh.postgres-seed-user-env-var-value" . | indent 12 }} + - name: POSTGRES_SEED_PASSWORD + {{- include "codefresh.postgres-seed-password-env-var-value" . | indent 12 }} resources: {{- toYaml .Values.seed.resources | nindent 10 }} command: