From 2868e397e2ade84afca166241b207f47c1ed1bcc Mon Sep 17 00:00:00 2001 From: xeniape Date: Fri, 8 Aug 2025 13:42:58 +0200 Subject: [PATCH 1/2] chore: update tests and docs to use bitnamilegacy --- .../getting_started/code/getting_started.sh | 11 ++++++++++ .../code/getting_started.sh.j2 | 11 ++++++++++ ...ple-airflow-cluster-ldap-insecure-tls.yaml | 6 +++--- examples/simple-airflow-cluster-ldap.yaml | 6 +++--- .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../kuttl/ldap/30-install-openldap.yaml.j2 | 2 +- .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../ldap/helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../logging/helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../11_helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ .../helm-bitnami-postgresql-values.yaml.j2 | 13 ++++++++++++ .../smoke/helm-bitnami-redis-values.yaml.j2 | 20 +++++++++++++++++++ 27 files changed, 385 insertions(+), 7 deletions(-) diff --git a/docs/modules/airflow/examples/getting_started/code/getting_started.sh b/docs/modules/airflow/examples/getting_started/code/getting_started.sh index 0ab951dc..2cd9f692 100755 --- a/docs/modules/airflow/examples/getting_started/code/getting_started.sh +++ b/docs/modules/airflow/examples/getting_started/code/getting_started.sh @@ -21,6 +21,10 @@ echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redi # tag::helm-add-bitnami-pgs[] helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \ --version 16.5.0 \ + --set image.repository=bitnamilegacy/postgresql \ + --set volumePermissions.image.repository=bitnamilegacy/os-shell \ + --set metrics.image.repository=bitnamilegacy/postgres-exporter \ + --set global.security.allowInsecureImages=true \ --set auth.database=airflow \ --set auth.username=airflow \ --set auth.password=airflow \ @@ -29,6 +33,13 @@ helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgre # tag::helm-add-bitnami-redis[] helm install airflow-redis oci://registry-1.docker.io/bitnamicharts/redis \ --version 20.11.3 \ + --set global.security.allowInsecureImages=true \ + --set image.repository=bitnamilegacy/redis \ + --set sentinel.image.repository=bitnamilegacy/redis-sentinel \ + --set metrics.image.repository=bitnamilegacy/redis-exporter \ + --set volumePermissions.image.repository=bitnamilegacy/os-shell \ + --set kubectl.image.repository=bitnamilegacy/kubectl \ + --set sysctl.image.repository=bitnamilegacy/os-shell \ --set replica.replicaCount=1 \ --set auth.password=redis \ --wait diff --git a/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 b/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 index 71fe8ef3..00adc93e 100755 --- a/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 +++ b/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 @@ -21,6 +21,10 @@ echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redi # tag::helm-add-bitnami-pgs[] helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \ --version {{ versions.postgresql }} \ + --set image.repository=bitnamilegacy/postgresql \ + --set volumePermissions.image.repository=bitnamilegacy/os-shell \ + --set metrics.image.repository=bitnamilegacy/postgres-exporter \ + --set global.security.allowInsecureImages=true \ --set auth.database=airflow \ --set auth.username=airflow \ --set auth.password=airflow \ @@ -29,6 +33,13 @@ helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgre # tag::helm-add-bitnami-redis[] helm install airflow-redis oci://registry-1.docker.io/bitnamicharts/redis \ --version {{ versions.redis }} \ + --set global.security.allowInsecureImages=true \ + --set image.repository=bitnamilegacy/redis \ + --set sentinel.image.repository=bitnamilegacy/redis-sentinel \ + --set metrics.image.repository=bitnamilegacy/redis-exporter \ + --set volumePermissions.image.repository=bitnamilegacy/os-shell \ + --set kubectl.image.repository=bitnamilegacy/kubectl \ + --set sysctl.image.repository=bitnamilegacy/os-shell \ --set replica.replicaCount=1 \ --set auth.password=redis \ --wait diff --git a/examples/simple-airflow-cluster-ldap-insecure-tls.yaml b/examples/simple-airflow-cluster-ldap-insecure-tls.yaml index 8c0cbb0a..e4767ba1 100644 --- a/examples/simple-airflow-cluster-ldap-insecure-tls.yaml +++ b/examples/simple-airflow-cluster-ldap-insecure-tls.yaml @@ -1,7 +1,7 @@ # helm install secret-operator oci://oci.stackable.tech/sdp-charts/secret-operator # helm install commons-operator oci://oci.stackable.tech/sdp-charts/commons-operator -# helm install --repo https://charts.bitnami.com/bitnami --version 12.1.5 --set auth.username=airflow --set auth.password=airflow --set auth.database=airflow airflow-postgresql postgresql -# helm install --repo https://charts.bitnami.com/bitnami --version 17.3.7 --set auth.password=redis --set replica.replicaCount=1 airflow-redis redis +# helm install --repo https://charts.bitnami.com/bitnami --version 12.1.5 --set auth.username=airflow --set auth.password=airflow --set auth.database=airflow --set image.repository=bitnamilegacy/postgresql --set volumePermissions.image.repository=bitnamilegacy/os-shell --set metrics.image.repository=bitnamilegacy/postgres-exporter --set global.security.allowInsecureImages=true airflow-postgresql postgresql +# helm install --repo https://charts.bitnami.com/bitnami --version 17.3.7 --set auth.password=redis --set replica.replicaCount=1 --set global.security.allowInsecureImages=true --set image.repository=bitnamilegacy/redis --set sentinel.image.repository=bitnamilegacy/redis-sentinel --set metrics.image.repository=bitnamilegacy/redis-exporter --set volumePermissions.image.repository=bitnamilegacy/os-shell --set kubectl.image.repository=bitnamilegacy/kubectl --set sysctl.image.repository=bitnamilegacy/os-shell airflow-redis redis # Log in with user01/user01 or user02/user02 --- apiVersion: secrets.stackable.tech/v1alpha1 @@ -36,7 +36,7 @@ spec: spec: containers: - name: openldap - image: docker.io/bitnami/openldap:2.5 + image: docker.io/bitnamilegacy/openldap:2.5 env: - name: LDAP_ADMIN_USERNAME value: admin diff --git a/examples/simple-airflow-cluster-ldap.yaml b/examples/simple-airflow-cluster-ldap.yaml index 63389ee7..029ebc5f 100644 --- a/examples/simple-airflow-cluster-ldap.yaml +++ b/examples/simple-airflow-cluster-ldap.yaml @@ -1,7 +1,7 @@ # helm install secret-operator oci://oci.stackable.tech/sdp-charts/secret-operator # helm install commons-operator oci://oci.stackable.tech/sdp-charts/commons-operator -# helm install --repo https://charts.bitnami.com/bitnami --version 12.1.5 --set auth.username=airflow --set auth.password=airflow --set auth.database=airflow airflow-postgresql postgresql -# helm install --repo https://charts.bitnami.com/bitnami --version 17.3.7 --set auth.password=redis --set replica.replicaCount=1 airflow-redis redis +# helm install --repo https://charts.bitnami.com/bitnami --version 12.1.5 --set auth.username=airflow --set auth.password=airflow --set auth.database=airflow --set image.repository=bitnamilegacy/postgresql --set volumePermissions.image.repository=bitnamilegacy/os-shell --set metrics.image.repository=bitnamilegacy/postgres-exporter --set global.security.allowInsecureImages=true airflow-postgresql postgresql +# helm install --repo https://charts.bitnami.com/bitnami --version 17.3.7 --set auth.password=redis --set replica.replicaCount=1 --set global.security.allowInsecureImages=true --set image.repository=bitnamilegacy/redis --set sentinel.image.repository=bitnamilegacy/redis-sentinel --set metrics.image.repository=bitnamilegacy/redis-exporter --set volumePermissions.image.repository=bitnamilegacy/os-shell --set kubectl.image.repository=bitnamilegacy/kubectl --set sysctl.image.repository=bitnamilegacy/os-shell airflow-redis redis # Log in with user01/user01 or user02/user02 --- apiVersion: secrets.stackable.tech/v1alpha1 @@ -36,7 +36,7 @@ spec: spec: containers: - name: openldap - image: docker.io/bitnami/openldap:2.5 + image: docker.io/bitnamilegacy/openldap:2.5 env: - name: LDAP_ADMIN_USERNAME value: admin diff --git a/tests/templates/kuttl/cluster-operation/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/cluster-operation/helm-bitnami-postgresql-values.yaml.j2 index 12d7da16..80c50924 100644 --- a/tests/templates/kuttl/cluster-operation/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/cluster-operation/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/cluster-operation/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/cluster-operation/helm-bitnami-redis-values.yaml.j2 index ca93a983..0198dc51 100644 --- a/tests/templates/kuttl/cluster-operation/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/cluster-operation/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/external-access/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/external-access/helm-bitnami-postgresql-values.yaml.j2 index f1320d2d..8067902b 100644 --- a/tests/templates/kuttl/external-access/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/external-access/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/external-access/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/external-access/helm-bitnami-redis-values.yaml.j2 index d920abc5..293abaf1 100644 --- a/tests/templates/kuttl/external-access/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/external-access/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/ldap/30-install-openldap.yaml.j2 b/tests/templates/kuttl/ldap/30-install-openldap.yaml.j2 index 56428413..df6bb0de 100644 --- a/tests/templates/kuttl/ldap/30-install-openldap.yaml.j2 +++ b/tests/templates/kuttl/ldap/30-install-openldap.yaml.j2 @@ -46,7 +46,7 @@ commands: fsGroup: 1000 containers: - name: openldap - image: docker.io/bitnami/openldap:2.5 + image: docker.io/bitnamilegacy/openldap:2.5 env: - name: LDAP_ADMIN_USERNAME value: admin diff --git a/tests/templates/kuttl/ldap/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/ldap/helm-bitnami-postgresql-values.yaml.j2 index 12d7da16..80c50924 100644 --- a/tests/templates/kuttl/ldap/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/ldap/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/ldap/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/ldap/helm-bitnami-redis-values.yaml.j2 index ca93a983..0198dc51 100644 --- a/tests/templates/kuttl/ldap/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/ldap/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/logging/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/logging/helm-bitnami-postgresql-values.yaml.j2 index 12d7da16..80c50924 100644 --- a/tests/templates/kuttl/logging/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/logging/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/logging/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/logging/helm-bitnami-redis-values.yaml.j2 index ca93a983..0198dc51 100644 --- a/tests/templates/kuttl/logging/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/logging/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-postgresql-values.yaml.j2 index 12d7da16..80c50924 100644 --- a/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-redis-values.yaml.j2 index ca93a983..0198dc51 100644 --- a/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/mount-dags-configmap/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-postgresql-values.yaml.j2 index 12d7da16..80c50924 100644 --- a/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-redis-values.yaml.j2 index ca93a983..0198dc51 100644 --- a/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/mount-dags-gitsync/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/oidc/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/oidc/helm-bitnami-postgresql-values.yaml.j2 index 951804d6..b7040a7a 100644 --- a/tests/templates/kuttl/oidc/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/oidc/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/opa/11_helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/opa/11_helm-bitnami-postgresql-values.yaml.j2 index 951804d6..b7040a7a 100644 --- a/tests/templates/kuttl/opa/11_helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/opa/11_helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/orphaned-resources/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/orphaned-resources/helm-bitnami-postgresql-values.yaml.j2 index 12d7da16..80c50924 100644 --- a/tests/templates/kuttl/orphaned-resources/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/orphaned-resources/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/orphaned-resources/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/orphaned-resources/helm-bitnami-redis-values.yaml.j2 index ca93a983..0198dc51 100644 --- a/tests/templates/kuttl/orphaned-resources/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/orphaned-resources/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/overrides/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/overrides/helm-bitnami-postgresql-values.yaml.j2 index f1320d2d..8067902b 100644 --- a/tests/templates/kuttl/overrides/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/overrides/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/overrides/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/overrides/helm-bitnami-redis-values.yaml.j2 index d920abc5..293abaf1 100644 --- a/tests/templates/kuttl/overrides/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/overrides/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/resources/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/resources/helm-bitnami-postgresql-values.yaml.j2 index 12d7da16..80c50924 100644 --- a/tests/templates/kuttl/resources/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/resources/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/resources/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/resources/helm-bitnami-redis-values.yaml.j2 index ca93a983..0198dc51 100644 --- a/tests/templates/kuttl/resources/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/resources/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto diff --git a/tests/templates/kuttl/smoke/helm-bitnami-postgresql-values.yaml.j2 b/tests/templates/kuttl/smoke/helm-bitnami-postgresql-values.yaml.j2 index f1320d2d..8067902b 100644 --- a/tests/templates/kuttl/smoke/helm-bitnami-postgresql-values.yaml.j2 +++ b/tests/templates/kuttl/smoke/helm-bitnami-postgresql-values.yaml.j2 @@ -1,9 +1,22 @@ --- +global: + security: + allowInsecureImages: true + +image: + repository: bitnamilegacy/postgresql + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell securityContext: runAsUser: auto +metrics: + image: + repository: bitnamilegacy/postgres-exporter + primary: podSecurityContext: {% if test_scenario['values']['openshift'] == 'true' %} diff --git a/tests/templates/kuttl/smoke/helm-bitnami-redis-values.yaml.j2 b/tests/templates/kuttl/smoke/helm-bitnami-redis-values.yaml.j2 index d920abc5..293abaf1 100644 --- a/tests/templates/kuttl/smoke/helm-bitnami-redis-values.yaml.j2 +++ b/tests/templates/kuttl/smoke/helm-bitnami-redis-values.yaml.j2 @@ -1,6 +1,26 @@ --- +global: + security: + allowInsecureImages: true # needed starting with Chart version 20.5.0 if modifying images +image: + repository: bitnamilegacy/redis +sentinel: + image: + repository: bitnamilegacy/redis-sentinel +metrics: + image: + repository: bitnamilegacy/redis-exporter +kubectl: + image: + repository: bitnamilegacy/kubectl +sysctl: + image: + repository: bitnamilegacy/os-shell + volumePermissions: enabled: false + image: + repository: bitnamilegacy/os-shell containerSecurityContext: runAsUser: auto From 69fcadd9192ccaaaabc8d120301a15ac64a4168b Mon Sep 17 00:00:00 2001 From: xeniape Date: Mon, 11 Aug 2025 09:28:51 +0200 Subject: [PATCH 2/2] update examples installation instructions --- examples/simple-airflow-cluster-ldap-insecure-tls.yaml | 2 ++ examples/simple-airflow-cluster-ldap.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/simple-airflow-cluster-ldap-insecure-tls.yaml b/examples/simple-airflow-cluster-ldap-insecure-tls.yaml index e4767ba1..80168a86 100644 --- a/examples/simple-airflow-cluster-ldap-insecure-tls.yaml +++ b/examples/simple-airflow-cluster-ldap-insecure-tls.yaml @@ -1,5 +1,7 @@ # helm install secret-operator oci://oci.stackable.tech/sdp-charts/secret-operator # helm install commons-operator oci://oci.stackable.tech/sdp-charts/commons-operator +# helm install listener-operator oci://oci.stackable.tech/sdp-charts/listener-operator +# helm install airflow-operator oci://oci.stackable.tech/sdp-charts/airflow-operator # helm install --repo https://charts.bitnami.com/bitnami --version 12.1.5 --set auth.username=airflow --set auth.password=airflow --set auth.database=airflow --set image.repository=bitnamilegacy/postgresql --set volumePermissions.image.repository=bitnamilegacy/os-shell --set metrics.image.repository=bitnamilegacy/postgres-exporter --set global.security.allowInsecureImages=true airflow-postgresql postgresql # helm install --repo https://charts.bitnami.com/bitnami --version 17.3.7 --set auth.password=redis --set replica.replicaCount=1 --set global.security.allowInsecureImages=true --set image.repository=bitnamilegacy/redis --set sentinel.image.repository=bitnamilegacy/redis-sentinel --set metrics.image.repository=bitnamilegacy/redis-exporter --set volumePermissions.image.repository=bitnamilegacy/os-shell --set kubectl.image.repository=bitnamilegacy/kubectl --set sysctl.image.repository=bitnamilegacy/os-shell airflow-redis redis # Log in with user01/user01 or user02/user02 diff --git a/examples/simple-airflow-cluster-ldap.yaml b/examples/simple-airflow-cluster-ldap.yaml index 029ebc5f..a22fda12 100644 --- a/examples/simple-airflow-cluster-ldap.yaml +++ b/examples/simple-airflow-cluster-ldap.yaml @@ -1,5 +1,7 @@ # helm install secret-operator oci://oci.stackable.tech/sdp-charts/secret-operator # helm install commons-operator oci://oci.stackable.tech/sdp-charts/commons-operator +# helm install listener-operator oci://oci.stackable.tech/sdp-charts/listener-operator +# helm install airflow-operator oci://oci.stackable.tech/sdp-charts/airflow-operator # helm install --repo https://charts.bitnami.com/bitnami --version 12.1.5 --set auth.username=airflow --set auth.password=airflow --set auth.database=airflow --set image.repository=bitnamilegacy/postgresql --set volumePermissions.image.repository=bitnamilegacy/os-shell --set metrics.image.repository=bitnamilegacy/postgres-exporter --set global.security.allowInsecureImages=true airflow-postgresql postgresql # helm install --repo https://charts.bitnami.com/bitnami --version 17.3.7 --set auth.password=redis --set replica.replicaCount=1 --set global.security.allowInsecureImages=true --set image.repository=bitnamilegacy/redis --set sentinel.image.repository=bitnamilegacy/redis-sentinel --set metrics.image.repository=bitnamilegacy/redis-exporter --set volumePermissions.image.repository=bitnamilegacy/os-shell --set kubectl.image.repository=bitnamilegacy/kubectl --set sysctl.image.repository=bitnamilegacy/os-shell airflow-redis redis # Log in with user01/user01 or user02/user02