podman/pkg
Jordan Christiansen a7fc8a1460 Improve the error message for usused configMaps
If you run `podman play kube` on a yaml file that only contains
configMaps, podman will fail with the error:

	Error: YAML document does not contain any supported kube kind

This is not strictly true; configMaps are a supported kube kind. The
problem is that configMaps aren't a standalone entity. They have to be
used in a container somewhere, otherwise they don't do anything.

This change adds a new message in the case when there only configMaps
resources. It would be helpful if podman reported which configMaps are
unused on every invocation of kube play. However, even if that feedback
were added, this new error messages still helpfully explains the reason
that podman is not creating any resources.

[NO NEW TESTS NEEDED]

Signed-off-by: Jordan Christiansen <xordspar0@gmail.com>
2022-02-24 08:59:11 -06:00
..
annotations Spelling 2020-12-22 13:34:31 -05:00
api Implement Podman Container Clone 2022-02-20 21:11:14 -05:00
auth Run codespell on code 2022-01-21 09:52:12 -05:00
autoupdate bump go module to version 4 2022-01-18 12:47:07 +01:00
bindings Make sure building with relative paths work correctly. 2022-02-10 20:40:09 -05:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint Fix checkpoint/restore pod tests 2022-02-11 15:11:48 +00:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu Error out early if system does not support pre-copy checkpointing 2021-12-23 09:51:38 +00:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain Improve the error message for usused configMaps 2022-02-24 08:59:11 -06:00
env Implement env parsing on Windows 2022-01-19 12:05:04 -06:00
errorhandling Handle HTTP 409 error messages properly for Pod actions 2021-11-02 12:28:52 +01:00
hooks bump go module to version 4 2022-01-18 12:47:07 +01:00
inspect bump go module to version 4 2022-01-18 12:47:07 +01:00
kubeutils bump go module to version 4 2022-01-18 12:47:07 +01:00
lookup Enable whitespace linter 2021-02-11 23:01:56 +01:00
machine Update to podman4 copr stream 2022-02-16 03:49:17 -06:00
namespaces [NO TESTS NEEDED] Shrink the size of podman-remote 2021-03-29 09:49:45 -04:00
parallel bump go module to version 4 2022-01-18 12:47:07 +01:00
ps bump go module to version 4 2022-01-18 12:47:07 +01:00
resolvconf Revert "Move each search dns to its own line" 2022-02-02 19:33:21 +01:00
rootless rootless: report correctly the error 2022-01-19 21:14:33 +01:00
rootlessport use libnetwork from c/common 2022-01-12 17:07:30 +01:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
signal Fix build for mips architecture follow-up 2021-01-07 15:04:22 +01:00
specgen kube: honor mount propagation mode 2022-02-23 13:01:40 +01:00
specgenutil Merge pull request #13059 from cdoern/clone 2022-02-22 10:10:49 -05:00
systemd Handlers for `generate systemd` with custom dependencies 2022-01-19 21:46:16 +05:00
terminal Fix #11444: remote breaks with stdout redirection 2021-09-13 17:42:48 +03:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
trust Cleanup display of trust with transports 2022-02-22 15:08:58 -05:00
util use GetRuntimeDir() from c/common 2022-02-21 16:03:25 +01:00