banzaicloud / banzai-charts

Curated list of Banzai Cloud Helm charts used by the Pipeline Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Thanos chart] error validating data: unknown object type "nil" in Secret

absolutejam opened this issue · comments

Describe the bug

When trying to deploy the thanos chart with objstoreSecretOverride set, helm (v3.3.1) spits out the following error:

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: unknown object type "nil" in Secret.data.object-store.yaml
helm.go:94: [debug] error validating "": error validating data: unknown object type "nil" in Secret.data.object-store.yaml
helm.sh/helm/v3/pkg/kube.scrubValidationError
...snip...

This does not happen when you specify --disable-openapi-validation, and I'm assuming the error comes from the fact that it's treating object-store.yaml as two separate field/property getter calls.

Additional context

This is using chart thanos-0.3.26.tgz and K8s version:

Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.13-gke.1", GitCommit:"688c6543aa4b285355723f100302d80431e411cc", GitTreeState:"clean", BuildDate:"2020-07-21T02:37:26Z", GoVersion:"go1.13.9b4", Compiler:"gc", Platform:"linux/amd64"}

I may have spoken too soon about --disable-openapi-validation, as this allows the chart to begin deploying but I'm hitting another issue. Will report back shortly.

Scratch that, it looks like the objstoreSecretOverride had been duplicated and it was using the empty version!