containers/podman

feat(kube play): flag to specify resources (pods, secrets, volumes) labels

Open

#26.450 geöffnet am 17. Juni 2025

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (2 zugewiesene Personen)Go (3.107 Forks)batch import
Good First Issuekind/feature

Repository-Metriken

Stars
 (31.686 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Feature request description

When creating a pod (podman pod create), a secret (podman secret create), a volume (podman create volume) we can specify a --label flag, this is very handy to add metadata to resources.

The podman kube play command create pods, secrets, volumes, and have an --annotation property, but pods, secrets and volume do not support annotation, as mentioned in https://github.com/containers/podman/issues/26448 the annotation documentation should be updated.

Suggest potential solution

Adding a --label flag, that will propagate to each resources created by the podman kube play command.

Have you considered any alternatives?

N/A

Additional context

Would be helpful for https://github.com/containers/podman/issues/25185


Poc branch https://github.com/axel7083/podman/tree/feature/kube-play/label-flag

Contributor Guide