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 install and quickstart scenarios not working #532

Closed
willie-yao opened this issue May 21, 2024 · 4 comments · Fixed by #550
Closed

Helm chart install and quickstart scenarios not working #532

willie-yao opened this issue May 21, 2024 · 4 comments · Fixed by #550
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@willie-yao
Copy link
Contributor

What steps did you take and what happened:
There are a couple bugs with the main CAPI Operator helm chart and the documentation as of now:
Follow the quickstart to install CAPI Operator: https://cluster-api-operator.sigs.k8s.io/01_user/02_quick-start#installing-cluster-api-operator
Error:

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "capi-operator-serving-cert" namespace: "capi-operator-system" from "": no matches for kind "Certificate" in version "cert-manager.io/v1"
ensure CRDs are installed first, resource mapping not found for name: "capi-operator-selfsigned-issuer" namespace: "capi-operator-system" from "": no matches for kind "Issuer" in version "cert-manager.io/v1"
ensure CRDs are installed first]

Running the following command with cert manager installed separately:

helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system --set infrastructure="azure:v1.15.0" --set core="cluster-api:v1.7.2" --set manager.cert-manager.enabled="false" --set manager.cert-manager.installCRDs="false"

Error:

Error: INSTALLATION FAILED: template: cluster-api-operator/templates/infra.yaml:49:15: executing "cluster-api-operator/templates/infra.yaml" at <$.Values.manager.featureGates>: wrong type for value; expected map[string]interface {}; got interface {}

When installing the chart with manager.featureGates specified like so or with only infrastructure and core specified:

helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system --set infrastructure="azure:v1.15.0" --set core="cluster-api:v1.7.2"

Error:

Error: INSTALLATION FAILED: failed post-install: warning: Hook post-install cluster-api-operator/templates/infra.yaml failed: 1 error occurred:
        * Internal error occurred: failed calling webhook "vinfrastructureprovider.kb.io": failed to call webhook: Post "https://capi-operator-webhook-service.capi-operator-system.svc:443/mutate-operator-cluster-x-k8s-io-v1alpha2-infrastructureprovider?timeout=10s": dial tcp 10.96.160.166:443: connect: connection refused

What did you expect to happen:
The helm chart installs successfully.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api-operator version: 0.10.0
  • Cluster-api version: v1.7.1
  • Minikube/KIND version: v0.22.0
  • Kubernetes version: (use kubectl version): v1.29.2
  • OS (e.g. from /etc/os-release): Ubuntu 22.04

/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-operator/labels?q=area for the list of labels]

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label May 21, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If CAPI Operator contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label May 21, 2024
@willie-yao
Copy link
Contributor Author

/assign

Will try and fix some of these issues with the helm chart!

@willie-yao
Copy link
Contributor Author

Error: INSTALLATION FAILED: failed post-install: warning: Hook post-install cluster-api-operator/templates/infra.yaml failed: 1 error occurred:
* Internal error occurred: failed calling webhook "vinfrastructureprovider.kb.io": failed to call webhook: Post "https://capi-operator-webhook-service.capi-operator-system.svc:443/mutate-operator-cluster-x-k8s-io-v1alpha2-infrastructureprovider?timeout=10s": dial tcp 10.96.160.166:443: connect: connection refused

This error is fixed by using the --wait flag on helm install. It seems like this could be easily missed so we should probably add a warning to the docs that this helm chart will not work without --wait.

@dtzar
Copy link

dtzar commented Jun 3, 2024

Related to #406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
3 participants