Merge pull request #114542 from pacoxu/EphemeralContainers

cleanup: EphemeralContainers feature gate related codes
This commit is contained in:
Kubernetes Prow Robot
2023-01-17 11:18:34 -08:00
committed by GitHub
13 changed files with 15 additions and 43 deletions

View File

@@ -116,7 +116,6 @@ func ephemeralContainerStartSpec(ec *v1.EphemeralContainer) *startSpec {
// targeting. The target is stored as EphemeralContainer.TargetContainerName, which must be
// resolved to a ContainerID using podStatus. The target container must already exist, which
// usually isn't a problem since ephemeral containers aren't allowed at pod creation time.
// This always returns nil when the EphemeralContainers feature is disabled.
func (s *startSpec) getTargetID(podStatus *kubecontainer.PodStatus) (*kubecontainer.ContainerID, error) {
if s.ephemeralContainer == nil || s.ephemeralContainer.TargetContainerName == "" {
return nil, nil