-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPSEXP-2882 Add json configmap configurable with yaml to adf chart #387
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if .Values.configMap }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "alfresco-adf-app.fullname" . }} | ||
labels: | ||
{{- include "alfresco-adf-app.labels" . | nindent 4 }} | ||
data: | ||
config.json: >- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure if we can hardcode that and if we need to add the volume mounts but I think its better if we leave volume mounts optional There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not only can we but we have to. However it should be named |
||
{{- .Values.configMap | toJson | nindent 4 }} | ||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,8 @@ volumes: [] | |
# -- Additional volumeMounts on the output Deployment definition | ||
volumeMounts: [] | ||
|
||
configMap: [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If configmap is a list then I'm not sure how this works. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was planning just to have one configmap. Whatever you put in yaml format it will be converted to json. I our case it can look like this:
Let me change that to |
||
|
||
nodeSelector: {} | ||
|
||
tolerations: [] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking that maybe we can hardcode the name of that configmap to make it easier for users to mount it. Not sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If user wants to mount his own cm I think we agreed he would:
and so we would not have this configMap at all
If we agree on that, then we should document it in this chart