You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to install the mondoo-operator via Helm and Flux, the installation fails due to following error:
Helm install failed: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors: line 18: mapping key "app.kubernetes.io/name" already defined at line 17
Unlike Helm, the Kustomize yaml parser (kyaml) does not accept duplicate keys, while Helm drops the duplicates, Kustomize errors out. This impacts helm-controller as it uses kustomize/kyaml to label objects reconciled by a HelmRelease.
The duplicated keys are inside the rendered Deployment and Service manifests.
The solution to fix it, would be probably to just delete the hardcoded app.kubernetes.io/name: mondoo-operator inside the deployment.yaml and metrics-service.yaml, because they will get templated anyway when rendering the manifest files.
The text was updated successfully, but these errors were encountered:
When trying to install the mondoo-operator via Helm and Flux, the installation fails due to following error:
The reason for this behaviour is described here:
The duplicated keys are inside the rendered
Deployment
andService
manifests.The solution to fix it, would be probably to just delete the hardcoded
app.kubernetes.io/name: mondoo-operator
inside thedeployment.yaml
andmetrics-service.yaml
, because they will get templated anyway when rendering the manifest files.The text was updated successfully, but these errors were encountered: