Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-12870

NMStateConfig example missing desiredState

XMLWordPrintable

    • False
    • None
    • False
    • None

      Description of problem:

      Doc section: https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.10/html/clusters/cluster_mce_overview#cim-network-config 

      NMStateConfig example syntax fails because it is missing desiredState
      
      The current doc example uses
      spec:
        config:
          interfaces:
      
      this fails with: 
      The NodeNetworkConfigurationPolicy "<name>" is invalid: spec.desiredState: Invalid value: "null": spec.desiredState in body must be of type object: "null"
      
      This example should be adjusted to use desiredState, ex:
      spec:
        desiredState:
          interfaces: 

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

      OCP 4.14.21
      multicluster-engine.v2.5.3 
      kubernetes-nmstate-operator.4.14.0-202406060838

      How reproducible:

      Anytime "config" example is used

      Steps to Reproduce:

          1. Apply NMStateConfig following doc yaml
          2. Error     

      Actual results:

      NMStateConfig is not applied    

      Expected results:

      Valid doc example    

            rh-ee-ofischer Oliver Fischer
            jhopper@redhat.com Jenifer Abrams
            David Huynh David Huynh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: