Uploaded image for project: 'Machine Config Operator'
  1. Machine Config Operator
  2. MCO-1057

Add list sub command to "oc adm prune machineconfigs"

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • 5
    • False
    • None
    • False
    • OCPSTRAT-824 - Garbage Collect old rendered MachineConfigs
    • 0
    • 0.000

      This can be done in conjunction with MCO-1056 or separately. It is used to list rendered configs. This will have the following arguments:

      • Pool name, which would show the rendered MCs for this particular pool. If not set, all rendered MCs are displayed, ordered by pool. This argument is not required.
      • inuse flag, this will filter the output to show only in use rendered MCs. If not set, all rendered MCs are displayed. This argument is not required.

       

      $ oc adm prune renderedmachineconfigs list 
      # lists all rendered MCs for all pools
       
      $ oc adm prune renderedmachineconfigs list  --pool-name =worker
      # lists all rendered MCs for worker pool
       
      $ oc adm prune renderedmachineconfigs list --in-use
      # lists all rendered MCs that are currently in use by the cluster's machineconfigpools
       
      $ oc adm prune renderedmachineconfigs list --in-use=false --pool-name=worker
      # lists all rendered MCs for the worker pool  

       

              rhn-support-cruhm Courtney Ruhm
              djoshy David Joshy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: