Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14705

oc patch example is incorrect and potentially therefore confusing

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 1
    • en-US (English)

      Please fill in the following information:


      URL:  
      Reporter RHNID: bucknd
      Section Title:       patching kubernetes resources                                                                 

      Issue description

      example given in book is

      *oc patch deployment hello -p *
      '{"spec":{"template":{"spec":{"resources":{"requests":{"cpu": "100m"}}}}}}'

      if user were to try and run an example like this it would fail as the path is missing the 'containers' section

      Steps to reproduce:

       

      Workaround:

      the example should be modified so that an example of a working patch command can be seen.... for instance

      *oc patch deployment mysql -p '{"spec":{"template":{"spec":{"containers":[{"name": "mysql-80-rhel7","resources": {"requests":

      {"cpu": "100m"}

      }}]}}}}'*

       

      Expected result:

              rht-mordonez Maria Ordonez Casado
              bucknd David Bucknell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: