Closed AaronME closed 7 months ago
Hi @AaronME,
Thank you for rasing this issue. The issue can be reproduced with the following example:
apiVersion: container.gcp.upbound.io/v1beta1
kind: NodePool
metadata:
annotations:
meta.upbound.io/example-id: container/v1beta1/nodepool
labels:
testing.upbound.io/example-name: nodepool
name: nodepool
spec:
forProvider:
clusterSelector:
matchLabels:
testing.upbound.io/example-name: nodepool
nodeConfig:
- machineType: e2-medium
oauthScopes:
- https://www.googleapis.com/auth/cloud-platform
preemptible: true
serviceAccountSelector:
matchLabels:
testing.upbound.io/example-name: nodepool
nodeCount: 1
management:
- autoUpgrade: false
---
apiVersion: container.gcp.upbound.io/v1beta1
kind: Cluster
metadata:
annotations:
meta.upbound.io/example-id: container/v1beta1/cluster
labels:
testing.upbound.io/example-name: nodepool
name: nodepool
spec:
forProvider:
initialNodeCount: 1
location: us-central1-a
removeDefaultNodePool: true
---
apiVersion: cloudplatform.gcp.upbound.io/v1beta1
kind: ServiceAccount
metadata:
annotations:
meta.upbound.io/example-id: container/v1beta1/nodepool
labels:
testing.upbound.io/example-name: nodepool
name: nodepool
spec:
forProvider:
displayName: Service Account for GKE Cluster
Got the same error:
- lastTransitionTime: "2023-07-06T12:13:01Z"
message: "apply failed: error creating NodePool: googleapi: Error 400: Auto_upgrade
must be true when release_channel REGULAR is set.\nDetails:\n[\n {\n \"@type\":
\"type.googleapis.com/google.rpc.RequestInfo\",\n \"requestId\": \"0x7c951e9de63b1dba\"\n
\ }\n]\n, badRequest: "
@turkenf We are seeing several other late-initialized fields which are preventing successful observe:
cannot run refresh: refresh failed: Missing required argument: The argument "disabled" is required, but no definition was found.
cannot run refresh: refresh failed: Missing required argument: The argument "issue_client_certificate" is required, but no definition was found.
cannot run refresh: refresh failed: Missing required argument: The argument "enabled" is required, but no definition was found.
...
Just one example, the block masterAuth
is being late-initialized, but it does not contain the requir3ed field issue_client_certificate
. I suspect this is caused by the same mechanism which is setting the releaseChannel.
@AaronME Which version are you using, it looks similar to this issue. It should have been resolved in v0.36.0.
Working on 0.35.1. Will update.
Hello everyone, is there any news about this issue? I am experiencing the same problem with:
provider-gcp-container True True xpkg.upbound.io/upbound/provider-gcp-container:v0.41.0
Error 400: Auto_upgrade must be true when release_channel STABLE is set.
Thank you.
What happened?
Creating a Cluster without releaseChannel defaults to "REGULAR", causing an error on NodePool creation.
The docs indicate this field is not required, but do not mention that it will default to REGULAR if not supplied.
The introduction of this field results in this error when creating a nodepool with
autoUpgrade
set to false:How can we reproduce it?
I applied the following MR:
What environment did it happen in?