Skip to content

Commit

Permalink
Add contexts to secret calls (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-milkey committed Jun 23, 2021
1 parent 4a5099f commit 523b54c
Show file tree
Hide file tree
Showing 4 changed files with 607 additions and 169 deletions.
3 changes: 2 additions & 1 deletion aether-roc-umbrella/tests/aether-roc-umbrella.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package tests

import (
"context"
"github.com/onosproject/helmit/pkg/helm"
"github.com/onosproject/helmit/pkg/input"
"github.com/onosproject/helmit/pkg/kubernetes"
Expand All @@ -31,7 +32,7 @@ func getCredentials() (string, string, error) {
if err != nil {
return "", "", err
}
secrets, err := kubClient.CoreV1().Secrets().Get(onostest.SecretsName)
secrets, err := kubClient.CoreV1().Secrets().Get(context.Background(), onostest.SecretsName)
if err != nil {
return "", "", err
}
Expand Down
8 changes: 3 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ module github.com/onosproject/sdran-helm-charts
go 1.14

require (
github.com/docker/docker v1.13.1 // indirect
github.com/googleapis/gnostic v0.3.0 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/onosproject/helmit v0.6.13
github.com/onosproject/onos-test v0.6.2
github.com/spf13/viper v1.5.0
github.com/stretchr/testify v1.5.1
k8s.io/client-go v0.17.3
github.com/spf13/viper v1.7.0
github.com/stretchr/testify v1.7.0
k8s.io/client-go v0.21.0
)

replace github.com/docker/docker => github.com/docker/engine v1.4.2-0.20200229013735-71373c6105e3
Loading

0 comments on commit 523b54c

Please sign in to comment.