- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for ownerRef (0.1 sec)
-
pkg/controller/statefulset/stateful_set_utils.go
func hasNonControllerOwner(claim *v1.PersistentVolumeClaim, set *apps.StatefulSet, pod *v1.Pod) bool { for _, ownerRef := range claim.GetOwnerReferences() { if ownerRef.UID == set.GetUID() || ownerRef.UID == pod.GetUID() { if ownerRef.Controller == nil || !*ownerRef.Controller { return true } } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
pkg/controller/garbagecollector/graph_builder.go
foundMismatch = true } else { for _, ownerRef := range dep.owners { // ... find the ownerRef with a matching uid ... if ownerRef.UID == matchOwnerIdentity.UID { // ... and check if it matches all coordinates if ownerReferenceMatchesCoordinates(ownerRef, matchOwnerIdentity.OwnerReference) { foundMatch = true } else { foundMismatch = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 36.9K bytes - Viewed (0) -
plugin/pkg/admission/gc/gc_admission.go
// the pods/status endpoint is ignored by this plugin since old kubelets // corrupt them. the pod status strategy ensures status updates cannot mutate // ownerRef. whiteList := []whiteListItem{ { groupResource: schema.GroupResource{Resource: "pods"}, subresource: "status", }, } return &gcPermissionsEnforcement{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 10.3K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control_test.go
testCases := []struct { name string ownerRef []metav1.OwnerReference expectRef bool }{ { name: "bare PVC", expectRef: true, }, { name: "PVC already controller", ownerRef: []metav1.OwnerReference{{Controller: ptr.To(true), Name: "foobar"}}, expectRef: false, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 35.5K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go
// resource that is owned by the service and sets blockOwnerDeletion=true in its ownerRef. rbacv1helpers.NewRule("update").Groups(legacyGroup).Resources("services/finalizers").RuleOrDie(), // The controller needs to be able to set a service's finalizers to be able to create an EndpointSlice // resource that is owned by the endpoint and sets blockOwnerDeletion=true in its ownerRef.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 19:25:10 UTC 2024 - 28.9K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_test.go
ssc.enqueueStatefulSet(set) fakeWorker(ssc) *set.Spec.Replicas = 0 // Put an ownerRef for all scale-down deleted PVCs. ssc.enqueueStatefulSet(set) fakeWorker(ssc) hasNamedOwnerRef := func(claim *v1.PersistentVolumeClaim, name string) bool { for _, ownerRef := range claim.GetOwnerReferences() { if ownerRef.Name == name { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.1K bytes - Viewed (0) -
plugin/pkg/admission/gc/gc_admission_test.go
func newGCPermissionsEnforcement() (*gcPermissionsEnforcement, error) { // the pods/status endpoint is ignored by this plugin since old kubelets // corrupt them. the pod status strategy ensures status updates cannot mutate // ownerRef. whiteList := []whiteListItem{ { groupResource: schema.GroupResource{Resource: "pods"}, subresource: "status", }, } gcAdmit := &gcPermissionsEnforcement{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control.go
return fmt.Errorf("could not update claim %s for delete policy ownerRefs: %w", claimName, err) } } } } return nil } // PodClaimIsStale returns true for a stale PVC that should block pod creation. If the scaling // policy is deletion, and a PVC has an ownerRef that does not match the pod, the PVC is stale. This // includes pods whose UID has not been created.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 14.9K bytes - Viewed (0)