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

FailOnSharedResource enhancement proposal #17763

Open
wilsonwang371 opened this issue Apr 7, 2024 · 2 comments · May be fixed by #17764
Open

FailOnSharedResource enhancement proposal #17763

wilsonwang371 opened this issue Apr 7, 2024 · 2 comments · May be fixed by #17764
Labels
bug/enhancement component:core Syncing, diffing, cluster state cache enhancement New feature or request type:enhancement

Comments

@wilsonwang371
Copy link
Contributor

wilsonwang371 commented Apr 7, 2024

Summary

Suggesting changing FailOnSharedResource default to true if not specified. Also, add start up option to enforce FailOnSharedResource.

Motivation

Recently, we got an high priority issue in our production environment. Some users accidentally created shared resources due to a code copy & paste. Finally, the resource was deleted when one of the applications was removed. In a multi-user environment, we may need to enforce failing on shared resources.

Proposal

I suggest there need to be 2 changes.

  1. Make FailOnSharedResource default to true if not specified.
  2. Add a startup option so that FailOnSharedResource=true can be enforced no matter what is specified in the application CR.

I can submit a patch for these 2 changes.

@wilsonwang371 wilsonwang371 added the enhancement New feature or request label Apr 7, 2024
@kamalmarhubi
Copy link

kamalmarhubi commented Aug 13, 2024

@jannfis can you weigh in on whether you prefer the command line argument approach suggested here and implemented in #17764 or the AppProject approach you suggested in #10144 that was started on in #17203?

Would love to see some way to do this, as we've had at least once incident caused by uncareful setting of a namespace for an application resulting in shared resources.

cc @crenshaw-dev as you seem to be more recently active on the repo!

@alexmt alexmt added bug/enhancement component:core Syncing, diffing, cluster state cache type:enhancement labels Aug 13, 2024
@kamalmarhubi
Copy link

@alexmt since you read this and are also a more recently active contributor, do you have an opinion on this? I don't know if @wilsonwang371 is still interested in merging this, but I'd be willing to adapt their work some time in the next few weeks in order to get this into an upcoming release.

(In case it helps figuring out the preferred location for this setting, I'm also interested in enforcing that we use server side apply everywhere.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/enhancement component:core Syncing, diffing, cluster state cache enhancement New feature or request type:enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants