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

NodeSelector is not being set for RuntimeClass when using MatchExpressions in KataConfigPoolSelector #118

Closed
bpradipt opened this issue Jun 11, 2021 · 0 comments · Fixed by #119

Comments

@bpradipt
Copy link
Contributor

Description
NodeSelector is not being set for RuntimeClass when using MatchExpressions in KataConfigPoolSelector

Steps to reproduce the issue:

  1. Create KataConfig from OpenShift UI which uses matchExpressions or use the following yaml
apiVersion: kataconfiguration.openshift.io/v1
kind: KataConfig
metadata:
  name: example-kataconfig
spec:
  kataConfigPoolSelector:
     matchExpressions:
       - key: custom-kata1
         operator: In
         values:
         - "test"

Describe the results you received:

Kata runtime will be successfully installed on the nodes labelled with custom-kata1=test, however NodeSelector settings in RuntimeClass will be empty
oc get runtimeclass kata -o yaml

scheduling:
  nodeSelector: {}

Describe the results you expected:
oc get runtimeclass kata -o yaml

scheduling:
    nodeSelector:
        custom-kata1: test
bpradipt added a commit to bpradipt/sandboxed-containers-operator that referenced this issue Jun 11, 2021
…oolSelector

Fixes: openshift#118

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
bpradipt added a commit to bpradipt/sandboxed-containers-operator that referenced this issue Jun 15, 2021
…oolSelector

Fixes: openshift#118

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant