Skip to content

Commit

Permalink
Add autoscaling:CancelInstanceRefresh permission for CAPA (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDog authored Jul 4, 2024
1 parent c7ff7db commit 1a4abb4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Checklist

- [ ] Update changelog in CHANGELOG.md.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add `iam:ListRoleTags` and `iam:UntagRole` permissions to the AWS operator role.
- CAPA: add new `mc-bootstrap` policy to `capa-controller` role.
- Add IAM policy for use with Crossplane AWS provider. The initial permissions are meant to be used with Cilium ENI mode.
- CAPA: add `autoscaling:CancelInstanceRefresh` permission (needed for `AWSMachinePool` reconciler [improvement](https://github.com/giantswarm/cluster-api-provider-aws/pull/598))

## [3.4.0] - 2024-01-16

Expand All @@ -24,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `s3:PutBucketOwnershipControls` to irsa policy. Needed because of [this change](https://github.com/giantswarm/irsa-operator/commit/2437798672c74cfae15162a561629c6565dbee41) in irsa-operator
- Add `"ec2:DescribeInstanceTypes"` to the CAPA controller policy, as it's required by newest CAPA releases.
- Add EKS permissions for managed node pools, encryption/identity provider configs, CIDR blocks, KMS.
- CAPA: add `s3:GetObject` permission for CAPA (needed for new [S3 object cleanup feature](https://github.com/kubernetes-sigs/cluster-api-provider-aws/pull/4667))

## [3.3.0] - 2023-05-11

Expand Down
1 change: 1 addition & 0 deletions capa-controller-role/capa-controller-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
{
"Effect": "Allow",
"Action": [
"autoscaling:CancelInstanceRefresh",
"autoscaling:CreateAutoScalingGroup",
"autoscaling:UpdateAutoScalingGroup",
"autoscaling:CreateOrUpdateTags",
Expand Down
1 change: 1 addition & 0 deletions capa-controller-role/cloud-formation-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Resources:
Resource: "*"
- Effect: "Allow"
Action:
- "autoscaling:CancelInstanceRefresh"
- "autoscaling:CreateAutoScalingGroup"
- "autoscaling:UpdateAutoScalingGroup"
- "autoscaling:CreateOrUpdateTags"
Expand Down

0 comments on commit 1a4abb4

Please sign in to comment.