Skip to content

Commit

Permalink
Update to client-go 1.18
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
  • Loading branch information
LucasRoesler authored and alexellis committed Jul 15, 2020
1 parent 966e609 commit 8e27efe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion k8s/profiles.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package k8s

import (
"context"
"reflect"
"strings"

Expand Down Expand Up @@ -180,7 +181,7 @@ func NewConfigMapProfileClient(kube kubernetes.Interface) ProfileClient {
func (c profileClient) Get(namespace string, names ...string) ([]Profile, error) {
var resp []Profile
for _, name := range names {
cm, err := c.kube.ConfigMaps(namespace).Get(name, metav1.GetOptions{})
cm, err := c.kube.ConfigMaps(namespace).Get(context.Background(), name, metav1.GetOptions{})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8e27efe

Please sign in to comment.