Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

docker image DISABLE_SECURITY env variable as helm variable #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ The following tables lists the configurable parameters of the MySQL chart and th
| `persistence.testJournalPerformance` | See docker image docs | `AUTO` |
| `resources.request.memory` | Memory resource requests/limits | `256Mi` |
| `resources.request.cpu` | CPU/Memory resource requests/limits | `100m` |
| `disableSecurity` | Disables activeMQ security features | `false` |

Some of the parameters above map to the env variables defined in the [vromero's ActiveMQ Artemis image](https://hub.docker.com/r/vromero/activemq-artemis/) refer to it for values, meaning, etc.

Expand Down
2 changes: 1 addition & 1 deletion activemq-artemis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: activemq-artemis
version: 0.0.1
version: 0.1.1
appVersion: 2.6.2
description: a multi-protocol, embeddable, very high performance, clustered, asynchronous messaging system.
keywords:
Expand Down
5 changes: 5 additions & 0 deletions activemq-artemis/templates/master-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,18 @@ spec:
resources:
{{ toYaml .Values.resources | indent 10 }}
env:
{{- if .Values.disableSecurity }}
- name: DISABLE_SECURITY
value: "true"
{{- else }}
- name: ARTEMIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "artemis.fullname" . }}
key: artemis-password
- name: ARTEMIS_USERNAME
value: {{ default "artemis" .Values.artemisUser | quote }}
{{- end }}
- name: ARTEMIS_PERF_JOURNAL
value: {{ default "AUTO" .Values.persistence.testJournalPerformance | quote }}
- name: ENABLE_JMX_EXPORTER
Expand Down
5 changes: 5 additions & 0 deletions activemq-artemis/templates/slave-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,18 @@ spec:
resources:
{{ toYaml .Values.resources | indent 10 }}
env:
{{- if .Values.disableSecurity }}
- name: DISABLE_SECURITY
value: "true"
{{- else }}
- name: ARTEMIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "artemis.fullname" . }}
key: artemis-password
- name: ARTEMIS_USERNAME
value: {{ default "artemis" .Values.artemisUser | quote }}
{{- end }}
- name: ARTEMIS_PERF_JOURNAL
value: {{ default "AUTO" .Values.persistence.testJournalPerformance | quote }}
- name: ENABLE_JMX_EXPORTER
Expand Down
3 changes: 3 additions & 0 deletions activemq-artemis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ image:
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
pullSecrets: []

# disableSecurity disables activeMQ security features
disableSecurity: false

# artemisUser sets the artemis admin user name
artemisUser: artemis
# artemisPassword sets the artemis admin user password
Expand Down