linzhengen / tech-notes

My tech notes write in github issues🧲
1 stars 0 forks source link

[20240409] In Kustomize, the escape symbol for `/` is `~1` when applying patches #201

Open linzhengen opened 6 months ago

linzhengen commented 6 months ago

Example

patches:
- patch: |-
    - op: replace
      path: /spec/template/metadata/annotations/autoscaling.knative.dev~1minScale
      value: '2'
  target:
    kind: Service
    name: my-service