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

Default datapath_provider to ADVANCED_DATAPATH (aka. Dataplane V2) for safer-cluster with variable for fallback #1085

Conversation

somethingnew2-0
Copy link
Contributor

First time contributor implementing #1064

Default safer-cluster to Dataplane V2 with

datapath_provider = "ADVANCED_DATAPATH"

But allow module consumers to set V1 as a fallback via a module variable, as upgrading to Dataplane V2 requires cluster re-creation.

@comment-bot-dev
Copy link

comment-bot-dev commented Dec 6, 2021

Thanks for the PR! 🚀
✅ Lint checks have passed.

Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests also need to be updated:

     ×  Command: `gcloud --project=ci-gke-f42945c6-df7a container clusters --zone=us-central1 describe safer-cluster-cluster-zl1w --format=json` cluster has the expected addon settings
     expected {"cloudRunConfig" => {"loadBalancerType" => "LOAD_BALANCER_TYPE_EXTERNAL"}, "configConnectorConfig" => {}, ...alancing" => {}, "kubernetesDashboard" => {"disabled" => true}, "networkPolicyConfig" => {"disabled" => true}} to include {"networkPolicyConfig" => {}}
     Diff:
     
     @@ -1,6 +1,9 @@
     -"cloudRunConfig" => (including {"loadBalancerType" => "LOAD_BALANCER_TYPE_EXTERNAL"}),
     +"cloudRunConfig" => {"loadBalancerType"=>"LOAD_BALANCER_TYPE_EXTERNAL"},
     +"configConnectorConfig" => {},
     +"dnsCacheConfig" => {},
     +"gcePersistentDiskCsiDriverConfig" => {"enabled"=>true},
      "horizontalPodAutoscaling" => {},
      "httpLoadBalancing" => {},
     -"kubernetesDashboard" => (including {"disabled" => true}),
     -"networkPolicyConfig" => {},
     +"kubernetesDashboard" => {"disabled"=>true},
     +"networkPolicyConfig" => {"disabled"=>true},

Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still failing:

Profile: safer_cluster
Version: (not specified)
Target:  local://

  ×  gcloud: Google Compute Engine GKE configuration (1 failed)
     ×  Command: `gcloud --project=ci-gke-7bb763aa-8c55 container clusters --zone=us-central1 describe safer-cluster-cluster-yo5k --format=json` has network policy disabled
     
     expected: {"enabled"=>false}
          got: nil

@somethingnew2-0
Copy link
Contributor Author

Looks like that fixed it 😄

Thanks for the help @morgante!

@morgante morgante merged commit 41a0c83 into terraform-google-modules:master Dec 7, 2021
bharathkkb pushed a commit that referenced this pull request Jan 21, 2022
…ules (#1085)

BREAKING CHANGE: safer-cluster modules now use ADVANCED_DATAPATH by default. Set `datapath_provider` to `DATAPATH_PROVIDER_UNSPECIFIED` to continue using Dataplane v1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants