A Job (vp-cloud/templates/08-create-collection.job.yaml) is creating a collection in mongodb pod. But as Job are immutable, it cannot be updated with the same name.
One solution is to add date in the Job name as following
name: collection-create{{ now | date "20060102150405" }}
Thus the name will be different at each update.
A Job (vp-cloud/templates/08-create-collection.job.yaml) is creating a collection in mongodb pod. But as Job are immutable, it cannot be updated with the same name. One solution is to add date in the Job name as following
name: collection-create{{ now | date "20060102150405" }}
Thus the name will be different at each update.