-
-
Notifications
You must be signed in to change notification settings - Fork 117
Refactor: Use helper for st2-config-vol volume/volumeMounts definitions #198
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
Conversation
cc16fe1 to
d330e35
Compare
|
pull-request-size bot says that this PR is ---
apiVersion: ...
kind: ...
metadata:
...
spec:
template:
metadata:
...
spec:
...
containers:
- name: ...
...
volumeMounts:
- - name: st2-config-vol
- mountPath: /etc/st2/st2.docker.conf
- subPath: st2.docker.conf
- - name: st2-config-vol
- mountPath: /etc/st2/st2.user.conf
- subPath: st2.user.conf
+ {{- include "st2-config-volume-mounts" . | nindent 8 }}
volumes:
- - name: st2-config-vol
- configMap:
- name: {{ .Release.Name }}-st2-config
+ {{- include "st2-config-volume" . | nindent 8 }}And then the template definition is just: |
|
This seems like a great change. |
d330e35 to
06ce553
Compare
|
rebased on master |
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.
This looks great.
18de1fe to
d8e51c4
Compare
|
rebased on master |
d8e51c4 to
035802d
Compare
1c538d4 to
3a2ee8d
Compare
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.
Some more much needed deduplication!
d0f6fcb to
75ff9cd
Compare
|
@armab This one is the next easiest PR to review. Please and thank you! |
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.
LGTM!
This reduces duplication.
75ff9cd to
5afe550
Compare
|
Tests are green :) |
This reduces duplication of the st2-config-vol definitions in
volumes:andvolumeMounts:blocks.