From 4ba33b40d6ec665c28cc4ddb46dfec2ab6290a13 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 19 Oct 2023 21:14:15 +0200 Subject: [PATCH] pspmutating.go aktualisiert --- pspmutating.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pspmutating.go b/pspmutating.go index 2f88510..31dd7e1 100644 --- a/pspmutating.go +++ b/pspmutating.go @@ -73,6 +73,8 @@ func FetchControllerObj(kind, name, namespace string, clientset *kubernetes.Clie return clientset.AppsV1().ReplicaSets(namespace).Get(context.TODO(), name, metav1.GetOptions{}) case "DaemonSet": return clientset.AppsV1().DaemonSets(namespace).Get(context.TODO(), name, metav1.GetOptions{}) + case "StatefulSet": + return clientset.AppsV1().StatefulSets(namespace).Get(context.TODO(), name, metav1.GetOptions{}) default: return nil, fmt.Errorf("unsupported controller kind %s", kind) }