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

Helm release installation fails for kubeapps with fluxcd/helm-controller #6303 #17115

Closed
project-administrator opened this issue Jun 14, 2023 · 3 comments
Assignees
Labels
kubeapps solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@project-administrator
Copy link

project-administrator commented Jun 14, 2023

Name and Version

bitnami/kubeapps 2.7.0

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Install fluxcd with helm-controller running in the K8S cluster
  2. Attempt to install the kubeapps with fluxcd/helm-controller e.g.:
$ kubectl apply -f - <<EOF
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: bitnami-repo-oci
  namespace: default
spec:
  interval: 6h
  url: oci://registry-1.docker.io/bitnamicharts
  type: oci
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: kubeapps
  namespace: default
spec:
  interval: 1h
  releaseName: kubeapps
  targetNamespace: default
  chart:
    spec:
      chart: kubeapps
      interval: 1m
      sourceRef:
        kind: HelmRepository
        name: bitnami-repo-oci
        namespace: default
EOF

Are you using any custom parameters or values?

no

What is the expected behavior?

Installation succeeds even if using the fluxcd/helm-controller instead of the command-line helm install.

What do you see instead?

Checking the installation status reveals the following errors:

$ kubectl describe helmrelease kubeapps
...
  Warning  error   97s (x8 over 3m21s)  helm-controller  Helm install failed: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors:
  line 103: mapping key "initialDelaySeconds" already defined at line 97
  line 112: mapping key "initialDelaySeconds" already defined at line 106

Additional information

Basically, helm chart generates an invalid template with duplicate keys in YAML. fluxcd/helm-controller would not tolerate this, but command-line helm install would silently remove the duplicate keys.
Links to the same issue in the kubeapps and fluxcd projects:
vmware-tanzu/kubeapps#6303
fluxcd/helm-controller#283

@project-administrator project-administrator added the tech-issues The user has a technical issue about an application label Jun 14, 2023
@github-actions github-actions bot added the triage Triage is needed label Jun 14, 2023
@carrodher
Copy link
Member

Thanks for reporting this issue. 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.

@github-actions
Copy link

github-actions bot commented Jul 1, 2023

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jul 1, 2023
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Jul 6, 2023
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kubeapps solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants