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

fix: Add pod labels to pod spec inside deployment object #111

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

juissi-t
Copy link
Contributor

@juissi-t juissi-t commented Jun 2, 2023

Description of the change

Add the labels defined in podLabels to pods managed by the deployment object.

Existing or Associated Issue(s)

Fixes #110

Additional Information

n/a

Checklist

  • Chart version bumped in Chart.yaml according to semver.
  • Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
  • JSON Schema generated.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

@juissi-t juissi-t requested a review from a team as a code owner June 2, 2023 10:20
Copy link
Member

@tumido tumido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @juissi-t ! Thank you for contributing this patch! 👍

The code looks good to me, however there's a few things to address:

  1. WDYT about extending this to include commonAnnotations as well? Do you think it would be useful?
  2. You need to regenerate README.md (update the version). It can be done by executing pre-commit run -a or helm-docs --chart-search-root=charts --template-files=./_templates.gotmpl --template-files=README.md.gotmpl
  3. In order to merge this PR we will need you to update your commit with Developer Certificate of Origin (can be done by git commit -s option) and have it GPG signed

@juissi-t juissi-t force-pushed the fix-110-commonlabels branch 3 times, most recently from 5025e37 to c2cb47f Compare June 5, 2023 13:12
@juissi-t juissi-t changed the title fix: Add common labels to pod spec inside deployment object fix: Add common labels and annotations to pod spec inside deployment object Jun 5, 2023
@juissi-t
Copy link
Contributor Author

juissi-t commented Jun 5, 2023

  1. WDYT about extending this to include commonAnnotations as well? Do you think it would be useful?

Frankly, I don't know if common annotations in pods would be useful. But since they are just annotations and already included in a lot of the other manifests, why not in the pod manifest as well? I added them to the pod spec now.

  1. You need to regenerate README.md (update the version). It can be done by executing pre-commit run -a or helm-docs --chart-search-root=charts --template-files=./_templates.gotmpl --template-files=README.md.gotmpl

Done.

  1. In order to merge this PR we will need you to update your commit with Developer Certificate of Origin (can be done by git commit -s option) and have it GPG signed

Done.

@juissi-t
Copy link
Contributor Author

@vinzscam @tumido Are there any other changes you would like to see in this PR?

charts/backstage/templates/backstage-deployment.yaml Outdated Show resolved Hide resolved
charts/backstage/templates/backstage-deployment.yaml Outdated Show resolved Hide resolved
charts/backstage/templates/backstage-deployment.yaml Outdated Show resolved Hide resolved
charts/backstage/templates/backstage-deployment.yaml Outdated Show resolved Hide resolved
@juissi-t juissi-t changed the title fix: Add common labels and annotations to pod spec inside deployment object fix: Add pod labels to pod spec inside deployment object Jul 1, 2023
@juissi-t juissi-t force-pushed the fix-110-commonlabels branch 2 times, most recently from 2af478f to 7fbdbf7 Compare July 1, 2023 08:32
Signed-off-by: Juha Tiensyrjä <juha.tiensyrja@gmail.com>
Copy link
Member

@vinzscam vinzscam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @juissi-t! 🙏

@vinzscam vinzscam merged commit 111933e into backstage:main Jul 4, 2023
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.

commonLabels does not add the labels to pods
3 participants