Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE
What happened:
We would like to treat certain conditionals as a specific rules match when the annotations are required.
Currently the conditionals are pure overrides and seem to work as a cascading config override so the last matching selector config wins but having a selector can be required in certain instances like architecture.
Currently this is how we have to specify architecture support but this does not enforce required selector to match.
conditionals: |
- annotationSelector: 'instancemgr.keikoproj.io/arch = arm64,instancemgr.keikoproj.io/os-family = amazonlinux2'
defaults:
spec:
eks:
configuration:
image: {{ .ArmImage }}
What you expected to happen:
This could be done via a required annotation required.instancemgr.keikoproj.io/arch = arm64 or required conditionals section so any rules miss would result in an error condition.
required-conditionals: |
- annotationSelector: 'instancemgr.keikoproj.io/arch = arm64,instancemgr.keikoproj.io/os-family = amazonlinux2'
defaults:
spec:
eks:
configuration:
image: {{ .ArmImage }}
- Enforce certain annotations are required.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Other debugging information (if applicable):
kubectl describe instancegroup <ig-name>
kubectl logs <instance-manager pod>
Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE
What happened:
We would like to treat certain conditionals as a specific rules match when the annotations are required.
Currently the conditionals are pure overrides and seem to work as a cascading config override so the last matching selector config wins but having a selector can be required in certain instances like
architecture.Currently this is how we have to specify architecture support but this does not enforce required selector to match.
What you expected to happen:
This could be done via a
requiredannotationrequired.instancemgr.keikoproj.io/arch = arm64or required conditionals section so any rules miss would result in an error condition.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Other debugging information (if applicable):