]> git.feebdaed.xyz Git - 0xmirror/kubernetes.git/commitdiff
Merge pull request #134345 from yuanwang04/restart-pod
authorKubernetes Prow Robot <20407524+k8s-ci-robot@users.noreply.github.com>
Tue, 11 Nov 2025 15:18:56 +0000 (07:18 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Nov 2025 15:18:56 +0000 (07:18 -0800)
Implement RestartAllContainers

1  2 
pkg/api/pod/util.go
pkg/api/pod/util_test.go
pkg/apis/core/types.go
pkg/apis/core/validation/validation.go
pkg/apis/core/validation/validation_test.go
pkg/features/kube_features.go
staging/src/k8s.io/api/core/v1/types.go
test/compatibility_lifecycle/reference/versioned_feature_list.yaml

Simple merge
Simple merge
Simple merge
index 8dcfe8a7807cbd82fb8fe8505de20b092e799e8b,5150e1d397151015b6e603d0017b5c9e09ab5f4d..1bd1d7fc660d5bba2e448721dba340440a0ce0aa
@@@ -4470,10 -4465,10 +4484,12 @@@ type PodValidationOptions struct 
        AllowContainerRestartPolicyRules bool
        // Allow user namespaces with volume devices, even though they will not function properly (should only be tolerated in updates of objects which already have this invalid configuration).
        AllowUserNamespacesWithVolumeDevices bool
 +      // Allow taint toleration comparison operators (Lt, Gt)
 +      AllowTaintTolerationComparisonOperators bool
        // Allow hostNetwork pods to use user namespaces
        AllowUserNamespacesHostNetworkSupport bool
+       // Allow containers to have restart policy rule with RestartAllContainers action, applicable for init, sidecar, and regular containers.
+       AllowRestartAllContainers bool
  }
  
  // validatePodMetadataAndSpec tests if required fields in the pod.metadata and pod.spec are set,
Simple merge