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 error to operator-builder CLI when cluster-scoped with no namespace resource #26

Open
lander2k2 opened this issue Jun 10, 2022 · 0 comments

Comments

@lander2k2
Copy link
Contributor

If a code base using cluster-scoped workload is created without a namespace child resource included, we should throw an error. This is because the resulting operator could attempt to create resources in a namespace that doesn't exist.

We should add a force flag so operator developer can override in the case they have good controls for namespace creation.

Error message something like:

You are using a cluster-scoped workload without a namespace child resource.  This could result in your controller attempting to create resources in a non-existent namespace.  Add the --force-cluster-scoped-without-ns flag to ignore this error message.
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

No branches or pull requests

1 participant