Skip to content

Commit

Permalink
Make health checking opt-in
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Jan 8, 2025
1 parent bd3accb commit d85159e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions api/v1/resourceset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ type ResourceSetSpec struct {
// +optional
ServiceAccountName string `json:"serviceAccountName,omitempty"`

// Wait instructs the controller to check the health of all the reconciled
// resources. Defaults to true.
// +kubebuilder:default:=true
// Wait instructs the controller to check the health
// of all the reconciled resources.
// +optional
Wait bool `json:"wait,omitempty"`
}
Expand Down
5 changes: 2 additions & 3 deletions config/crd/bases/fluxcd.controlplane.io_resourcesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ spec:
when reconciling the generated resources.
type: string
wait:
default: true
description: |-
Wait instructs the controller to check the health of all the reconciled
resources. Defaults to true.
Wait instructs the controller to check the health
of all the reconciled resources.
type: boolean
type: object
status:
Expand Down
2 changes: 1 addition & 1 deletion docs/api/v1/resourceset.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ The reconciliation of behaviour of a ResourceSet can be configured using the fol

The `.spec.wait` field is optional and instructs the flux-operator to perform
a health check on all applied resources and waits for them to become ready. The health
check is enabled by default and can be disabled by setting the `.spec.wait` field to `false`.
check is disabled by default and can be enabled by setting the `.spec.wait` field to `true`.

The health check is performed for the following resources types:

Expand Down

0 comments on commit d85159e

Please sign in to comment.