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

Fix InTreePluginAWSUnregister feature gate removal in 1.31 #16708

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

rifelpet
Copy link
Member

These BuildOptions methods are ran repeatedly, and the old else condition caused the contents of the map to alternate between the feature gate being present and removed.

Example failure

I0727 02:47:00.991757   52038 up.go:219] /home/prow/go/src/k8s.io/kops/_rundir/9d9f923e-e44a-48ab-9cfd-aa28cfd2e9e2/kops create cluster --name e2e-ff02749ef8-a423a.test-cncf-aws.k8s.io --cloud aws --kubernetes-version v1.31.0-beta.0 --ssh-public-key /tmp/kops/e2e-ff02749ef8-a423a.test-cncf-aws.k8s.io/id_ed25519.pub --set cluster.spec.nodePortAccess=0.0.0.0/0 --set spec.containerd.configAdditions=plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler.runtime_type=io.containerd.runc.v2 --network-cidr=10.0.0.0/16,10.1.0.0/16,10.2.0.0/16,10.3.0.0/16,10.4.0.0/16,10.5.0.0/16,10.6.0.0/16,10.7.0.0/16,10.8.0.0/16,10.9.0.0/16,10.10.0.0/16,10.11.0.0/16,10.12.0.0/16 --node-size=t3a.medium,t3.medium,t2.medium,t3a.large,c5a.large,t3.large,c5.large,m5a.large,m6a.large,m5.large,c4.large,c7a.large,r5a.large,r6a.large,m7a.large --node-volume-size=20 --zones=us-east-2a,us-east-2b,us-east-2c --image=ssm:/aws/service/canonical/ubuntu/server/20.04/stable/current/amd64/hvm/ebs-gp2/ami-id --networking=amazonvpc --set spec.networking.amazonVPC.env=ENABLE_PREFIX_DELEGATION=true --set spec.etcdClusters[0].manager.listenMetricsURLs=http://localhost:2382/ --set spec.etcdClusters[0].manager.env=ETCD_QUOTA_BACKEND_BYTES=8589934592 --set spec.etcdClusters[1].manager.env=ETCD_QUOTA_BACKEND_BYTES=8589934592 --set spec.cloudControllerManager.concurrentNodeSyncs=10 --set spec.kubelet.maxPods=96 --set spec.kubeScheduler.authorizationAlwaysAllowPaths=/healthz --set spec.kubeScheduler.authorizationAlwaysAllowPaths=/metrics --set spec.kubeScheduler.kubeAPIQPS=500 --set spec.kubeScheduler.kubeAPIBurst=500 --set spec.kubeScheduler.enableProfiling=true --set spec.kubeScheduler.enableContentionProfiling=true --set spec.kubeControllerManager.endpointUpdatesBatchPeriod=500ms --set spec.kubeControllerManager.endpointSliceUpdatesBatchPeriod=500ms --set spec.kubeControllerManager.kubeAPIQPS=500 --set spec.kubeControllerManager.kubeAPIBurst=500 --set spec.kubeControllerManager.enableProfiling=true --set spec.kubeControllerManager.enableContentionProfiling=true --set spec.kubeAPIServer.maxRequestsInflight=800 --set spec.kubeAPIServer.maxMutatingRequestsInflight=400 --set spec.kubeAPIServer.enableProfiling=true --set spec.kubeAPIServer.enableContentionProfiling=true --set spec.kubeAPIServer.logLevel=2 --set spec.kubeAPIServer.anonymousAuth=true --set spec.kubeProxy.metricsBindAddress=0.0.0.0:10249 --node-count=5000 --dns=none --control-plane-count=3 --master-size=c5.18xlarge --admin-access 0.0.0.0/0 --master-volume-size 48
I0727 02:47:01.001824   52100 featureflag.go:168] FeatureFlag "AWSSingleNodesInstanceGroup"=true
Flag --master-size has been deprecated, use --control-plane-size instead
Flag --master-volume-size has been deprecated, use --control-plane-volume-size instead
I0727 02:47:01.073577   52100 create_cluster.go:880] Using SSH public key: /tmp/kops/e2e-ff02749ef8-a423a.test-cncf-aws.k8s.io/id_ed25519.pub
I0727 02:47:01.161823   52100 new_cluster.go:1454] Cloud Provider ID: "aws"
I0727 02:47:01.345340   52100 subnets.go:224] Assigned CIDR 10.0.0.0/18 to subnet us-east-2a
I0727 02:47:01.345380   52100 subnets.go:224] Assigned CIDR 10.0.64.0/18 to subnet us-east-2b
I0727 02:47:01.345390   52100 subnets.go:224] Assigned CIDR 10.0.128.0/18 to subnet us-east-2c
Error: error building complete spec: options did not converge after 10 iterations

This fix matches the pattern used for the CSIMigrationAWS feature gate below.

/cc @hakman @dims

@k8s-ci-robot k8s-ci-robot requested review from dims and hakman July 30, 2024 03:12
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 30, 2024
@hakman
Copy link
Member

hakman commented Jul 30, 2024

/cc @hakuna-matatah

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 30, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 30, 2024
@k8s-ci-robot k8s-ci-robot merged commit f19c837 into kubernetes:master Jul 30, 2024
21 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.30 milestone Jul 30, 2024
@dims
Copy link
Member

dims commented Jul 30, 2024

thanks @rifelpet

@rifelpet
Copy link
Member Author

/milestone v1.31

@k8s-ci-robot k8s-ci-robot modified the milestones: v1.30, v1.31 Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants