kubebuilder
kubebuilder copied to clipboard
Add target to deploy a namespace-scoped operator.
Add a Makefile target (i.e. make ns-deploy) and related kustomize configuration files to deploy a namespace-scoped operator. This target would automate the feature documented here: https://sdk.operatorframework.io/docs/building-operators/golang/operator-scope/#changing-the-permissions-to-namespaced.
I have implemented a prototype for it and I can open a PR if needed.
It does not require a particular kubernetes version.
/kind feature
We think that it is a common need so please feel free to push a PR with your idea to solve that. However, we are not sure if it would be better addressed via a makefile target. Let's check your proposal and go forward from there. WDYT?
Small note: the most that can be solved with kustomize patches the better.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale
/remove-lifecycle stale
Hi @camilamacedo86, here is my proposal "https://github.com/kubernetes-sigs/kubebuilder/pull/2254" The current idea is to run command below in the operator repository:
# generate <OPERATOR_REPO_DIR>/manifests/operator-ns-scoped.yaml
make yaml-ns-scoped
# And then set namespace and deploy manually
sed 's/<NAMESPACE>/my-namespace' manifests/operator-ns-scoped.yaml | kubectl apply -f -
I agree this is not perfect but this first step works fine on my side.
Hi @fjammes,
The idea is nice. But the implementation does not seem accurate. Please, check my comment https://github.com/kubernetes-sigs/kubebuilder/pull/2254#pullrequestreview-769487971
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
This issue has not been updated in over 1 year, and should be re-triaged.
You can:
- Confirm that this issue is still relevant with
/triage accepted(org members only) - Close this issue with
/close
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/
/remove-triage accepted