From 129458d30f2379664bded7f7cc2e9024e82f5d2d Mon Sep 17 00:00:00 2001 From: Richard Marshall Date: Thu, 26 Apr 2018 07:38:07 -0700 Subject: [PATCH] Add subcommand for adding patches to the kustomization file. --- demos/springboot.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/demos/springboot.md b/demos/springboot.md index a5ef306b6a..15bdc6cf9f 100644 --- a/demos/springboot.md +++ b/demos/springboot.md @@ -111,10 +111,7 @@ spec: value: prod EOF -cat <>$DEMO_HOME/kustomization.yaml -patches: -- patch.yaml -EOF +kustomize edit add patch patch.yaml cat <$DEMO_HOME/application-prod.properties spring.jpa.hibernate.ddl-auto=update @@ -304,16 +301,14 @@ include this patch. ``` -mv $DEMO_HOME/kustomization.yaml $DEMO_HOME/tmp.yaml - -sed '/patches:$/{N;s/- patch.yaml/- patch.yaml\n- memorylimit_patch.yaml\n- healthcheck_patch.yaml/}' \ - $DEMO_HOME/tmp.yaml >& $DEMO_HOME/kustomization.yaml +kustomize edit add patch memorylimit_patch.yaml +kustomize edit add patch healthcheck_patch.yaml ``` `kustomization.yaml` should have patches field: > ``` -> patches +> patches: > - patch.yaml > - memorylimit_patch.yaml > - healthcheck_patch.yaml