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

[doc]Fix the oc command to patch clustermanagementaddons (bug)

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • No

      • Doc Section:
        4th point in "1.2. Configuring nodeSelectors and tolerations for klusterlet add-ons"
      • Description of problem

      The command syntax mentioned in the docs is incorrect.

      Command published in docs:

      oc patch clustermanagementaddons <addon-name> --type='json' -p='[ {"op":"add", "path":"/spec/supportedConfigs", "value":[\{"group":"addon.open-cluster-management.io","resource":"addondeploymentconfigs", "defaultConfig":{"name":"<config-name>","namespace":"<config-namespace>"}}]}]'

       

      Correct Command:

       

      oc patch clustermanagementaddons <addon-name> --type='json' -p='[{"op":"add", "path":"/spec/supportedConfigs", "value":[{"group":"addon.open-cluster-management.io","resource":"addondeploymentconfigs", "defaultConfig":{"name":"deploy-config","namespace":"open-cluster-management-hub"}}]}]'

              rh-ee-ofischer Oliver Fischer
              rhn-support-mlele Mihir Lele
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: