Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-31488

'extendedResources' configuration getting removed from 'NodeFeatureRule'

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None
    • Allow extendedResources to be set in NodeFeatureRules
    • Bug Fix
    • In Progress

      Description of problem:

      With Node Feature Discovery (NFD) opearotr 4.14 the EPC labels have been moved from labels to extended resources of the node. But when we try to configure the extendedResources in NodeFeatureRule resource and apply it, the extendedResources part gets silently remove from the resource.
      
      ~~~
      apiVersion: nfd.openshift.io/v1alpha1
      kind: NodeFeatureRule
      metadata:
        labels:
          argocd.argoproj.io/instance: six-intel-device-plugins
        name: intel-dp-sgx-device
        namespace: test-namespace
      spec:
        rules:
          - extendedResources:
              sgx.intel.com/epc: '@cpu.security.sgx.epc'
            labels:
              intel.feature.node.kubernetes.io/sgx: 'true'
            matchFeatures:
              - feature: cpu.cpuid
                matchExpressions:
                  SGX:
                    op: Exists
                  SGXLC:
                    op: Exists
              - feature: cpu.security
                matchExpressions:
                  sgx.enabled:
                    op: IsTrue
              - feature: kernel.config
                matchExpressions:
                  X86_SGX:
                    op: Exists
            name: intel.sgx
      ~~~
      
      

      Version-Release number of selected component (if applicable):

      How reproducible:

      4.14 

      Steps to Reproduce:

          1.Deploy NFD Operator 4.14
          2.Create NodeFeatureRule resource as described above
          3.Apply the resource
          4.Check the resulting yaml of the resource
          

      Actual results:

      extendedResources definition is missing 

      Expected results:

      extendedResources definition gets applied and the labels get created

      Additional info:

          

            rhn-gps-cprocter Chris Procter
            rhn-support-rbobek Roman Bobek
            Guy Gordani Guy Gordani
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: