Closed jim-barber-he closed 1 year ago
Great! Thanks a lot @jim-barber-he for such detailed explanation and for sharing all your findings.
You have very clear where is the problem so, would you like to contribute by creating a PR to solve the issue? The Bitnami team will be happy to review it and provide feedback. Here you can find the contributing guidelines.
The problem is I have no idea what default values should be set for some of these; especially redis.sentinel.service.ports.sentinel
Some of the variables line up with externalRedis.sentinel
so I could guess from those, but others do not have a corresponding match.
There is no documentation about redis.sentinel.*
variables for the harbor
Helm chart in the README.md
file; nor in the values.yaml
file; and nothing in the comments in the templates/_helpers.tpl
file where these variables are used.
Actually, I'll give it a go as the default values are in the bitnami redis
chart.
The pipeline for my PR has 2 skipped checks. I guess these are something that you guys kick off?
Thanks for creating the PR, yes, those checks are executed once added the verify
label which should be manually added by the reviewers. Now, the PR will be tested by installing the Helm chart on top of different k8s clusters, let's see the results 🤞
Name and Version
bitnami/harbor 16.1.1
What steps will reproduce the bug?
In a Kubernetes 1.25.5 cluster deployed via kops 1.25.3 I am using helmfile and helm to deploy harbor for use as a container registry proxy.
When trying to deploy version
16.1.1
I get the following error:Are you using any custom parameters or values?
The values file we supply is below. This is for
helmfile
and the{{- }}
directives are used by that to populate values based on secrets we export to the environment at deployment time.What is the expected behavior?
It should just deploy like version 16.0.4 of the chart does.
What do you see instead?
Helm shows the following error.
Additional information
This error also happens in version
16.0.1
where I believe the breaking change occurs. Version16.0.4
of the chart deploys without issue.Part of the change in question is:
It is referring to variables like
.Values.redis.sentinel.service.ports.sentinel
,.Values.redis.sentinel.masterSet
, and.Values.redis.sentinel.enabled
However thevalues.yaml
file that is part of the chart has not set any values for any of these, hence thenil pointer
error. Theredis
section of the chart'svalues.yaml
file contains only the following values: