-
Bug
-
Resolution: Unresolved
-
Minor
-
None
I have the following declarative pipeline:
pipeline { agent { kubernetes { defaultContainer 'jnlp' inheritFrom 'mypod' yaml libraryResource("my-template.yaml") } } ... }
where my-template.yaml only adds tolerations and affinity rules to the pod.
The resulting pod template includes the tolerations, but not the affinity rules...
[JENKINS-72943] inheritFrom ignores affinity rules
Description |
Original:
I have the following pipeline:
{code:java} pipeline { agent { kubernetes { defaultContainer 'jnlp' inheritFrom 'mypod' yaml libraryResource("my-template.yaml") } } ... }{code} where my-template.yaml only adds tolerations and affinity rules to the pod. The resulting pod template includes the tolerations, but not the affinity rules... |
New:
I have the following declarative pipeline:
{code:java} pipeline { agent { kubernetes { defaultContainer 'jnlp' inheritFrom 'mypod' yaml libraryResource("my-template.yaml") } } ... }{code} where my-template.yaml only adds tolerations and affinity rules to the pod. The resulting pod template includes the tolerations, but not the affinity rules... |