Closed victorv-sbp closed 4 years ago
I was actually still a bit wondering about the replicas for a CronJob, and especially why kubeval was not saying anything about that.
I just today realized that kubeval has a --strict
flag that can be used to Disallow additional properties not in schema
. Whit that flag and replicas set for the cronjob you'd get this output:
WARN - cronjob.yaml contains an invalid CronJob - replicas: Additional property replicas is not allowed
Should we then update the scripts to use that?
Yes, I think it would make sense to add the --strict
flag. Will submit a PR for that shortly.
If you have a
CronJob
type of component the release system will not make the necessary changes in the_patch_yaml_docs
method. Meaning that things like image and tag will not be replaced.Added logic to also include these type of files (as they have a different structure than
Deployment
) and also refactored a bit the existing_patch_*
methods.