Skip to content

Conversation

@amitlicht
Copy link
Contributor

@amitlicht amitlicht commented Jan 21, 2025

Description

This PR fixes an issue with the AWS IAM integration, where pods labeled with credentials-operator.otterize.com/create-aws-role were assigned an Otterize-generated IAM role, ignoring the label value. Meaning that if a pod was labeled with credentials-operator.otterize.com/create-aws-role=false, the integration would still create and assign an IAM role for it, possibly overriding any other user-managed role assigned to it.

References

#178
otterize/intents-operator#549

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR and in github.com/otterize/docs

…ds labeled with 'credentials-operator.otterize.com/create-aws-role=false'
@amitlicht amitlicht changed the title Fix AWS IAM integration creating an IAM role for pods labeled with 'credentials-operator.otterize.com/create-aws-role=false' Fix bug where AWS IAM roles could be created when they should not have been Jan 21, 2025
@amitlicht amitlicht requested a review from omris94 January 21, 2025 18:46
@orishoshan orishoshan changed the title Fix bug where AWS IAM roles could be created when they should not have been Fix bug where AWS IAM roles could be created even when disabled for a particular workload Jan 21, 2025
@orishoshan orishoshan changed the title Fix bug where AWS IAM roles could be created even when disabled for a particular workload Fix bug where AWS IAM roles could be created for a particular workload even when disabled for that particular workload Jan 21, 2025
@amitlicht amitlicht merged commit 9b12040 into main Jan 22, 2025
12 checks passed
@amitlicht amitlicht deleted the amitlicht/check_apply_on_pod_label_value branch January 22, 2025 09:19
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants