Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Add error to operator-builder CLI when cluster-scoped with no namespace resource #276

Open
lander2k2 opened this issue Feb 18, 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant