Skip to content

feat: add pod annotations - #3449

Open
muffl0n wants to merge 1 commit into
kanisterio:masterfrom
muffl0n:add-pod-annotations
Open

muffl0n wants to merge 1 commit into
kanisterio:masterfrom
muffl0n:add-pod-annotations

Conversation

@muffl0n

@muffl0n muffl0n commented Apr 23, 2025

Copy link
Copy Markdown
Contributor

Change Overview

Allow annotations to be set in Helm chart

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test
  • 🏗️ Build

Issues

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@viveksinghggits

Copy link
Copy Markdown
Contributor

Hi @muffl0n,
Thank you for the PR. Do you mind adding some unit tests here https://github.com/kanisterio/kanister/blob/master/pkg/testing/helm/helm_test.go

Maybe we should just install (--dry-run) kanister with some annotations provided (using values.yaml) and make sure that they are present in the rendered deployment resource manifest.

@muffl0n

muffl0n commented Apr 23, 2025

Copy link
Copy Markdown
Contributor Author

I remember playing around with the helm tests some month ago and realising too late, that it does things on the current configured k8s context. Is this still the case? Is there some documentation that describes what it does and what prerequisite are needed?

Testing the templates alone feels more like a use case for something like https://github.com/helm-unittest/helm-unittest cause installing the resources is not really needed here. 🤔

Signed-off-by: Sven Schliesing <muffl0n@raffts.net>
@muffl0n
muffl0n force-pushed the add-pod-annotations branch from 2f87bac to 42bfd73 Compare April 23, 2025 14:13
@viveksinghggits

Copy link
Copy Markdown
Contributor

I remember playing around with the helm tests some month ago and realising too late, that it does things on the current configured k8s context. Is this still the case? Is there some documentation that describes what it does and what prerequisite are needed?

Testing the templates alone feels more like a use case for something like https://github.com/helm-unittest/helm-unittest cause installing the resources is not really needed here. 🤔

So in our github actions we use kind cluster and then try to just run helm install with --dry-run flag.
Or in other words from our github actions (https://github.com/kanisterio/kanister/blob/master/.github/workflows/main.yaml#L90) we call make helm-test which eventually calls ./build/helm-test.sh. That runs the test in https://github.com/kanisterio/kanister/blob/master/pkg/testing/helm/helm_test.go against the kind cluster.

@muffl0n if you want someone from us can push the test on top of this PR.

@muffl0n

muffl0n commented Apr 28, 2025

Copy link
Copy Markdown
Contributor Author

if you want someone from us can push the test on top of this PR.

That would be awesome! Unfortunately, some deadlines are blocking me from investing more time into this. :(

@viveksinghggits

Copy link
Copy Markdown
Contributor

if you want someone from us can push the test on top of this PR.

That would be awesome! Unfortunately, some deadlines are blocking me from investing more time into this. :(

no problem @muffl0n , I will ask someone else to continue working on this PR.

@a-kumar5

Copy link
Copy Markdown

@viveksinghggits Can i work upon this PR to add the helm tests?

@hairyhum

Copy link
Copy Markdown
Contributor

@a-kumar5 sure, go ahead. Thanks.

@a-kumar5

a-kumar5 commented May 28, 2025 •

Copy link
Copy Markdown

@viveksinghggits @hairyhum Raised a new PR: #3491 Please review the changes and let me know.

@github-actions

Copy link
Copy Markdown
Contributor

This PR is marked as stale due to inactivity. Add a new comment to reactivate it. CC @kanisterio/maintainers

@github-actions github-actions Bot added the stale label Aug 27, 2025
@muffl0n

muffl0n commented Aug 27, 2025

Copy link
Copy Markdown
Contributor Author

/unstale

@github-actions github-actions Bot removed the stale label Aug 28, 2025
@github-actions

Copy link
Copy Markdown
Contributor

This PR is marked as stale due to inactivity. Add a new comment to reactivate it. CC @kanisterio/maintainers

@github-actions github-actions Bot added the stale label Nov 26, 2025
@muffl0n

muffl0n commented Nov 26, 2025

Copy link
Copy Markdown
Contributor Author

/unstale

@github-actions github-actions Bot removed the stale label Nov 27, 2025
@github-actions

Copy link
Copy Markdown
Contributor

This PR is marked as stale due to inactivity. Add a new comment to reactivate it. CC @kanisterio/maintainers

@github-actions github-actions Bot added the stale label Feb 25, 2026
@muffl0n

muffl0n commented Feb 25, 2026

Copy link
Copy Markdown
Contributor Author

/unstale

@github-actions github-actions Bot removed the stale label Feb 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR is marked as stale due to inactivity. Add a new comment to reactivate it. CC @kanisterio/maintainers

@github-actions github-actions Bot added the stale label May 27, 2026
@muffl0n

muffl0n commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

/unstale

@github-actions github-actions Bot removed the stale label May 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR is marked as stale due to inactivity. Add a new comment to reactivate it. CC @kanisterio/maintainers

@github-actions github-actions Bot added the stale label Aug 27, 2026
@muffl0n

muffl0n commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

/unstale

@github-actions github-actions Bot removed the stale label Aug 28, 2026

This branch has not been deployed

No deployments
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.

Allow annotations to be set in Helm chart

4 participants