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 15
15
import oracle .kubernetes .operator .KubernetesConstants ;
16
16
17
17
public abstract class BasePodStepContext extends StepContextBase {
18
- final void updateForDeepSubstitution (V1PodSpec podSpec ) {
18
+ final void updateForDeepSubstitution (V1PodSpec podSpec , Object target ) {
19
19
getContainer (podSpec )
20
20
.ifPresent (
21
21
c -> {
22
- doDeepSubstitution (deepSubVars (c .getEnv ()), podSpec );
22
+ doDeepSubstitution (deepSubVars (c .getEnv ()), target );
23
23
});
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ private V1PodTemplateSpec createPodTemplateSpec(TuningParameters tuningParameter
210
210
.metadata (createPodTemplateMetadata ())
211
211
.spec (createPodSpec (tuningParameters ));
212
212
213
- updateForDeepSubstitution (podTemplateSpec .getSpec ());
213
+ updateForDeepSubstitution (podTemplateSpec .getSpec (), podTemplateSpec );
214
214
return podTemplateSpec ;
215
215
}
216
216
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ V1Pod withNonHashedElements(V1Pod pod) {
398
398
399
399
updateForStartupMode (pod );
400
400
updateForShutdown (pod );
401
- updateForDeepSubstitution (pod .getSpec ());
401
+ updateForDeepSubstitution (pod .getSpec (), pod );
402
402
403
403
return pod ;
404
404
}
You can’t perform that action at this time.
0 commit comments