Skip to content

Commit

Permalink
elasticsearch-ephemeral: Provide password as value (#3994)
Browse files Browse the repository at this point in the history
This way we can use different passwords on our test systems. Ensuring
that the password is really configurable (and not accidentally hardcoded
somewhere.)
  • Loading branch information
supersven authored Apr 12, 2024
1 parent 0ba23ad commit e4fa0f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Provide password as value in `elasticsearch-ephemeral`. This way we can use
different passwords on our test systems. Ensuring that the password is really
configurable (and not accidentally hardcoded somewhere.)
3 changes: 1 addition & 2 deletions charts/elasticsearch-ephemeral/templates/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ spec:
value: ".watches,.triggered_watches,.watcher-history-*,pod-*,node-*"
- name: "xpack.security.enabled"
value: "true"
# setting the password here is ok, as this chart is only used for integration tests on CI
- name: "ELASTIC_PASSWORD"
value: "changeme"
value: {{ .Values.secrets.password }}
ports:
- containerPort: 9200
name: http
Expand Down
3 changes: 3 additions & 0 deletions charts/elasticsearch-ephemeral/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ resources:
requests:
cpu: "250m"
memory: "500Mi"

secrets:
password: "changeme"

0 comments on commit e4fa0f1

Please sign in to comment.