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 support for weights for resources #8448
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ashok Pon Kumar <ashokponkumar@in.ibm.com>
Implemented solution: Similar to how we have an ordering requirement for known resources in the InstallOrder, users want the capability to order custom resources too. For example a custom resource like SCC need to be applied before creation of any pods. To enable this capability we can follow the same approach we use for hooks. Essentially add a annotation "helm.sh/order-weight" which can take an integer value (+ve or -ve). This will behave the same way as "helm.sh/hook-weight", but for resources not covered by hooks. Here is how it will work: The first resources to be installed will be all resources that have negative weights, and then those with zero or no weights, and then those with positive weights. All in ascending order. Chart weights: And while each resource order-weight is computed, the chart-weight gets added to its value. For the base chart, the value is 0. |
@ashokponkumar It might be worth setting this to draft until you iron/flesh out the solution more? |
sure. Done. |
Checking in here to see what’s the status on this. This was opened up in July, and it looks like there is some interest from other community members for this feature. |
@bacongobbler If we can settle on the right technique, I can try to take a stab at implementing it. Here was the last discussion based on the discussion in the developer call. |
hi, what is the status on this? |
👀 |
Any update on this effort. I have this issue with deploying gatekeeper via helm. The custom helm chart includes a number of constraint templates and constraints. The templates deploy correctly, but the constraints will not deploy as the templates are not available to all three manager nodes. I need to get the templates fully installed before attempting to reference them with security constraints. |
closes #8439
Signed-off-by: Ashok Pon Kumar ashokponkumar@in.ibm.com
What this PR does / why we need it:
Special notes for your reviewer:
If applicable: