diff options
author | Ashley Cui <acui@redhat.com> | 2022-09-09 10:57:45 -0400 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-09-12 18:05:17 +0200 |
commit | 72e715a1109426114ef054042be28014380a246d (patch) | |
tree | f37bdb7e103f4a8443d7fb8d0e3845d019ad0a67 /pkg/specgen | |
parent | cd32b929e35cdb2d6b49853a7b0e5d93921b0979 (diff) | |
download | podman-72e715a1109426114ef054042be28014380a246d.tar.gz podman-72e715a1109426114ef054042be28014380a246d.tar.bz2 podman-72e715a1109426114ef054042be28014380a246d.zip |
Use new secret store API
Refactored secrets API in common for stability purposes. Move podman to
said API.
[NO NEW TESTS NEEDED]
Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/specgen')
-rw-r--r-- | pkg/specgen/generate/kube/play_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/specgen/generate/kube/play_test.go b/pkg/specgen/generate/kube/play_test.go index 470c0c39c..ec0dc4bcd 100644 --- a/pkg/specgen/generate/kube/play_test.go +++ b/pkg/specgen/generate/kube/play_test.go @@ -24,11 +24,15 @@ func createSecrets(t *testing.T, d string) *secrets.SecretsManager { "path": d, } + storeOpts := secrets.StoreOptions{ + DriverOpts: driverOpts, + } + for _, s := range k8sSecrets { data, err := json.Marshal(s.Data) assert.NoError(t, err) - _, err = secretsManager.Store(s.ObjectMeta.Name, data, driver, driverOpts, nil) + _, err = secretsManager.Store(s.ObjectMeta.Name, data, driver, storeOpts) assert.NoError(t, err) } |