1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 06:45:31 +01:00

Merge pull request #27302 from arsenalzp/podman_26396

Add option to remove Pod name prefix in resulting container name
This commit is contained in:
openshift-merge-bot[bot]
2025-10-20 23:47:40 +00:00
committed by GitHub
10 changed files with 58 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ func KubePlay(w http.ResponseWriter, r *http.Request) {
Userns string `schema:"userns"`
Wait bool `schema:"wait"`
Build bool `schema:"build"`
NoPodPrefix bool `schema:"noPodPrefix"`
}{
TLSVerify: true,
Start: true,
@@ -198,6 +199,7 @@ func KubePlay(w http.ResponseWriter, r *http.Request) {
Userns: query.Userns,
Wait: query.Wait,
ContextDir: contextDirectory,
NoPodPrefix: query.NoPodPrefix,
}
if _, found := r.URL.Query()["build"]; found {
options.Build = types.NewOptionalBool(query.Build)