Skip to content

Instantly share code, notes, and snippets.

@icy
Last active December 23, 2019 11:42
Show Gist options
  • Select an option

  • Save icy/c659650d3ce69820953e6818e27167f8 to your computer and use it in GitHub Desktop.

Select an option

Save icy/c659650d3ce69820953e6818e27167f8 to your computer and use it in GitHub Desktop.
kustomize-json-patch.yaml
resources:
- ../local-end2end
transformers:
- transformers.yaml
# https://tools.ietf.org/html/rfc6902#section-1
# https://tools.ietf.org/html/rfc6901#section-4
patchesJson6902:
- &foo
target: &fooT
group: extensions
version: v1beta1
kind: Deployment
name: lauxanh-grpc
patch: |-
- op: remove
path: /spec/template/spec/nodeSelector/mine~1group
- <<: *foo
target:
<<: *fooT
name: lauxanh-config-grpc
- <<: *foo
target:
<<: *fooT
name: lauxanh-gateway
- <<: *foo
target:
<<: *fooT
name: lauxanh-synonyms-grpc
# transformers.yaml
# ---
# apiVersion: builtin
# kind: PrefixSuffixTransformer
# metadata:
# name: circleci-prefix
# prefix: circleci-IMAGE_TAG-
# fieldSpecs:
# - kind: Namespace
# create: false
# - kind: Deployment
# path: metadata/name
# create: true
# - kind: HorizontalPodAutoscaler
# path: metadata/name
# create: true
# - kind: Service
# path: metadata/name
# create: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment