Skip to content

Use Kubernetes secrets for password parameters#64

Merged
philipp94831 merged 43 commits intomasterfrom
feature/secret-password-parameters
Apr 9, 2020
Merged

Use Kubernetes secrets for password parameters#64
philipp94831 merged 43 commits intomasterfrom
feature/secret-password-parameters

Conversation

@yannick-roeder
Copy link
Copy Markdown
Member

No description provided.

Comment thread charts/streams-app/templates/deployment.yaml Outdated
Comment thread charts/streams-app/templates/deployment.yaml
Comment thread charts/streams-app/templates/deployment.yaml Outdated
path: log4j.properties
{{- end }}
{{- end }}
{{- range $key, $value := .Values.secrets }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a separate secrets.yaml

Comment thread charts/streams-app/templates/deployment.yaml Outdated
{{- end }}
{{- end }}
{{- range $key, $value := .Secrets.secrets }}
---
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just make this a separate secrety.yaml and everything is fine :)

@@ -0,0 +1,10 @@
{{- range $key, $value := .Values.secrets }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong file name? Also, did you run helm package?

Comment thread charts/streams-app/templates/deployment.yaml
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
{{ $key }}: {{ $value | b64enc }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to do anything to be able to read the value as well?

Comment thread charts/streams-app-cleanup-job/templates/secrets.yaml Outdated
@philipp94831 philipp94831 merged commit 966ca35 into master Apr 9, 2020
@philipp94831 philipp94831 deleted the feature/secret-password-parameters branch June 24, 2020 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants