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