Closed jim-barber-he closed 1 year ago
When editing via edit cluster, putting control-plane instead of master validates, but is not applied
FYI, as a workaround you can add an in-line policy to the masters.your-cluster-name IAM policy - after it is manually added cluster edit/update does not pick it up for removal, so it kinda works (until the policy needs to be recreated from config of course). Hopefully the new release can be available soon to fix this.
/kind bug
1. What
kops
version are you running? The commandkops version
, will display this information.2. What Kubernetes version are you running?
kubectl version
will print the version if a cluster is running or provide the Kubernetes version specified as akops
flag.3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
I have a 1.25.6 cluster created with kops 1.25.3 with the following in the cluster spec
I am using kops 1.26.2 to update the cluster like so:
kops update cluster
5. What happened after the commands executed?
The changes shown by kops contained:
So it is going to attempt to remove the policy from the control plane nodes which is not what I want it to do.
6. What did you expect to happen?
The additional policy for the control plane nodes should stay intact.
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml
to display your cluster manifest. You may want to remove your cluster name and other sensitive information.Probably not applicable as I've given the
spec.additionalPolicies.master
part above that is no longer being honoured by kops.8. Please run the commands with most verbose logging by adding the
-v 10
flag. Paste the logs into this report, or in a gist and provide the gist link here.Probably not applicable, but can send if requested. I ran it and caught stderr to a file and the output from
spec_builder.go
contains this:It also has a line like:
9. Anything else do we need to know?
I also tried changing:
to
This is accepted but ends up getting turned back into
spec.additionalPolicies.master
again in the final cluster spec and still akops update cluster
results in the extra policy going to be removed.I also stood up a fresh 1.26.2 cluster with kops 1.26.2 with a manifest setting the additional policy and the resulting IAM policy does not contain it.