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

Add disableTakeOwnership to Helm install/upgrade actions #1140

Merged
merged 6 commits into from
Jan 10, 2025

Conversation

kumar-mallikarjuna
Copy link
Contributor

This change adds a new field called disableTakeOwnership to .spec.install and .spec.upgrade. The flag allows users to disable ignoring helm annotations and labels before taking ownership of existing resources during install and upgrade.

Closes #1139

xref: helm/helm#13439

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

This change adds a new field called `disableTakeOwnership` to `.spec.install` and `.spec.upgrade`. The flag allows users to disable ignoring helm annotations and labels before taking ownership of existing resources during install and upgrade.

Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
@stefanprodan stefanprodan added the area/api API related issues and pull requests label Jan 8, 2025
Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Please add some tests in internal/reconcile/install_test.go and internal/reconcile/upgrade_test.go.

docs/spec/v2/helmreleases.md Outdated Show resolved Hide resolved
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
@kumar-mallikarjuna
Copy link
Contributor Author

Thanks for the contribution! Please add some tests in internal/reconcile/install_test.go and internal/reconcile/upgrade_test.go.

@matheuscscp , added a couple of tiny tests. Please LMK if these work.

@matheuscscp
Copy link
Member

Thanks @kumar-mallikarjuna, I'll take a look tomorrow

Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
docs/spec/v2/helmreleases.md Outdated Show resolved Hide resolved
docs/spec/v2/helmreleases.md Outdated Show resolved Hide resolved
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

@stefanprodan stefanprodan merged commit 9b78c2e into fluxcd:main Jan 10, 2025
6 checks passed
@kumar-mallikarjuna kumar-mallikarjuna deleted the fix-1139 branch January 10, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api API related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make takeOwnership of conflicting resources configurable
3 participants