summaryrefslogtreecommitdiff
path: root/pkg/domain
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-24 12:16:40 -0500
committerGitHub <noreply@github.com>2022-02-24 12:16:40 -0500
commit874bde20504830ac6c5169190cddcf5fe6a9caa9 (patch)
tree03e70833500f41a545d78c1e393691238fca4ea3 /pkg/domain
parent283fd60e9d3bca1cc8f7bbd25ea929b23a6b8784 (diff)
parenta7fc8a146075805c0c4941652bcaf377943f4d1c (diff)
downloadpodman-874bde20504830ac6c5169190cddcf5fe6a9caa9.tar.gz
podman-874bde20504830ac6c5169190cddcf5fe6a9caa9.tar.bz2
podman-874bde20504830ac6c5169190cddcf5fe6a9caa9.zip
Merge pull request #13325 from xordspar0/configmap-error-msg
Improve the error message for usused configMaps
Diffstat (limited to 'pkg/domain')
-rw-r--r--pkg/domain/infra/abi/play.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go
index 1cd80a6d2..8cbf5da9a 100644
--- a/pkg/domain/infra/abi/play.go
+++ b/pkg/domain/infra/abi/play.go
@@ -128,6 +128,9 @@ func (ic *ContainerEngine) PlayKube(ctx context.Context, path string, options en
}
if validKinds == 0 {
+ if len(configMaps) > 0 {
+ return nil, fmt.Errorf("ConfigMaps in podman are not a standalone object and must be used in a container")
+ }
return nil, fmt.Errorf("YAML document does not contain any supported kube kind")
}