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 chart deployment broken since version 2.5.1 #1321

Closed
muellermatthias opened this issue Sep 15, 2020 · 4 comments · Fixed by #1323
Closed

Helm chart deployment broken since version 2.5.1 #1321

muellermatthias opened this issue Sep 15, 2020 · 4 comments · Fixed by #1323
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec p1 A bug severe enough to be the next item assigned to an engineer
Milestone

Comments

@muellermatthias
Copy link

Problem description

We are using the Kubernetes provider to deploy the nginx-ingress helm chart. Since the version 2.5.1 the deployment always fails with the error below. We only updated the kubernetes provider version so we are sure it's caused by the update.

Apart from that we are using AKS 1.16.13. To be sure I also deployed the helm chart manually via helm, which works.

Errors & Logs

kubernetes:rbac.authorization.k8s.io:ClusterRoleBinding (test-aksref-ingress-controller-nginx-ingress):
    error: resource test-aksref-ingress-controller-nginx-ingress was not successfully created by the Kubernetes API server : ClusterRoleBinding.rbac.authorization.k8s.io "test-aksref-ingress-controller-nginx-ingress" is invalid: subjects[0].namespace: Required value

Affected product version(s)

@Pulumi/Kubernetes: >=2.5.1

Reproducing the issue

Here is our code for the helm deployment:

        new k8s.helm.v3.Chart(`${name}-ingress-controller`, {
            chart: "nginx-ingress",
            version: "1.41.2",
            fetchOpts: {
                repo: "https://kubernetes-charts.storage.googleapis.com",
            },
            values: {
                controller: {
                    service: {
                        loadBalancerIP: "10.10.10.10,
                        annotations: {
                            "service.beta.kubernetes.io/azure-load-balancer-internal": "true"
                        }
                    },
                }
            },
        }, {
            provider: cluster, // we're using the admin credentials here
        })
@lblackstone
Copy link
Member

Thanks for the detailed error report! I'm looking into this now.

Not sure if this is just a copy-paste error in the issue, but loadBalancerIP: "10.10.10.10, is missing a closing " character.

@lblackstone lblackstone added this to the current milestone Sep 16, 2020
@lblackstone lblackstone added kind/bug Some behavior is incorrect or out of spec priority/P1 labels Sep 16, 2020
@lblackstone
Copy link
Member

Ok, was able to repro the issue locally, and am getting the following diff (which explains the error you're seeing):

          ~ subjects: [
              ~ [0]: {
                      - namespace: "default"
                    }
            ]

I'll get this fixed ASAP

@muellermatthias
Copy link
Author

@lblackstone The missing " was my fault. It's correct in my code.

Thanks for looking into this.

@lblackstone
Copy link
Member

This should be fixed in the v2.6.1 release, which will be published shortly.

@leezen leezen modified the milestones: current, 0.44 Sep 22, 2020
@infin8x infin8x added the p1 A bug severe enough to be the next item assigned to an engineer label Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec p1 A bug severe enough to be the next item assigned to an engineer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants