Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScaledJob: support metadata labels in Job template #1686

Merged
merged 2 commits into from
Mar 18, 2021

Conversation

zroubalik
Copy link
Member

@zroubalik zroubalik commented Mar 18, 2021

Signed-off-by: Zbynek Roubalik zroubali@redhat.com

Add x-kubernetes-preserve-unknown-fields to ScaledJob CRD in order to support Labels in Job templates. Because there's a bug in controller-gen, this field is not set during the generation. We need to patch during the "release of yaml" process via Kustomization.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • [N/A] Tests have been added
  • [N/A] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
  • [N/A] A PR is opened to update the documentation on (repo) (if applicable)
  • Changelog has been updated

Fixes #1311

… support Labels in Job templates

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
@zroubalik zroubalik added this to the v2.2 milestone Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support metadata labels in ScaledJob template
2 participants