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

Nil pointer dereference, on an invalid spec #1187

Open
mjnovice opened this issue Mar 22, 2024 · 0 comments
Open

Nil pointer dereference, on an invalid spec #1187

mjnovice opened this issue Mar 22, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@mjnovice
Copy link

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
I created a GCPManagedCluster without the network field and the controller crashed.

What did you expect to happen:
The controller shouldn't crash

https://github.com/kubernetes-sigs/cluster-api-provider-gcp/blob/main/cloud/services/container/clusters/reconcile.go#L256

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

Environment:

  • Cluster-api version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 22, 2024
@mjnovice mjnovice changed the title Nil pointer dereference Nil pointer dereference, on an invalid spec Mar 22, 2024
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.
Projects
None yet
Development

No branches or pull requests

2 participants