You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reconciler-options.md
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,20 +25,22 @@ WithApplyPrune turns on the --prune behavior of kubectl apply. This behavior del
25
25
This option requires (WithLabels)[#withLabels] to be used.
26
26
27
27
## WithOwner
28
-
WithOwner sets an owner ref on each deployed object by the (OwnerSelector)[https://github.com/kubernetes-sigs/kubebuilder-declarative-pattern/blob/master/pkg/patterns/declarative/options.go#L74].
28
+
WithOwner sets an owner ref on each deployed object by the [OwnerSelector].
29
29
30
30
## WithLabels
31
31
WithLabels sets a fixed set of labels configured provided by a LabelMaker to all deployment objecs for a given DeclarativeObject
32
32
33
33
## WithStatus
34
-
WithStatus provides a (Status)[https://github.com/kubernetes-sigs/kubebuilder-declarative-pattern/blob/master/pkg/patterns/declarative/status.go#L26] interface that will be used during Reconcile.
34
+
WithStatus provides a [Status] interface that will be used during Reconcile.
35
35
36
36
## WithPreserveNamespace
37
37
WithPreserveNamespace preserves the namespaces defined in the deployment manifest
38
38
instead of matching the namespace of the DeclarativeObject
39
39
40
40
## WithApplyKustomize
41
-
WithApplyKustomize run kustomize build to create final manifest
41
+
WithApplyKustomize runs the kustomize build to create final manifest. This feature needs the go dependency `kustomize/api`.
42
+
If you do not need kustomize or want to use a conflict version of `kustomize/api`, you can opt out the kustomize and
43
+
the `kustomize/api` dependency via go build tag `without-kustomize`. e.g. `go run ./main.go -tags without-kustomize`
42
44
43
45
## WithManagedApplication
44
46
WithManagedApplication is a transform that will modify the Application object in the deployment to match the configuration of the rest of the deployment.
@@ -48,3 +50,7 @@ WithApplyValidation enables validation with kubectl apply
48
50
49
51
## WithReconcileMetrics
50
52
WithReconcileMetrics enables metrics of declarative reconciler.
0 commit comments