Skip to content

Commit

Permalink
Fix Test Suite
Browse files Browse the repository at this point in the history
  • Loading branch information
eye0fra committed Nov 20, 2020
1 parent 41d4505 commit 656c965
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ oc label secret/mycluster-amq-broker-all-secret app.kubernetes.io/managed-by=Hel
. Extract Client TrustStore
+
`oc extract secret/mycluster-amq-broker-all-secret --keys=client.ts`
`oc extract secret/mycluster-amq-broker-all-secret --keys=client.ts`
. Extract AMQ Endpoint
Expand Down Expand Up @@ -205,7 +205,7 @@ NOTE: You cannot create more than one broker deployment in a given OpenShift pro
. [install/upgrade] Create kind: ActiveMQArtemis and ActiveMQArtemisAddress
. [install/upgrade] Create Config Map with custom broker xml.
. [post-install hook] Shutdown the AMQ Broker Operator
. [post-install hook] Adoptthe AMQ Broker resource to Helm:
. [post-install hook] Adopt the AMQ Broker resource to Helm:
+
[source,yaml]
------
Expand Down
2 changes: 1 addition & 1 deletion amq-broker/templates/post-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
spec:
serviceAccountName: {{ include "amq-broker.serviceAccountName" . }}
restartPolicy: Never
{{- if .Values.pki.self -}}
{{ if .Values.pki.self -}}
initContainers:
- name: keytool
image: "{{ .Values.keytool.image.repository }}:{{ .Values.keytool.image.tag }}"
Expand Down
3 changes: 2 additions & 1 deletion amq-broker/templates/tests/artemis-consumer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- range $index, $acceptor := .Values.acceptors }}
{{- with $ }}
---
apiVersion: v1
kind: Pod
metadata:
Expand Down Expand Up @@ -48,7 +49,7 @@ spec:
{{ end }}
{{- if $acceptor.sslEnabled }}
volumeMounts:
- name: {{ .name }}
- name: {{ $acceptor.name }}
mountPath: /opt/pki/{{ .name }}
volumes:
- name: {{ $acceptor.name }}
Expand Down
5 changes: 3 additions & 2 deletions amq-broker/templates/tests/artemis-producer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- range $index, $acceptor := .Values.acceptors }}
{{- with $ }}
---
apiVersion: v1
kind: Pod
metadata:
Expand All @@ -9,7 +10,7 @@ metadata:
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": hook-succeeded
"helm.sh/hook-weight": "{{ $index }}"
"helm.sh/hook-weight": "{{ sub $index 1 }}"
spec:
containers:
- name: artemis-producer
Expand Down Expand Up @@ -48,7 +49,7 @@ spec:
{{ end }}
{{- if $acceptor.sslEnabled }}
volumeMounts:
- name: {{ .name }}
- name: {{ $acceptor.name }}
mountPath: /opt/pki/{{ .name }}
volumes:
- name: {{ $acceptor.name }}
Expand Down
2 changes: 1 addition & 1 deletion amq-broker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ bridges: []

diverts: []

clusterDomain: apps-crc.testing
clusterDomain: apps.dev.openlab.red

0 comments on commit 656c965

Please sign in to comment.