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

add template function #692

Merged
merged 1 commit into from
Aug 18, 2023
Merged

add template function #692

merged 1 commit into from
Aug 18, 2023

Conversation

myaser
Copy link
Member

@myaser myaser commented Aug 17, 2023

Add template function to be used in k8s-on-aws; it is grouping node-pools by the dedicated label, then finding if there is a common profile, it is then return a string value "karpenter", "zalando", or "" based on the profile

Signed-off-by: Mahmoud Gaballah <[email protected]>
@gargravarr
Copy link
Contributor

👍

1 similar comment
@myaser
Copy link
Member Author

myaser commented Aug 18, 2023

👍🏻

@myaser myaser merged commit 12f3f23 into master Aug 18, 2023
3 checks passed
@myaser myaser deleted the template-function branch August 18, 2023 07:27

// nodeLifeCycleProviderPerNodePoolGroup groups node-pools by the dedicated label, each node-pool-group is mapped to
// the provider suitable for its node-pool profile
// in case all pools of a group do not share the same profile, the group is mapped to empty string
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this mean in practice? Which provider would be used here by admission-controller? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

an empty string "" provider will be used, which is practically turning this feature off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants