mirror of
https://github.com/bitnami/charts.git
synced 2026-03-02 08:05:03 +08:00
[bitnami/wordpress,kibana,kubeapps] Remove test yaml files (#7080)
* [bitnami/wordpress,kibana] Remove test yaml files * add kubeapps
This commit is contained in:
committed by
GitHub
parent
6b887caa68
commit
8060430325
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -25,4 +25,4 @@ maintainers:
|
||||
name: kubeapps
|
||||
sources:
|
||||
- https://github.com/kubeapps/kubeapps
|
||||
version: 7.1.7
|
||||
version: 7.1.8
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user