Skip to content

Commit

Permalink
Mark useflux as beta
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill authored and RafalKorepta committed Dec 12, 2024
1 parent ef648c4 commit 41439a1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 27 deletions.
23 changes: 14 additions & 9 deletions operator/api/redpanda/v1alpha2/redpanda_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,25 @@ type ChartRef struct {
Timeout *metav1.Duration `json:"timeout,omitempty"`
// Defines how to handle upgrades, including failures.
Upgrade *HelmUpgrade `json:"upgrade,omitempty"`
// NOTE! Alpha feature
// UseFlux flag set to `false` will prevent helm controller from reconciling helm chart. The operator would be
// tight with `go` based Redpanda helm chart version. The rest of the ChartRef fields would be ignored.
// IMPORTANT: Beta Feature
//
// Before setting UseFlux flag to `false` please align your ChartVersion to `5.9.15` or ``
// Setting the `useFlux` flag to `false` disables the Helm controller's reconciliation of the Helm chart.
// This ties the operator to a specific version of the Go-based Redpanda Helm chart, causing all other
// ChartRef fields to be ignored.
//
// Before disabling `useFlux`, ensure that your `chartVersion` is aligned with `5.9.15` or the corresponding
// version of the Redpanda chart.
//
// RedpandaStatus might not be accurate if flag is set to `false` and HelmRelease is manually deleted.
// Note: When `useFlux` is set to `false`, `RedpandaStatus` may become inaccurate if the HelmRelease is
// manually deleted.
//
// To dynamically switch Flux controllers (HelmRelease and HelmRepository), setting `useFlux` to `false`
// will suspend these resources instead of removing them.
//
// To achieve dynamic switch for Flux controllers (HelmRelease and HelmRepository) the resources
// would not be removed, but they will be put in suspended mode (if flag is provided and set to `false`).
// References:
// - https://fluxcd.io/flux/components/helm/helmreleases/#suspend
// - https://fluxcd.io/flux/components/source/helmrepositories/#suspend
//
// https://fluxcd.io/flux/components/helm/helmreleases/#suspend
// https://fluxcd.io/flux/components/source/helmrepositories/#suspend
// +optional
UseFlux *bool `json:"useFlux,omitempty"`
}
Expand Down
44 changes: 26 additions & 18 deletions operator/config/crd/bases/cluster.redpanda.com_redpandas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,24 @@ spec:
type: object
useFlux:
description: |-
NOTE! Alpha feature
UseFlux flag set to `false` will prevent helm controller from reconciling helm chart. The operator would be
tight with `go` based Redpanda helm chart version. The rest of the ChartRef fields would be ignored.
IMPORTANT: Beta Feature

Before setting UseFlux flag to `false` please align your ChartVersion to `5.9.15` or ``
Setting the `useFlux` flag to `false` disables the Helm controller's reconciliation of the Helm chart.
This ties the operator to a specific version of the Go-based Redpanda Helm chart, causing all other
ChartRef fields to be ignored.

Before disabling `useFlux`, ensure that your `chartVersion` is aligned with `5.9.15` or the corresponding
version of the Redpanda chart.

RedpandaStatus might not be accurate if flag is set to `false` and HelmRelease is manually deleted.
Note: When `useFlux` is set to `false`, `RedpandaStatus` may become inaccurate if the HelmRelease is
manually deleted.

To achieve dynamic switch for Flux controllers (HelmRelease and HelmRepository) the resources
would not be removed, but they will be put in suspended mode (if flag is provided and set to `false`).
To dynamically switch Flux controllers (HelmRelease and HelmRepository), setting `useFlux` to `false`
will suspend these resources instead of removing them.

https://fluxcd.io/flux/components/helm/helmreleases/#suspend
https://fluxcd.io/flux/components/source/helmrepositories/#suspend
References:
- https://fluxcd.io/flux/components/helm/helmreleases/#suspend
- https://fluxcd.io/flux/components/source/helmrepositories/#suspend
type: boolean
type: object
clusterSpec:
Expand Down Expand Up @@ -20359,20 +20363,24 @@ spec:
type: object
useFlux:
description: |-
NOTE! Alpha feature
UseFlux flag set to `false` will prevent helm controller from reconciling helm chart. The operator would be
tight with `go` based Redpanda helm chart version. The rest of the ChartRef fields would be ignored.
IMPORTANT: Beta Feature

Setting the `useFlux` flag to `false` disables the Helm controller's reconciliation of the Helm chart.
This ties the operator to a specific version of the Go-based Redpanda Helm chart, causing all other
ChartRef fields to be ignored.

Before setting UseFlux flag to `false` please align your ChartVersion to `5.9.15` or ``
Before disabling `useFlux`, ensure that your `chartVersion` is aligned with `5.9.15` or the corresponding
version of the Redpanda chart.

RedpandaStatus might not be accurate if flag is set to `false` and HelmRelease is manually deleted.
Note: When `useFlux` is set to `false`, `RedpandaStatus` may become inaccurate if the HelmRelease is
manually deleted.

To achieve dynamic switch for Flux controllers (HelmRelease and HelmRepository) the resources
would not be removed, but they will be put in suspended mode (if flag is provided and set to `false`).
To dynamically switch Flux controllers (HelmRelease and HelmRepository), setting `useFlux` to `false`
will suspend these resources instead of removing them.

https://fluxcd.io/flux/components/helm/helmreleases/#suspend
https://fluxcd.io/flux/components/source/helmrepositories/#suspend
References:
- https://fluxcd.io/flux/components/helm/helmreleases/#suspend
- https://fluxcd.io/flux/components/source/helmrepositories/#suspend
type: boolean
type: object
clusterSpec:
Expand Down

0 comments on commit 41439a1

Please sign in to comment.