Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-9499

When enable a currently disabled service, make sure to set an empty template to have correct defaulting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • rhos-18.0.0
    • rhos-18.0.0
    • documentation
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Proposed
    • Committed
    • Proposed
    • Proposed
    • None

      Currently when you enable a disabled service, just by setting `<service>.spec.enabled: true` the defaulting won't run properly since the webhook will default values to the golang default, instead of the kubebuilder set default on the CRD.

      To properly enable e.g. placement, when it was disabled before make sure to also set the template to `template: {}`. 

      oc patch openstackcontrolplanes/openstack-network-isolation --type='merge' --patch '{"spec": {"placement": {"enabled": true, "template": {}}}}

      If other parameters of the template need to be set, they can for sure be specified.
       
      This Jira is to track adding a note box or something else to the ctlplane documentation to highlight this need.

              igallagh@redhat.com Irina Gallagher
              rhn-support-mschuppe Martin Schuppert
              rhos-dfg-ospk8s
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: