mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 10:00:56 +00:00
Fix init command in wordpress example
This commit is contained in:
@@ -86,9 +86,8 @@ The patch has following content
|
|||||||
> initContainers:
|
> initContainers:
|
||||||
> - name: init-command
|
> - name: init-command
|
||||||
> image: debian
|
> image: debian
|
||||||
> command:
|
> command: ["/bin/sh"]
|
||||||
> - "echo $(WORDPRESS_SERVICE)"
|
> args: ["-c", "echo $(WORDPRESS_SERVICE); echo $(MYSQL_SERVICE)"]
|
||||||
> - "echo $(MYSQL_SERVICE)"
|
|
||||||
> containers:
|
> containers:
|
||||||
> - name: wordpress
|
> - name: wordpress
|
||||||
> env:
|
> env:
|
||||||
@@ -138,11 +137,13 @@ Expect this in the output:
|
|||||||
> ```
|
> ```
|
||||||
> (truncated)
|
> (truncated)
|
||||||
> ...
|
> ...
|
||||||
> initContainers:
|
> initContainers:
|
||||||
> - command:
|
> - args:
|
||||||
> - echo demo-wordpress
|
> - -c
|
||||||
> - echo demo-mysql
|
> - echo demo-wordpress; echo demo-mysql
|
||||||
> image: debian
|
> command:
|
||||||
> name: init-command
|
> - /bin/sh
|
||||||
|
> image: debian
|
||||||
|
> name: init-command
|
||||||
>
|
>
|
||||||
> ```
|
> ```
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: init-command
|
- name: init-command
|
||||||
image: debian
|
image: debian
|
||||||
command:
|
command: ["/bin/sh"]
|
||||||
- "echo $(WORDPRESS_SERVICE)"
|
args: ["-c", "echo $(WORDPRESS_SERVICE); echo $(MYSQL_SERVICE)"]
|
||||||
- "echo $(MYSQL_SERVICE)"
|
|
||||||
containers:
|
containers:
|
||||||
- name: wordpress
|
- name: wordpress
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -86,9 +86,8 @@ curl -s -o "$DEMO_HOME/#1.yaml" \
|
|||||||
> initContainers:
|
> initContainers:
|
||||||
> - name: init-command
|
> - name: init-command
|
||||||
> image: debian
|
> image: debian
|
||||||
> command:
|
> command: ["/bin/sh"]
|
||||||
> - "echo $(WORDPRESS_SERVICE)"
|
> args: ["-c", "echo $(WORDPRESS_SERVICE); echo $(MYSQL_SERVICE)"]
|
||||||
> - "echo $(MYSQL_SERVICE)"
|
|
||||||
> containers:
|
> containers:
|
||||||
> - name: wordpress
|
> - name: wordpress
|
||||||
> env:
|
> env:
|
||||||
@@ -138,11 +137,13 @@ kustomize build $DEMO_HOME
|
|||||||
> ```yaml
|
> ```yaml
|
||||||
> (truncated)
|
> (truncated)
|
||||||
> ...
|
> ...
|
||||||
> initContainers:
|
> initContainers:
|
||||||
> - command:
|
> - args:
|
||||||
> - echo demo-wordpress
|
> - -c
|
||||||
> - echo demo-mysql
|
> - echo demo-wordpress; echo demo-mysql
|
||||||
> image: debian
|
> command:
|
||||||
> name: init-command
|
> - /bin/sh
|
||||||
|
> image: debian
|
||||||
|
> name: init-command
|
||||||
>
|
>
|
||||||
> ```
|
> ```
|
||||||
|
|||||||
Reference in New Issue
Block a user