In our pipelines we use pod templates to specify the build environment. The issue is that when I update a container image in the pod template the old version of the pod template still exists on Jenkins. This is evident in the "Cloud" settings within Jenkins /configure page. A new template is also created with the correct settings. However an issue arises because the pod label is the same on both templates and Jenkins uses the old template.
I consider this a bug because I feel that whatever is specified in my pod template code should be what is run.
One possible solution on my end is to version the name of the pod template and I believe that would alleviate these issues. However without any sort of proper cleanup the amount of templates will just build and build within the Jenkins configure page which is certainly undesirable.
Ideally I feel that nothing should be stored on Jenkins in terms of pod templates and only my pod template code upon execution is considered.
Thanks for your time.