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

enable_autopilot conflicts with late init of addons_config.gcs_fuse_csi_driver_config #403

Closed
djeremiah opened this issue Oct 3, 2023 · 1 comment · Fixed by #404
Closed
Labels
bug Something isn't working is:triaged

Comments

@djeremiah
Copy link
Contributor

What happened?

on GCP, GKE autopilot clusters running k8s >= 1.24 now have the GCS Fuse driver addon enabled by default

This addon was previously unavailable for autopilot clusters and the terraform provider had a mutual exclusion check that you couldn't specify autopilot = true && GCS fuse driver = enabled

If you use the current latest GCP provider (0.37.0) to create a Cluster MR, with autopilot enabled, and NO ADDON CONFIG provided, the cluster will provision successfully

The first time crossplane does a terraform refresh under the hood, it picks up that the GCS fuse addon is enabled (by default, by GCP) and then all subsequent refreshes fail with:

Not Synced
ReconcileError: observe failed: cannot run refresh: refresh failed: Conflicting configuration arguments: "addons_config.0.gcs_fuse_csi_driver_config": conflicts with enable_autopilot

How can we reproduce it?

Deploy examples/container/cluster.yaml

What environment did it happen in?

  • Crossplane Version: 1.13.2-up.2
  • Provider Version: v0.37.0
  • Kubernetes Version:
Client Version: v1.28.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.27.3
  • Kubernetes Distribution: kind

Relates to crossplane/upjet#197

@vedantthapa
Copy link

I see that there's an open pull request to resolve this issue, in the meantime, are there any workarounds to provision gke autopilot clusters via crossplane?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working is:triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants