diff --git a/pkg/cmd/daemonset.go b/pkg/cmd/daemonset.go index 6e588e6..5ee4277 100644 --- a/pkg/cmd/daemonset.go +++ b/pkg/cmd/daemonset.go @@ -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) diff --git a/pkg/cmd/deployment.go b/pkg/cmd/deployment.go index 19af64d..74a2f18 100644 --- a/pkg/cmd/deployment.go +++ b/pkg/cmd/deployment.go @@ -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) diff --git a/pkg/cmd/statefulset.go b/pkg/cmd/statefulset.go index cfdec06..e027662 100644 --- a/pkg/cmd/statefulset.go +++ b/pkg/cmd/statefulset.go @@ -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)