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

Deprecated syntax in kustomize patch example

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 6
    • Hide

      [student@workstation famous-kustomize]$ cat overlays/prod/kustomization.yaml 
      resources:
        - ../../base/
      patches:
        - replica_limits.yaml
      [student@workstation famous-kustomize]$ oc apply -k overlays/prod/
      error: invalid Kustomization: json: cannot unmarshal string into Go struct field Kustomization.patches of type types.Patch

      Show
      [student@workstation famous-kustomize] $ cat overlays/prod/kustomization.yaml  resources:   - ../../base/ patches:   - replica_limits.yaml [student@workstation famous-kustomize] $ oc apply -k overlays/prod/ error: invalid Kustomization: json: cannot unmarshal string into Go struct field Kustomization.patches of type types.Patch
    • en-US (English)
    • AppDev Sprint Mar6 - Mar20

      Please fill in the following information:


      URL:  
      Reporter RHNID: skareiva
      Section Title:                        ch05s06                                               

      Issue description

      Deprecated example at section "Altering Resources with Patches"

      patches:
      - replica_count.yaml

      Steps to reproduce:

      see below

      Workaround:

      Should be:

      patches:
      - path: replica_count.yaml

      Expected result:
      Patch applies normally

              jcardoso@redhat.com Jose Henrique Cardoso
              skareiva Simonas Kareiva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: