Skip to content

spread "fix: (helm) - do not add owner references to resources that contain the Helm keep resource-policy annotation #4389" to ansible-operator#4551

Closed
bas2k wants to merge 1 commit intooperator-framework:masterfrom
bas2k:master
Closed

spread "fix: (helm) - do not add owner references to resources that contain the Helm keep resource-policy annotation #4389" to ansible-operator#4551
bas2k wants to merge 1 commit intooperator-framework:masterfrom
bas2k:master

Conversation

@bas2k
Copy link
Copy Markdown

@bas2k bas2k commented Feb 18, 2021

spread "fix: (helm) - do not add owner references to resources that contain the Helm keep resource-policy annotation #4389" for ansible-operator

Description of the change:
Spread "fix: (helm) - do not add owner references to resources that contain the Helm keep resource-policy annotation #4389" for ansible-operator

Motivation for the change:
We need such ability for ansible-operator, too.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@bas2k bas2k changed the title spread "fix: (helm) - do not add owner references to resources that contain the Helm keep resource-policy annotation #4389" for ansible-operator spread "fix: (helm) - do not add owner references to resources that contain the Helm keep resource-policy annotation #4389" to ansible-operator Feb 18, 2021
…ontain the Helm keep resource-policy annotation #4389" to ansible-operator

Signed-off-by: Alexander Brovikov <alexander@brovikov.ru>
@joelanford
Copy link
Copy Markdown
Member

helm.sh/resource-policy: keep is a helm-specific annotation. I don't think we want to re-use this annotation in ansible operators.

We could talk about supporting a similar annotation for ansible though.

@joelanford
Copy link
Copy Markdown
Member

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 18, 2021
@bas2k
Copy link
Copy Markdown
Author

bas2k commented Feb 18, 2021

We're deploying helm charts along with doing other actions using ansible-operator and we're experiencing same issue as was fixed in #4389

@joelanford
Copy link
Copy Markdown
Member

Yes, but if I understand this change correctly, then it means that ALL resources applied by an ansible operator would need to set a helm-specific annotation to prevent the injection of the owner reference, which seems wrong.

What I'm suggesting is that we teach the ansible operator about another similar annotation and use that when deciding whether to inject an owner reference.

In your case, you would then be able to include this annotation in your helm chart templates or potentially inject them as part of your ansible run.

@bas2k
Copy link
Copy Markdown
Author

bas2k commented Feb 18, 2021

I see, that makes sense, thank you!

@openshift-bot
Copy link
Copy Markdown

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 19, 2021
@openshift-bot
Copy link
Copy Markdown

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci Bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 26, 2021
@openshift-bot
Copy link
Copy Markdown

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci Bot closed this Jul 26, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jul 26, 2021

@openshift-bot: Closed this PR.

Details

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants