diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-25 12:45:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 12:45:53 -0400 |
commit | 0a0ade3cc00c3779bbf68ddd103d3efd10b5c25b (patch) | |
tree | 7a14316df448918e2e54dce77cade7b5cac381b3 /pkg/domain/infra/tunnel | |
parent | b4767817012a3aedaf05dc7a32bd823fcd3776f4 (diff) | |
parent | e7507fe7cf2f35e332f58ae632882f29395e4c59 (diff) | |
download | podman-0a0ade3cc00c3779bbf68ddd103d3efd10b5c25b.tar.gz podman-0a0ade3cc00c3779bbf68ddd103d3efd10b5c25b.tar.bz2 podman-0a0ade3cc00c3779bbf68ddd103d3efd10b5c25b.zip |
Merge pull request #10736 from trusch/feature-use-secret-config
read secret config from config file if no user data.
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r-- | pkg/domain/infra/tunnel/secrets.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkg/domain/infra/tunnel/secrets.go b/pkg/domain/infra/tunnel/secrets.go index 1153f490e..ecbb80931 100644 --- a/pkg/domain/infra/tunnel/secrets.go +++ b/pkg/domain/infra/tunnel/secrets.go @@ -11,8 +11,14 @@ import ( ) func (ic *ContainerEngine) SecretCreate(ctx context.Context, name string, reader io.Reader, options entities.SecretCreateOptions) (*entities.SecretCreateReport, error) { - opts := new(secrets.CreateOptions).WithDriver(options.Driver).WithName(name) - created, _ := secrets.Create(ic.ClientCtx, reader, opts) + opts := new(secrets.CreateOptions). + WithDriver(options.Driver). + WithDriverOpts(options.DriverOpts). + WithName(name) + created, err := secrets.Create(ic.ClientCtx, reader, opts) + if err != nil { + return nil, err + } return created, nil } |