Upgrade and roll back Flareway
Upgrade CRDs before the controller. Helm installs files in a chart’s crds/ directory on first install but does not upgrade existing CRDs automatically.
Before upgrading
Section titled “Before upgrading”- Read the GitHub release notes for every version you skip, and compare chart values.
- Confirm Gateway API v1.7.0 Standard CRDs are installed.
- Back up Flareway custom resources and the values used for the current release.
- Check for resources with
CleanupBlocked,Conflict, orProgrammed=False; resolve them before changing controller ownership. - Keep the old controller running until managed resource teardown or migration is complete.
- Replace any legacy
deletionPolicy: Deleteon existingDeviceSettingsorZeroTrustOrganizationmanifests withOrphan(or omit the field) before recreating or restoring them; new CRD admission rejectsDeleteon both singletons. - Update any negative or fractional
connectTimeout,keepAliveTimeout, ortcpKeepAlivedurations underspec.originRequeston existingGatewayClassConfigor Gateway-modeCloudflareTunnelmanifests to non-negative whole seconds before recreating or restoring them; new CEL admission rejects negative or fractional values.
Version compatibility
Section titled “Version compatibility”| Flareway version | Gateway API Standard CRDs | Kubernetes API / client-go | Envoy data plane | cloudflared connector |
|---|---|---|---|---|
v0.4.0 - v0.5.0 |
v1.7.0 (backward-compatible with v1.6.x) | v1.37 (client-go v0.37.1) | distroless-v1.40.0 |
2026.10.2 |
v0.3.3 |
v1.6.3 | v1.37 (client-go v0.37.1) | distroless-v1.39.3 |
2026.10.0 |
v0.1.0 - v0.3.1 |
v1.6.2 | v1.37 (client-go v0.37.0) | distroless-v1.39.0 |
2026.9.0 |
A Flareway controller built for Gateway API v1.7.0 remains backward-compatible with clusters running Gateway API v1.6.x Standard CRDs for all v1.6.x resources and fields. Gateway API v1.7.0 Standard CRD features such as HTTPRoute.spec.rules[].retry require the v1.7.0 CRDs installed on the cluster.
Gateway API v1.7.0 standard-install.yaml includes the safe-upgrades ValidatingAdmissionPolicy. It blocks downgrading Gateway API CRDs to v1.6.x unless you delete that policy first.
Apply the CRDs first
Section titled “Apply the CRDs first”Apply the CRDs from the chart version you are upgrading to:
helm show crds oci://ghcr.io/isac322/charts/flareway \ --version <chart-version> \ | kubectl apply --server-side -f -helm show chart oci://ghcr.io/isac322/charts/flareway prints the latest version; release notes are on GitHub Releases.
Upgrade the controller
Section titled “Upgrade the controller”helm upgrade flareway oci://ghcr.io/isac322/charts/flareway \ --version <chart-version> \ --namespace flareway-system \ --values flareway-values.yamlPrefer a reviewed values file. Use --reuse-values instead only when the values of the current release remain valid for the new chart.
Changing controller groups
Section titled “Changing controller groups”Controller groups are an ownership boundary and also select the sweep targets and remote list calls. Before disabling a group:
- Set affected remote objects to
managementPolicy: ObserveOnly, or complete deletion while the controller still runs. - Wait for status to reflect the intended observed or deleted state.
- Confirm no finalizer depends on that controller group.
- Disable the group in the Helm values.
Disabling a group stops its reconcilers, removes its sweep targets and list calls, and leaves its objects unverified until the group is re-enabled. Re-enabling the group restores the reconcilers, sweep targets, and list calls. The sweep API budget counts only enabled targets. DeviceSettings and ZeroTrustOrganization are singleton APIs and are not sweep targets. No CRD or other schema migration is required for changing controller-group flags.
Re-enable the group before changing an object back to Managed. Never run two Flareway installations that manage the same Cloudflare object. See Ownership, adoption, and teardown for how Flareway proves ownership.
Image and chart pinning
Section titled “Image and chart pinning”Use an immutable chart version. The chart can pin the controller by digest:
image: repository: ghcr.io/isac322/flareway tag: "" digest: sha256:<release-digest>The GatewayClassConfig API defaults use cloudflared 2026.10.2 and CoreDNS 1.15.0 with digests, plus Envoy distroless-v1.40.0 as a tag-only default. The chart’s data-plane image references are digest-pinned, including Envoy’s multi-arch index. Changing chart defaults does not rewrite an independently managed GatewayClassConfig unless Helm owns that object.
Rollback
Section titled “Rollback”Do not roll back CRDs. Kubernetes CRD storage and served schemas must remain compatible with objects written by the newer controller.
A controller rollback is safe only when the older binary understands the stored resource version and fields. Roll back the chart, keep the newer CRDs, and watch conditions and Events for rejected fields or ownership conflicts:
helm history flareway --namespace flareway-systemhelm rollback flareway <revision> --namespace flareway-systemIf the older controller cannot reconcile the current objects, upgrade to the newer controller again instead of removing fields by hand. Flareway keeps traffic blocked when it cannot prove that Access, xDS, tunnel configuration, DNS, or private-network prerequisites are applied.