Closed stefanlack closed 4 years ago
I will look into it.
@stefanlack I can reproduce this. I have moved this to the tailor
repository now as this is, to some extent, an issue with Tailor.
When using --diff=json
, one can see that Tailor tries to add the empty strings:
~ bc/jenkins-master to update
[
{
"op": "add",
"path": "/spec/strategy/dockerStrategy/env/1/value",
"value": ""
}
]
~ bc/jenkins-slave-base to update
[
{
"op": "add",
"path": "/spec/strategy/dockerStrategy/env/2/value",
"value": ""
}
]
However, it seems like OpenShift immediately removes them again. Opening the YAML in the web console shows:
- name: TARGET_HOSTS
There is no value
field. When adding value: ''
an error shows: No changes were applied to build config jenkins-master.Make sure any new fields you may have added are supported API fields.
. If you just add value:
(without single quotes), then one can save it, but the field is removed again by OpenShift.
Describe the bug After
tailor update
is executed, on next run tailor reports changes again:To Reproduce
Expected behavior After tailor update, no further changes should appier when tailor update is executed again.
Screenshots and logs
Affected version (please complete the following information):