Skip to content

Commit be8ee62

Browse files
authored
add update version force annotation (#153)
Issue: aws-controllers-k8s/community#2409 Description of changes: **Updates Go SDK version to `v1.36.3` and removes new fields from CRDs** Adds support for force upgrade annotation in EKS clusters, allowing users to force version upgrades even when there are cluster insight findings that would normally block the upgrade. - Adds `eks.services.k8s.aws/force-upgrade` annotation By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 25e32cd commit be8ee62

20 files changed

+433
-99
lines changed

apis/v1alpha1/access_entry.go

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-03-28T19:18:13Z"
3-
build_hash: 980cb1e4734f673d16101cf55206b84ca639ec01
2+
build_date: "2025-04-04T04:43:23Z"
3+
build_hash: f5a9ac2db3296fac3aa18dacf282267b15229ad1
44
go_version: go1.24.1
5-
version: v0.44.0
6-
api_directory_checksum: feb947454f62a1c6a36512771ee31f36ae7bcb6d
5+
version: v0.44.0-2-gf5a9ac2
6+
api_directory_checksum: 99ed3c67c10b10fb277bcbe40a10712ec9dd8595
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.32.6
8+
aws_sdk_go_version: v1.36.3
99
generator_config_info:
10-
file_checksum: 687d1b51c5afe75b62b50c3c32c83d7e6cadc3e3
10+
file_checksum: 4615b96497cd57742b072f9ab8ae025ac2da2ca0
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/addon.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/annotation.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ var (
4141
// of the `spec` object. If the value is "false", the controller will not force an update of the
4242
// nodegroup version.
4343
ForceNodeGroupUpdateVersionAnnotation = fmt.Sprintf("%s/force-update-version", GroupVersion.Group)
44+
// ForceClusterUpgradeAnnotation is an annotation whose value indicates whether
45+
// the cluster version upgrade should be forced even if there are cluster insight findings.
46+
// The value of this annotation must be a boolean value.
47+
ForceClusterUpgradeAnnotation = fmt.Sprintf("%s/force-upgrade", GroupVersion.Group)
4448
)
4549

4650
const (
@@ -52,4 +56,7 @@ const (
5256
// annotation that indicates that the desired size of a nodegroup is managed by the ACK
5357
// controller.
5458
DesiredSizeManagedByACKController = "ack-eks-controller"
59+
// DefaultForceClusterUpgrade is the default value for ForceClusterUpgradeAnnotation if the annotation
60+
// is not set or has an invalid value.
61+
DefaultForceClusterUpgrade = false
5562
)

apis/v1alpha1/cluster.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/enums.go

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,3 +524,6 @@ ignore:
524524
- AssociateIdentityProviderConfigOutput.Update
525525
- AssociateAccessPolicyInput.PrincipalArn
526526
- AssociateAccessPolicyInput.ClusterName
527+
- DescribeNodegroupOutput.Nodegroup.UpdateConfig.UpdateStrategy
528+
- DescribeNodegroupOutput.Nodegroup.NodeRepairConfig
529+
- CreateNodegroupInput.NodeRepairConfig

0 commit comments

Comments
 (0)