rabbitmq: Add TLS support to helm test
Add http and https toggling to helm test for TLS Change-Id: Ia01fc793d090a7d1cb97e2fd7dacaaa6edbad8d0
This commit is contained in:
parent
e1990e399f
commit
5c8bd68e76
@ -15,6 +15,6 @@ apiVersion: v1
|
|||||||
appVersion: v3.7.26
|
appVersion: v3.7.26
|
||||||
description: OpenStack-Helm RabbitMQ
|
description: OpenStack-Helm RabbitMQ
|
||||||
name: rabbitmq
|
name: rabbitmq
|
||||||
version: 0.1.10
|
version: 0.1.11
|
||||||
home: https://github.com/rabbitmq/rabbitmq-server
|
home: https://github.com/rabbitmq/rabbitmq-server
|
||||||
...
|
...
|
||||||
|
@ -23,6 +23,11 @@ limitations under the License.
|
|||||||
|
|
||||||
{{- $serviceAccountName := print .Release.Name "-test" }}
|
{{- $serviceAccountName := print .Release.Name "-test" }}
|
||||||
{{ tuple $envAll "tests" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
{{ tuple $envAll "tests" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||||
|
|
||||||
|
{{- $protocol := "http" }}
|
||||||
|
{{- if $envAll.Values.manifests.certificates }}
|
||||||
|
{{- $protocol = "https" }}
|
||||||
|
{{- end }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
@ -48,7 +53,7 @@ spec:
|
|||||||
{{ dict "envAll" $envAll "application" "test" "container" "rabbitmq_test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }}
|
{{ dict "envAll" $envAll "application" "test" "container" "rabbitmq_test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }}
|
||||||
env:
|
env:
|
||||||
- name: RABBITMQ_ADMIN_CONNECTION
|
- name: RABBITMQ_ADMIN_CONNECTION
|
||||||
value: {{ tuple "oslo_messaging" "internal" "user" "http" $envAll | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | quote }}
|
value: {{ tuple "oslo_messaging" "internal" "user" $protocol $envAll | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | quote }}
|
||||||
- name: RABBIT_REPLICA_COUNT
|
- name: RABBIT_REPLICA_COUNT
|
||||||
value: {{ $envAll.Values.pod.replicas.server | quote }}
|
value: {{ $envAll.Values.pod.replicas.server | quote }}
|
||||||
command:
|
command:
|
||||||
|
@ -10,4 +10,5 @@ rabbitmq:
|
|||||||
- 0.1.8 Make helm test work with TLS
|
- 0.1.8 Make helm test work with TLS
|
||||||
- 0.1.9 Use full image ref for docker official images
|
- 0.1.9 Use full image ref for docker official images
|
||||||
- 0.1.10 Set separate for HTTPS
|
- 0.1.10 Set separate for HTTPS
|
||||||
|
- 0.1.11 Add TLS support for helm test
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user