Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Add feature flag to control whether we should add don't evict annotation #2360

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

StrongMonkey
Copy link
Contributor

@StrongMonkey StrongMonkey commented Nov 22, 2023

Checklist

  • The title of this PR would make a good line in Acorn's Release Note's Changelog
  • The title of this PR ends with a link to the main issue being address in parentheses, like: This is a title (#1216). Here's an example
  • All relevant issues are referenced in the PR description. NOTE: don't use GitHub keywords that auto-close issues
  • Commits follow contributing guidance
  • Automated tests added to cover the changes. If tests couldn't be added, an explanation is provided in the Verification and Testing section
  • Changes to user-facing functionality, API, CLI, and upgrade impacts are clearly called out in PR description
  • PR has at least two approvals before merging (or a reasonable exception, like it's just a docs change)

We should add runtime configuration to control whether we should add karpenter do-not-evict annotation for any deploy that has 1 replica. Ideally, we should only add the annotation when cluster is in production use. For dev purpose, it is better to not have the annotation so that these apps/nodes can be consolidated.

@StrongMonkey StrongMonkey force-pushed the flip-karpenter-annotation branch from ae63210 to cfdb8a1 Compare November 22, 2023 23:33
@StrongMonkey StrongMonkey marked this pull request as ready for review December 4, 2023 23:50
@@ -73,5 +73,6 @@ func defaultProfile() apiv1.Config {
ControllerCPU: new(string),
APIServerMemory: new(string),
APIServerCPU: new(string),
AutoConfigureKarpenterDontEvictAnnotations: z.Pointer(true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: go fmt

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, still give me the same ouput 🤷‍♂️

@StrongMonkey StrongMonkey merged commit 8691e0d into acorn-io:main Dec 5, 2023
5 checks passed
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.

4 participants