mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
Secret create - add ignore option to allow noop
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
@ -27,6 +27,7 @@ func CreateSecret(w http.ResponseWriter, r *http.Request) {
|
||||
DriverOpts map[string]string `schema:"driveropts"`
|
||||
Labels map[string]string `schema:"labels"`
|
||||
Replace bool `schema:"replace"`
|
||||
Ignore bool `schema:"ignore"`
|
||||
}{
|
||||
// override any golang type defaults
|
||||
}
|
||||
@ -40,6 +41,7 @@ func CreateSecret(w http.ResponseWriter, r *http.Request) {
|
||||
opts.DriverOpts = query.DriverOpts
|
||||
opts.Labels = query.Labels
|
||||
opts.Replace = query.Replace
|
||||
opts.Ignore = query.Ignore
|
||||
|
||||
ic := abi.ContainerEngine{Libpod: runtime}
|
||||
report, err := ic.SecretCreate(r.Context(), query.Name, r.Body, opts)
|
||||
|
Reference in New Issue
Block a user