- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DropDisabledPodFields (0.16 sec)
-
pkg/registry/core/pod/strategy.go
func (podStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { pod := obj.(*api.Pod) pod.Status = api.PodStatus{ Phase: api.PodPending, QOSClass: qos.GetPodQOS(pod), } podutil.DropDisabledPodFields(pod, nil) applySchedulingGatedCondition(pod) mutatePodAffinity(pod) applyAppArmorVersionSkew(ctx, pod) } // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 29.8K bytes - Viewed (0) -
pkg/api/pod/util_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 108.8K bytes - Viewed (0) -
pkg/api/pod/util.go
} dropDisabledFields(podSpec, podAnnotations, oldPodSpec, oldPodAnnotations) } // DropDisabledPodFields removes disabled fields from the pod metadata and spec. // This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a Pod func DropDisabledPodFields(pod, oldPod *api.Pod) { var ( podSpec *api.PodSpec podStatus *api.PodStatus
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0)