Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove additional conditional on Karpenter instance profile creation to support upgrading #2812

Conversation

bryantbiggs
Copy link
Member

@bryantbiggs bryantbiggs commented Nov 9, 2023

Description

  • Remove additional conditional on Karpenter instance profile creation to support upgrading

Motivation and Context

  • When upgrading to 0.32, Karpenter will now create the instance profile used by the nodes that it creates. The permissions to support this were added in feat: Add Karpenter v1beta1 compatibility #2800. However, removing the instance profile too soon can cause disruptions since existing nodes will still be using this profile until Karpenter replaces all of those existing nodes with new nodes that are using an instance profile that *IT has created. Since there is already a conditional on the profile creation (create_instance_profile), we are removing the additional conditional added in feat: Add Karpenter v1beta1 compatibility #2800 to allow users to opt into the new permissions required for 0.32, and then later opt out of the module created instance profile once they feel its safe to do so (i.e. - after all nodes have been replaced with nodes using the Karpenter created instance profile)

Breaking Changes

  • No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@bryantbiggs bryantbiggs merged commit c36c8dc into terraform-aws-modules:master Nov 10, 2023
19 checks passed
@bryantbiggs bryantbiggs deleted the fix/karpenter-instance-profile branch November 10, 2023 13:59
antonbabenko pushed a commit that referenced this pull request Nov 10, 2023
### [19.19.1](v19.19.0...v19.19.1) (2023-11-10)

### Bug Fixes

* Remove additional conditional on Karpenter instance profile creation to support upgrading ([#2812](#2812)) ([c36c8dc](c36c8dc))
@antonbabenko
Copy link
Member

This PR is included in version 19.19.1 🎉

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 11, 2023
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.

2 participants