From 8060430325eaaa2faa7ec94671b5b170488313f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20J=2E=20Salmer=C3=B3n-Garc=C3=ADa?= Date: Wed, 28 Jul 2021 17:49:12 +0200 Subject: [PATCH] [bitnami/wordpress,kibana,kubeapps] Remove test yaml files (#7080) * [bitnami/wordpress,kibana] Remove test yaml files * add kubeapps --- bitnami/kibana/Chart.yaml | 2 +- .../templates/tests/test-connection.yaml | 17 -------- bitnami/kubeapps/Chart.yaml | 2 +- .../templates/tests/test-assetsvc.yaml | 33 ---------------- .../templates/tests/test-dashboard.yaml | 18 --------- bitnami/wordpress/Chart.yaml | 2 +- .../tests/test-mariadb-connection.yaml | 39 ------------------- 7 files changed, 3 insertions(+), 110 deletions(-) delete mode 100644 bitnami/kibana/templates/tests/test-connection.yaml delete mode 100644 bitnami/kubeapps/templates/tests/test-assetsvc.yaml delete mode 100644 bitnami/kubeapps/templates/tests/test-dashboard.yaml delete mode 100644 bitnami/wordpress/templates/tests/test-mariadb-connection.yaml diff --git a/bitnami/kibana/Chart.yaml b/bitnami/kibana/Chart.yaml index b71b70f411..331b76431e 100644 --- a/bitnami/kibana/Chart.yaml +++ b/bitnami/kibana/Chart.yaml @@ -25,4 +25,4 @@ name: kibana sources: - https://github.com/bitnami/bitnami-docker-kibana - https://www.elastic.co/products/kibana -version: 8.1.11 +version: 8.1.12 diff --git a/bitnami/kibana/templates/tests/test-connection.yaml b/bitnami/kibana/templates/tests/test-connection.yaml deleted file mode 100644 index b313999a44..0000000000 --- a/bitnami/kibana/templates/tests/test-connection.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: {{ printf "%s-test-connection" (include "common.names.fullname" .) }} - labels: {{- include "common.labels.standard" . | nindent 4 }} - app: test-connection - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: test-connection - image: bitnami/bitnami-shell - command: - - curl - args: - - {{ include "common.names.fullname" . }}:{{ .Values.service.port }} - restartPolicy: Never diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 251ebc88e0..c89f11205c 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -25,4 +25,4 @@ maintainers: name: kubeapps sources: - https://github.com/kubeapps/kubeapps -version: 7.1.7 +version: 7.1.8 diff --git a/bitnami/kubeapps/templates/tests/test-assetsvc.yaml b/bitnami/kubeapps/templates/tests/test-assetsvc.yaml deleted file mode 100644 index 761634464c..0000000000 --- a/bitnami/kubeapps/templates/tests/test-assetsvc.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-assetsvc-test" - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: {{ .Release.Name }}-assetsvc-test - image: {{ include "common.images.image" (dict "imageRoot" .Values.testImage "global" .Values.global) }} - env: - - name: ASSETSVC_HOST - value: {{ template "kubeapps.assetsvc.fullname" . }}.{{ .Release.Namespace }} - - name: ASSETSVC_PORT - value: "{{ .Values.assetsvc.service.port }}" - command: - - bash - - -c - # We are requesting the "wordpress" chart to the chartsvc to check that everything works as expected - # Also, we retry several times in case the repository is being populated at the time of executing this test - - | - n=0 - until [ "$n" -ge 5 ]; do - if curl -o /tmp/output $ASSETSVC_HOST:$ASSETSVC_PORT/v1/clusters/default/namespaces/{{ .Release.Namespace }}/charts && cat /tmp/output && cat /tmp/output | grep wordpress; then - break - fi - sleep 10 - ((n+=1)) - done - if [ "$n" -eq 5 ]; then - exit 1 - fi - restartPolicy: Never diff --git a/bitnami/kubeapps/templates/tests/test-dashboard.yaml b/bitnami/kubeapps/templates/tests/test-dashboard.yaml deleted file mode 100644 index 8b9f9eb8d2..0000000000 --- a/bitnami/kubeapps/templates/tests/test-dashboard.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-dashboard-test" - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: {{ .Release.Name }}-dashboard-test - image: {{ include "common.images.image" (dict "imageRoot" .Values.testImage "global" .Values.global) }} - env: - - name: DASHBOARD_HOST - value: {{ template "common.names.fullname" . }}.{{ .Release.Namespace }} - command: - - sh - - -c - - curl -o /tmp/output $DASHBOARD_HOST && cat /tmp/output && cat /tmp/output | grep 'You need to enable JavaScript to run this app' - restartPolicy: Never diff --git a/bitnami/wordpress/Chart.yaml b/bitnami/wordpress/Chart.yaml index 06db9c675c..72be729b75 100644 --- a/bitnami/wordpress/Chart.yaml +++ b/bitnami/wordpress/Chart.yaml @@ -35,4 +35,4 @@ name: wordpress sources: - https://github.com/bitnami/bitnami-docker-wordpress - https://wordpress.org/ -version: 11.2.0 +version: 11.2.1 diff --git a/bitnami/wordpress/templates/tests/test-mariadb-connection.yaml b/bitnami/wordpress/templates/tests/test-mariadb-connection.yaml deleted file mode 100644 index 0ca310f0a9..0000000000 --- a/bitnami/wordpress/templates/tests/test-mariadb-connection.yaml +++ /dev/null @@ -1,39 +0,0 @@ -{{- if .Values.mariadb.enabled }} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-credentials-test" - annotations: - "helm.sh/hook": test-success -spec: - {{- if .Values.podSecurityContext.enabled }} - securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 4 }} - {{- end }} - containers: - - name: {{ .Release.Name }}-credentials-test - image: {{ template "wordpress.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - {{- if .Values.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - env: - - name: MARIADB_HOST - value: {{ include "wordpress.databaseHost" . | quote }} - - name: MARIADB_PORT - value: "3306" - - name: WORDPRESS_DATABASE_NAME - value: {{ default "" .Values.mariadb.auth.database | quote }} - - name: WORDPRESS_DATABASE_USER - value: {{ default "" .Values.mariadb.auth.username | quote }} - - name: WORDPRESS_DATABASE_PASSWORD - valueFrom: - secretKeyRef: - name: {{ include "wordpress.databaseSecretName" . }} - key: mariadb-password - command: - - /bin/bash - - -ec - - | - mysql --host=$MARIADB_HOST --port=$MARIADB_PORT --user=$WORDPRESS_DATABASE_USER --password=$WORDPRESS_DATABASE_PASSWORD - restartPolicy: Never -{{- end }}