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
fix: improve handling of config file #480
base: main
Are you sure you want to change the base?
Conversation
ff0c6bc
to
e5c7e61
Compare
Please detail in the description of this PR what you're doing and why to make it easier to review. Ideally, please use the PR template. |
Done |
@jessebot do you like to review? |
1db6808
to
c74a666
Compare
rebased after #393 was merged ci lint says:
|
09f5f70
to
d03fc12
Compare
d03fc12
to
c966cc9
Compare
rebased and version bump again |
It looks like there's an error after the nginx default config PR was merged. https://github.com/nextcloud/helm/actions/runs/7144375839/job/19639651937?pr=480#step:9:219 |
nginx: | ||
enabled: true | ||
config: | ||
custom: |- |
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.
it is just my test-value here
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.
maybe that is better
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.
approved the new workflow run. I wish that ran automatically still :(
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.
can you explain further the ci directory you are adding? I don't think I understand what this is doing.
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.
ci/*-values.yaml
is used by chart-testing. it try to lint / install with every of that files (I add three -values.yaml files, so an lint or install tries this three setups).
your chart-testing github action pipeline try an install in a kubernetes clusters.
So it checks, if all helm generated resources also comes up (like helm --wait).
But with my current example with an customize nginx config (nginx.config.custom
).
is put correct in the configmap and to the pod, but the nginx does not reach the state running (because the nginx config is invalid with my test values).
I just use the ct lint command on developing, so i have not seen, that this chart works (and the part is correct put together).
https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md
Charts may have multiple custom values files matching the glob pattern '*-values.yaml' in a directory named 'ci' in the root of the chart's directory. The chart is linted for each of these files. If no custom values file is present, the chart is linted with defaults.
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 remove the ct-values for #523 - to make this PR smaller
9181f14
to
5660b62
Compare
rebased again and set an valid |
5660b62
to
a6ca7bd
Compare
rebased and version dump again |
9361dc8
to
96ae2ab
Compare
rebased (after #520) and version dump again |
96ae2ab
to
36f875d
Compare
48a7885
to
5a7cb38
Compare
huhu @provokateurin do you like to take a look here too? |
c592d5a
to
2714d88
Compare
2714d88
to
19b40b7
Compare
This is the last for nd importend PR from my big bunch ;) |
I'll have a look soon |
19b40b7
to
ee33112
Compare
ee33112
to
9851531
Compare
Signed-off-by: WrenIX <dev.github@wrenix.eu>
I do not know, why it / i close this |
Any update? I found a not good default value for nginx, which i like to improve (and then i good a merge conflict) |
Split of #478
Move all the configfiles for nginx, nextcloud, htaccess out of the kubernetes-resources as single file beside the helmchart and load them with helm function into the kubernetes-resources.
benefits:
defaultConfigs
is loaded is generic (is anrange
over the map)