- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for FinalizerName (0.26 sec)
-
staging/src/k8s.io/client-go/applyconfigurations/core/v1/namespacespec.go
v1 "k8s.io/api/core/v1" ) // NamespaceSpecApplyConfiguration represents an declarative configuration of the NamespaceSpec type for use // with apply. type NamespaceSpecApplyConfiguration struct { Finalizers []v1.FinalizerName `json:"finalizers,omitempty"` } // NamespaceSpecApplyConfiguration constructs an declarative configuration of the NamespaceSpec type for use with // apply. func NamespaceSpec() *NamespaceSpecApplyConfiguration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 1.6K bytes - Viewed (0) -
pkg/registry/core/namespace/storage/storage_test.go
now := metav1.Now() namespace := &api.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", DeletionTimestamp: &now, }, Spec: api.NamespaceSpec{ Finalizers: []api.FinalizerName{api.FinalizerKubernetes}, }, Status: api.NamespaceStatus{Phase: api.NamespaceActive}, } if err := storage.store.Storage.Create(ctx, key, namespace, nil, 0, false); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 17 05:13:34 UTC 2022 - 19.8K bytes - Viewed (0) -
pkg/controller/namespace/deletion/namespaced_resources_deleter_test.go
) func TestFinalized(t *testing.T) { testNamespace := &v1.Namespace{ Spec: v1.NamespaceSpec{ Finalizers: []v1.FinalizerName{"a", "b"}, }, } if finalized(testNamespace) { t.Errorf("Unexpected result, namespace is not finalized") } testNamespace.Spec.Finalizers = []v1.FinalizerName{} if !finalized(testNamespace) { t.Errorf("Expected object to be finalized") } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 07:34:23 UTC 2023 - 15.8K bytes - Viewed (0) -
pkg/registry/core/namespace/strategy_test.go
Spec: api.NamespaceSpec{Finalizers: []api.FinalizerName{"kubernetes", "example.com/org"}}, Status: api.NamespaceStatus{Phase: api.NamespaceActive}, } namespace := &api.Namespace{ ObjectMeta: metav1.ObjectMeta{Name: "foo", ResourceVersion: "9", Labels: map[string]string{v1.LabelMetadataName: "foo"}}, Spec: api.NamespaceSpec{Finalizers: []api.FinalizerName{"example.com/foo"}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 07 08:51:17 UTC 2021 - 6K bytes - Viewed (0) -
pkg/controller/namespace/deletion/namespaced_resources_deleter.go
finalizerSet.Insert(string(namespace.Spec.Finalizers[i])) } } namespaceFinalize.Spec.Finalizers = make([]v1.FinalizerName, 0, len(finalizerSet)) for _, value := range finalizerSet.List() { namespaceFinalize.Spec.Finalizers = append(namespaceFinalize.Spec.Finalizers, v1.FinalizerName(value)) } namespace, err := d.nsClient.Finalize(ctx, &namespaceFinalize, metav1.UpdateOptions{}) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 07:34:23 UTC 2023 - 25.2K bytes - Viewed (0) -
pkg/controller/namespace/namespace_controller.go
metadataClient metadata.Interface, discoverResourcesFn func() ([]*metav1.APIResourceList, error), namespaceInformer coreinformers.NamespaceInformer, resyncPeriod time.Duration, finalizerToken v1.FinalizerName) *NamespaceController { // create the controller so we can inject the enqueue function namespaceController := &NamespaceController{ queue: workqueue.NewTypedRateLimitingQueueWithConfig( nsControllerRateLimiter(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.6K bytes - Viewed (0) -
pkg/registry/core/namespace/strategy.go
if namespace.Spec.Finalizers[i] == api.FinalizerKubernetes { hasKubeFinalizer = true break } } if !hasKubeFinalizer { if len(namespace.Spec.Finalizers) == 0 { namespace.Spec.Finalizers = []api.FinalizerName{api.FinalizerKubernetes} } else { namespace.Spec.Finalizers = append(namespace.Spec.Finalizers, api.FinalizerKubernetes) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 07 08:51:17 UTC 2021 - 8.3K bytes - Viewed (0) -
pkg/apis/core/fuzzer/fuzzer.go
} sio.FSType = c.RandString() if sio.FSType == "" { sio.FSType = "xfs" } }, func(s *core.NamespaceSpec, c fuzz.Continue) { s.Finalizers = []core.FinalizerName{core.FinalizerKubernetes} }, func(s *core.Namespace, c fuzz.Continue) { c.FuzzNoCustom(s) // fuzz self without calling this function again // Match name --> label defaulting if len(s.Name) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 04:32:01 UTC 2024 - 18.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go
"foo": "demo", }, Annotations: map[string]string{ "annotation1": "testAnnotation1", }, Finalizers: []string{"f1"}, }, Spec: corev1.NamespaceSpec{ Finalizers: []corev1.FinalizerName{ corev1.FinalizerKubernetes, }, }, Status: corev1.NamespaceStatus{ Phase: corev1.NamespaceActive, }, } var nilUnstructured *unstructured.Unstructured cases := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 40.4K bytes - Viewed (0) -
pkg/apis/core/types.go
Finalizers []FinalizerName } // FinalizerName is the name identifying a finalizer during namespace lifecycle. type FinalizerName string // These are internal finalizer values to Kubernetes, must be qualified name unless defined here or // in metav1. const ( FinalizerKubernetes FinalizerName = "kubernetes" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 268.9K bytes - Viewed (0)