-
Notifications
You must be signed in to change notification settings - Fork 76
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
GKE autopilot cluster refresh error #355
Comments
Hi @selfuryon, Thank you raising for this issue, I can can reproduce this problem with a simple example manifest:
get the following error:
|
issue_client_certificate is coming from "masterAuth" spec, added this and it gone
The rest is quite hard to find, since a lot of spec contain enabled |
Added possible field that I get from my manual created cluster and used crossplane to observe
|
I found the minimal working config for me: apiVersion: container.gcp.upbound.io/v1beta1
kind: Cluster
metadata:
name: management
spec:
forProvider:
enableAutopilot: true
releaseChannel:
- channel: RAPID
networkRef:
name: main
subnetworkRef:
name: kubernetes-europe-north1
maintenancePolicy:
location: europe-north1
- dailyMaintenanceWindow:
- startTime: "13:00"
ipAllocationPolicy:
- servicesSecondaryRangeName: service-network
clusterSecondaryRangeName: pod-network
defaultSnatStatus:
- disabled: false
masterAuth:
- clientCertificateConfig:
- issueClientCertificate: false
serviceExternalIpsConfig:
- enabled: false
notificationConfig:
- pubsub:
- enabled: false
privateClusterConfig:
- enablePrivateNodes: true
masterIpv4CidrBlock: 10.248.0.0/28
deletionPolicy: Orphan
So it requires |
@lsviben could this be some bug related to GMP changes (e.g. some change in late-init behavior due to changes in API like required -> optional) ? |
same issue in my side with gke cluster
following manifest:
|
set all these fields for my cluster - and then the resources synced and ready true
|
Looks like the issue was introduced in crossplane/upjet#237 with initProviders. As now all the fields which were required and are also in initProvider are optional, they also got the tag Made a PR which fixes the behaviour (reverts the omitempty addition to previously required fields). Tested it out with the cluster example and it works ok. Hopefully we will merge it soon and make some patch releases |
Fixed in the newest provider releases! https://github.com/upbound/provider-gcp/releases/tag/v0.36.0 |
What happened?
Hello!
I tried to create a new GKE Autopilot cluster via crossplane. It was created successfully but after crossplane can't refresh the information about it and shows
Synced: False
.How can we reproduce it?
I used this manifest:
Crossplane created cluster, but after that I got that:
What environment did it happen in?
The text was updated successfully, but these errors were encountered: