From 5eb0a53a0a4a900767b6f95d207abb660ac91158 Mon Sep 17 00:00:00 2001 From: Daskan Date: Sat, 9 Sep 2023 21:41:41 +0200 Subject: [PATCH] Update podman-kube-play.1.md.in To avoid the error: `Error: unable to read YAML as Kube Pod: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal object into Go struct field Container.spec.containers.command of type string` Also makes it easier to understand as you only need the image parameter. Signed-off-by: Daskan --- docs/source/markdown/podman-kube-play.1.md.in | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/source/markdown/podman-kube-play.1.md.in b/docs/source/markdown/podman-kube-play.1.md.in index 2b957c479f..7166129172 100644 --- a/docs/source/markdown/podman-kube-play.1.md.in +++ b/docs/source/markdown/podman-kube-play.1.md.in @@ -70,10 +70,7 @@ metadata: ... spec: containers: - - command: - - top - - name: container - value: podman + - name: container image: foobar ... ``` @@ -113,9 +110,7 @@ metadata: name: foobar spec: containers: - - command: - - top - name: container-1 + - name: container-1 image: foobar envFrom: - configMapRef: @@ -145,9 +140,7 @@ metadata: name: foobar spec: containers: - - command: - - top - name: container-1 + - name: container-1 image: foobar env: - name: FOO