Skip to content

Commit

Permalink
Merge remote-tracking branch 'si458/fix-appsv1'
Browse files Browse the repository at this point in the history
  • Loading branch information
06kellyjac committed Dec 10, 2020
2 parents 1b0f3be + 21ebf5b commit 948022a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var daemonsetCmd = &cobra.Command{
writer := bufio.NewWriter(&buffer)

fmt.Println("scanning daemonset", name, "in namespace", namespace)
ds, err := kubeClient.AppsV1beta2().DaemonSets(namespace).Get(name, metav1.GetOptions{})
ds, err := kubeClient.AppsV1().DaemonSets(namespace).Get(name, metav1.GetOptions{})
if err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var deploymentCmd = &cobra.Command{
writer := bufio.NewWriter(&buffer)

fmt.Println("scanning deployment", name, "in namespace", namespace)
dep, err := kubeClient.AppsV1beta2().Deployments(namespace).Get(name, metav1.GetOptions{})
dep, err := kubeClient.AppsV1().Deployments(namespace).Get(name, metav1.GetOptions{})
if err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var statefulsetCmd = &cobra.Command{
writer := bufio.NewWriter(&buffer)

fmt.Println("scanning statefulset", name, "in namespace", namespace)
ss, err := kubeClient.AppsV1beta2().StatefulSets(namespace).Get(name, metav1.GetOptions{})
ss, err := kubeClient.AppsV1().StatefulSets(namespace).Get(name, metav1.GetOptions{})
if err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down

0 comments on commit 948022a

Please sign in to comment.