Skip to content

[s3] Prevent constant reconcile/diff discovery due to spaces/newlines in policy #2793

@shabbskagalwala

Description

@shabbskagalwala

Describe the bug
The s3 controller constantly keeps reconciling detecting diffs on the policy object due to newlines/spaces.

A similar fix was added to
IAM: aws-controllers-k8s/iam-controller#85
DynamoDb: https://github.com/aws-controllers-k8s/dynamodb-controller/pull/154/files#diff-92a3fc64711cf4756e675efdd8ed0e62674d460e517cf14675242254dd96f685R143

Steps to reproduce

Expected outcome
Frequent reconciles due to newlines/spaces should not occur as the policy content is the same

Environment

  • Kubernetes version
  • Using EKS (yes/no), if so version?
  • AWS service targeted (S3, RDS, etc.)

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.service/s3Indicates issues or PRs that are related to s3-controller.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions