- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NamespaceExists (0.45 sec)
-
pkg/test/kube/util.go
} if errors.IsNotFound(err) { return nil } return err }, newRetryOptions(opts...)...) } // NamespaceExists returns true if the given namespace exists. func NamespaceExists(a kubernetes.Interface, ns string) bool { allNs, err := a.CoreV1().Namespaces().List(context.TODO(), metav1.ListOptions{}) if err != nil { return false }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 9.4K bytes - Viewed (0) -
pkg/kubeapiserver/options/plugins.go
autoprovision.PluginName, // NamespaceAutoProvision lifecycle.PluginName, // NamespaceLifecycle exists.PluginName, // NamespaceExists antiaffinity.PluginName, // LimitPodHardAntiAffinityTopology limitranger.PluginName, // LimitRanger serviceaccount.PluginName, // ServiceAccount
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 17:20:46 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/test/framework/components/namespace/kube.go
prefix: name, name: name, skipDump: cfg.SkipDump, } id := ctx.TrackResource(n) n.id = id if err := n.forEachCluster(func(_ int, c cluster.Cluster) error { if !kube2.NamespaceExists(c.Kube(), name) { return n.createInCluster(c, cfg) } return nil }); err != nil { return nil, err } return n, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 9K bytes - Viewed (0)