Clean up as much as possible in a single pass for the EphemeralRunner reconciler (#3941)

This commit is contained in:
Nikola Jokic
2025-03-10 11:03:45 +01:00
committed by GitHub
parent 2dab45c373
commit d8f1a61ab6
4 changed files with 110 additions and 109 deletions

View File

@@ -614,7 +614,7 @@ func (b *ResourceBuilder) newEphemeralRunnerPod(ctx context.Context, runner *v1a
newPod.Spec.Containers = make([]corev1.Container, 0, len(runner.Spec.PodTemplateSpec.Spec.Containers))
for _, c := range runner.Spec.PodTemplateSpec.Spec.Containers {
if c.Name == EphemeralRunnerContainerName {
if c.Name == v1alpha1.EphemeralRunnerContainerName {
c.Env = append(
c.Env,
corev1.EnvVar{