kubebuilder-declarative-pattern
kubebuilder-declarative-pattern copied to clipboard
A toolkit for building declarative operators with kubebuilder
Currently cluster scoped resources can be created, but they're not removed when the declarative object is deleted because no ownerref. Is it expected that user should remove them manually?
**What this PR does / why we need it**: This PR adds unit tests for direct applier in `direct.go`. `direct.go` doesn't have tests as far, we should add tests for...
The library already has the support for the kustomize but it has some limitations that It ONLY loads the folder that is specified in the `PackageName` variable and this made...
**What happened**: When my `Preflight` check fails, I get a panic in the `Reconciled` implementation that I'm using (`status.NewAggregator`). It panics on the `objs.Items` access. On a brief inspection, the...
**What this PR does / why we need it**: fix #209 **Special notes for your reviewer**: **Additional documentation**:
**What happened**: Using `WithApplyPrune` in the operator doesn't prune the objects in different namespaces. **What you expected to happen**: All objects in all namespaces with matching labels will be pruned....
Per discussion in https://github.com/kubernetes-sigs/kubebuilder-declarative-pattern/pull/169 we should probably have versioning in our library and maintain a release branch. * This should make the library a little easier to consume * By...
**What happened**: 1. Controller is enabled `prune`, so that resources can be deleted automatically after they are not in manifests. 2. After annotating a resource with `addons.k8s.io/ignore=true`, this resource will...
**What happened**: Consider a declarative reconciler set up like this: ```go func (r *MyReconciler) setupReconciler(mgr ctrl.Manager) (declarative.LabelMaker, error) { // ... return watchLabels, r.Reconciler.Init(mgr, &myapiv1.MyResource{}, // ... declarative.WithStatus(status.NewBasic(mgr.GetClient()), declarative.WithObjectTransform(myTransform), )...