File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
operator/src/main/java/oracle/kubernetes/operator/helpers Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515import oracle .kubernetes .operator .KubernetesConstants ;
1616
1717public abstract class BasePodStepContext extends StepContextBase {
18- final void updateForDeepSubstitution (V1PodSpec podSpec ) {
18+ final void updateForDeepSubstitution (V1PodSpec podSpec , Object target ) {
1919 getContainer (podSpec )
2020 .ifPresent (
2121 c -> {
22- doDeepSubstitution (deepSubVars (c .getEnv ()), podSpec );
22+ doDeepSubstitution (deepSubVars (c .getEnv ()), target );
2323 });
2424 }
2525
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ private V1PodTemplateSpec createPodTemplateSpec(TuningParameters tuningParameter
210210 .metadata (createPodTemplateMetadata ())
211211 .spec (createPodSpec (tuningParameters ));
212212
213- updateForDeepSubstitution (podTemplateSpec .getSpec ());
213+ updateForDeepSubstitution (podTemplateSpec .getSpec (), podTemplateSpec );
214214 return podTemplateSpec ;
215215 }
216216
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ V1Pod withNonHashedElements(V1Pod pod) {
398398
399399 updateForStartupMode (pod );
400400 updateForShutdown (pod );
401- updateForDeepSubstitution (pod .getSpec ());
401+ updateForDeepSubstitution (pod .getSpec (), pod );
402402
403403 return pod ;
404404 }
You can’t perform that action at this time.
0 commit comments