-
Notifications
You must be signed in to change notification settings - Fork 4
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
Generalized support for overwriting/extending initContainers
, volumes
, volumeMounts
#32
Conversation
@gislab-augsburg, @klml, @eidottermihi, @MandanaMoshref: |
@BWibo tnak you very much for your PR, we will test your solution the next week. |
@BWibo: I only had a minor issue on the first try with volume sizeLimit: configuration in our values-lhm-tum.yaml:
results in :
But I'm not sure if sizeLimit is really necessary, @klml what do you think, do we need it? |
@gislab-augsburg Thx for testing and really cool this works for you guys. I think there is a syntax error regarding the size level. There is one level of indention missing. This should do the trick: # Extra Volumes
extraVolumes:
# Volumes for paths that need to be writable
- name: srv-app-i18n
emptyDir:
sizeLimit: 500Mi
- name: srv-app-data
emptyDir:
sizeLimit: 500Mi @gislab-augsburg Can you please confirm if this works? As soon as this is done and we have a solution for #33, I'lll prepare a release. |
@BWibo Yes, it works :) You were right, it was just an indentation mistake. From our side, you can merge and prepare the release. #33 is solved, did I get it right? From our side, there are no problems with solr when:
|
@gislab-augsburg, @klml, @eidottermihi, @MandanaMoshref:
Sorry this took me so long, but finally here is a first draft. It basically pics up what I suggest here. It should allow using OpenShift just by adapting the configuration when depolying the chart. Check out the examples below to see how it works.
This shall replace the work proposed in #31 with a more general and flexible mechanism to allow user of this chart to:
initContainer
,volume
,volumeMount
of this chartinitContainer
,volume
,volumeMount
specified in this chartWhat is different compared to the work in #31?
initContainer
,volume
,volumeMount
. This is at deploy time withhelm -f values.yml
or usinghelm --set
. Thus, if any specific requirements arise in the future (e.g. have an additional file writable for OpenShift using a volume), this mean just a configuration change and not a new release of the chart.In Sddi urban 2.9.9: Changes for OpenShift deploy, further configurability and reduced dependencies #31, e.g. only specific files are replaced by volumes. The solution is specific for the issue of supporting OpenShift.
ToDos
initContainers
volumes
volumeMounts
ckan-deployment
too. Currently, it only in theStatefulset
.values.yml
norwoodj/helm-docs#217Requirements
v3.14.0
what I used for testing.Examples
Here are some example to illustrate usage of this. In all examples we create a custom
values.yml
files with our configuration for the deployment. The we run:helm install sddi sddi-ckan/sddi-ckan -f values.yml
Disable default
initContainers
This will disable the default init containers.
values.yml
:Replace default
initContainers
This will overwrite the default init containers with the one specified below.
values.yml
:Extend the default
initContainers
This will extend the default init containers of the chart. Note: The template specified below will be rendered!
values.yml
: