Skip to content
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

helmRelease dry-run failed #796

Closed
jack1902 opened this issue Oct 18, 2023 · 1 comment
Closed

helmRelease dry-run failed #796

jack1902 opened this issue Oct 18, 2023 · 1 comment

Comments

@jack1902
Copy link

jack1902 commented Oct 18, 2023

So i have a functioning helm-release wrapped within a kustomization which applies fine. However, with drift-detection enabled, i am getting errors coming out which i only see thanks to having alerts configured. Without those alerts in place, everything looks fine.

  • kubectl get hr -n kafka - Release reconciliation succeeded is observed

I am getting alerts similar to the following:

helmrelease/kafka.namespace
KafkaConnect/kafka/my-connect-instance dry-run failed, reason: Invalid: KafkaConnect.kafka.strimzi.io "my-connect-instance" is invalid: spec.version: Invalid value: "null": spec.version in body must be of type string: "null"

The helmRelease itself is applied and functioning as i expect, but with drift-detection enabled i see the above error happening

relates to: #643

Additional Context

Logs from helm-controller

{"level":"error","ts":"2023-10-18T16:16:38.294Z","msg":"Reconciler error","controller":"helmrelease","controllerGroup":"helm.toolkit.fluxcd.io","controllerKind":"HelmRelease","HelmRelease":{"name":"kafka","namespace":"namespace"},"namespace":"namespace","name":"kafka","reconcileID":"527ad24d-5266-46e6-8fea-67306ccd0898","error":"KafkaConnect/kafka/my-connect-instance dry-run failed, reason: Invalid: KafkaConnect.kafka.strimzi.io \"my-connect-instance\" is invalid: spec.version: Invalid value: \"null\": spec.version in body must be of type string: \"null\"","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226"}
@hiddeco
Copy link
Member

hiddeco commented Dec 12, 2023

We shipped an improved version of the drift detection today in the v0.37.0 release. Can you maybe try and see if the newly added ignore rules feature helps with your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants