Bug in IfNotPresent pollicy support #687
Labels
note:ideal-for-contribution
An issue that a contributor can help us with
semver:patch
A change requiring a patch version bump
type:bug
A general bug
https://github.com/argoproj-labs/hera/blob/e398eff8dbd36b9385dff21a39ae6c8abf11f343/src/hera/workflows/_mixins.py#LL152C1-L152C69
for image pull policy 'IfNotPresent'
ImagePullPolicy['IfNotPresent'.lower()].value gives a KeyError: 'ifnotpresent'
I had to fix it on the application side by using the ImagePullPolicy object instead
like
container.image_pull_policy = 'IfNotPresent'
container.image_pull_policy = ImagePullPolicy(container.image_pull_policy)
The text was updated successfully, but these errors were encountered: