Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Flux Cd Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-flux-cd-knowledge-patch-nevaberry-plugins)
---
name: flux-cd-knowledge-patch
description: Flux CD
version: "2.10.1"
license: MIT
metadata:
author: Nevaberry
---
# Flux CD
Load this skill when upgrading Flux controllers or CRDs, configuring sources
and authentication, working with Kustomizations or HelmReleases, automating
image updates, or using notifications, Receivers, the CLI, and Flux Operator.
Use the topic references for complete guidance and examples.
## Reference index
| Reference | Topics |
| --- | --- |
| [Upgrades and platforms](references/upgrades-and-platforms.md) | API removals, manifest migration, CRD updates, managed fields, platform support, end of life |
| [Sources, authentication, and artifacts](references/sources-auth-and-artifacts.md) | Registry providers, workload identity, remote clusters, Git authentication, signatures, ArtifactGenerator |
| [Kustomizations and Helm](references/kustomizations-and-helm.md) | Apply defaults, health checks, watched configuration, deletion, SOPS, Helm operations |
| [Image automation](references/image-automation.md) | Stable APIs, commit templates, digest pinning, batching, tag storage, push behavior |
| [Notifications and Receivers](references/notifications-and-receivers.md) | Provider migration, event metadata, commit statuses, tracing, webhook filters and authentication |
| [CLI and Operator](references/cli-and-operator.md) | Plugins, builds and diffs, inspection, packaging, ResourceSets, web UI and logs |
## Migrate APIs and update CRDs before upgrading
Run `flux migrate` before upgrading controllers and CRDs to move resources to
stable APIs. The upgrade reference lists the APIs removed from the CRDs.
The Flux 2.9.4 CLI can also migrate checked-in manifests:
```sh
flux migrate -f ./manifests
```
Update the ArtifactGenerator and ImageUpdateAutomation CRDs together with
their controllers when upgrading to Flux 2.9.4; both schemas changed.
Use `source.toolkit.fluxcd.io/v1` for OCIRepository by changing `apiVersion`
from `source.toolkit.fluxcd.io/v1beta2`.
Use `image.toolkit.fluxcd.io/v1` for ImageRepository, ImagePolicy, and
ImageUpdateAutomation.
## Object identity and authentication changes
Flux 2.10 always enables object identity and retires the
`ObjectLevelWorkloadIdentity` feature gate. If a controller relies on the
default Flux RBAC to create ServiceAccount tokens, bind a ClusterRole granting
`create` on `serviceaccounts/token` to that controller's ServiceAccount before
upgrading.
Remote authentication through `spec.kubeConfig.configMapRef` uses object
identity. In the referenced ConfigMap's `data`, rename `audiences` to
`credential.auth.fluxcd.io/audiences` and keep the configured audience value.
OCIRepository and ImageRepository reject registry URLs that fail validation
for `spec.provider`, even with an image pull Secret. Use the matching `aws`,
`azure`, or `gcp` for automatic OIDC authentication. For public access or image
pull Secret authentication, omit the provider or use `generic`.
Static Google Cloud Storage Bucket authentication requires a service account key.
Kustomize-controller resolves the default decryption ServiceAccount only when
SOPS uses a cloud KMS or Vault backend. Age-only or PGP-only Kustomizations can
decrypt with their keys alone.
## Helm defaults and upgrade-sensitive behavior
Flux ships Helm 4 with server-side apply for new HelmReleases, explicit opt-in
for existing releases, and kstatus health checks by default for all releases.
Enable helm-controller's `UseHelm3Defaults` gate to restore previous defaults.
HelmReleases default to the `combined` post-render strategy, including chart
hooks. Explicitly select `nohooks` before upgrading if hooks must remain
outside post-rendering.
Since Flux 2.8.6, helm-controller ignores force replacement when server-side
apply is enabled for the release. In Flux 2.9.6, HelmRelease upgrades using
server-side apply stop reapplying chart CRDs under the `Create` policy.
Enable helm-controller's `DisableChartDigestTracking` gate to stop appending
OCI chart digests to chart versions, keeping the original version available
to charts that use it in resource labels.
## Image automation migration and storage
Replace removed image-reflector `autologin` flags with
`ImageRepository.spec.provider`. Migrate commit templates using `.Updated` or
`.Changed.ImageResult` to `.Changed.FileChanges` for per-file changes,
`.Changed.Objects` for per-object changes, or `.Changed.Changes` for a flat list.
ImageUpdateAutomation rejects force updates and deletions in
`spec.git.push.refspec`. Remove the leading `+` from force-update refspecs and
remove deletion refspecs such as `:refs/heads/old`.
Flux 2.10 defaults to Flux artifact storage for the ImageRepository tag database.
Switching backends wipes the local database and triggers a rescan of every
ImageRepository on its first reconciliation. Set
`--feature-gates=FluxStorage=false` on image-reflector-controller to keep BadgerDB.
## Notification API and Receiver migration
Use `notification.toolkit.fluxcd.io/v1` for Event, Alert, and Provider.
When migrating from `v1beta3`, move `Alert.spec.summary` to
`Alert.spec.eventMetadata.summary`. Move TLS and proxy settings previously in
`Provider.spec.secretRef` to `Provider.spec.certSecretRef` and
`Provider.spec.proxySecretRef`. The migration drops `Provider.spec.interval`
and support for static Azure Event Hubs JWTs.
GCR Receivers require `email` and `audience` keys in the referenced Secret.
The CLI-generated `allow-webhooks` NetworkPolicy allows ingress only to the
receiver port; use a separate policy rule for any other notification-controller
port you need to expose.
## Health checks and reconciliation triggers
With `wait: true`, Kustomization `spec.healthCheckExprs` checks custom-resource
readiness by API version and kind. HelmReleases can define CEL readiness checks
for chart resources. Leave `kind: ""` to apply an expression across kinds in
the specified API group. Both Kustomizations and HelmReleases support CEL
dependency readiness.
The opt-in `CancelHealthCheckOnNewRevision` gate lets kustomize-controller
cancel an ongoing health check when a new source revision arrives. It also
supports helm-controller; both controllers can cancel active checks and
immediately reconcile after a spec edit, a referenced ConfigMap or Secret
change, or a request from `flux reconcile` or a Receiver. The `Ready` condition
reason is `HealthCheckCanceled`. On helm-controller, also enable
`DefaultToRetryOnFailure` so canceled release operations can retry:
```text
--feature-gates=CancelHealthCheckOnNewRevision=true,DefaultToRetryOnFailure=true
```
Label a referenced ConfigMap or Secret `reconcile.fluxcd.io/watch: Enabled`
for immediate reconciliation when it changes. Alternatively, set
`--watch-configs-label-selector=owner!=helm` on the relevant controller.
Kustomization watches `spec.postBuild.substituteFrom`, `spec.decryption.secretRef`,
and both `spec.kubeConfig.secretRef` and `spec.kubeConfig.configMapRef`.
HelmRelease watches `spec.valuesFrom` and both kubeConfig references.
Receiver watches `spec.secretRef`.
## Kustomization and Helm configuration
Use Kustomization `spec.ignore` to leave selected fields under another
controller's ownership during server-side apply and drift detection.
Set `spec.ignoreMissingComponents: true` to allow a listed Kustomize component
to be absent. SOPS decryption also covers Secrets generated by components.
Set Kustomization `spec.deletionPolicy: WaitForTermination` to wait for all
managed resources to be deleted before completing deletion of the Kustomization.
Since Flux 2.9.3, a partial `spec.images` override preserves fields declared
for the same image in the underlying `kustomization.yaml`.
HelmRelease supports `RetryOnFailure` for failed release operations.
Use literal mode in `spec.valuesFrom` to pass an entire ConfigMap or Secret key
as a string, with `helm install --set-literal` semantics.
Inspect HelmRelease `.status.inventory` for its managed Kubernetes resources.
## Compose artifacts and automate image updates
Add `--components-extra=source-watcher` to `flux bootstrap` or `flux install`
to enable ArtifactGenerator. Alias GitRepository, OCIRepository, or Bucket
inputs in `spec.sources` and compose outputs with `spec.artifacts[].copy`.
Each ExternalArtifact has its own revision and can be used by a Kustomization
through `spec.sourceRef` or a HelmRelease through `spec.chartRef`.
Use `spec.pathPattern` for one ExternalArtifact per matching directory;
named captures can be substituted into artifact names, labels, and copy paths.
Narrow copy patterns if a broad glob hits the expansion limit.
ArtifactGenerator also supports cross-namespace outputs and tenant namespaces.
Set ImagePolicy `spec.digestReflectionPolicy: Always` to track changes to the
selected tag's digest. ImageUpdateAutomation can write a combined
`<registry>/<name>:<tag>@<digest>` reference or use a `:digest` marker for a
separate digest field.
Set `ImageUpdateAutomation.spec.policyChangeDelay` to batch policy changes;
`flux create image update` exposes `--policy-change-delay=1m`.
Use `{{ .Changed.Summary }}` in `spec.git.commit.messageTemplate` for a change
summary. The controller retries rejected Git pushes.
## Deployment reporting and tracing
Annotations named `event.toolkit.fluxcd.io/<key>` on a Kustomization or
HelmRelease supply notification metadata. Set `event.toolkit.fluxcd.io/commit`
to a commit SHA on a Flux object so a commit status provider can report its
deployment status on that commit. `Provider.spec.commitStatusExpr` computes
custom status identifiers with CEL.
Use `githubpullrequestcomment`, `gitlabmergerequestcomment`, or
`giteapullrequestcomment` with the emitting object's
`event.toolkit.fluxcd.io/change_request` annotation for PR or MR status comments
that update on subsequent deployments.
Use an `otel` Provider with an OTLP HTTP traces endpoint and reference it from
an Alert. Its service identifier comes from the Alert's name and namespace;
Flux event metadata supplies span attributes for filtering.
## CLI inspection, plugins, and Flux Operator
`flux debug` combines inline settings with referenced ConfigMaps and Secrets;
the following output includes values read from Secrets:
```sh
flux debug kustomization my-app --show-vars
flux debug helmrelease my-app --show-values
```
Use `--show-history` with `flux debug`, and `--show-source` with
`flux get kustomizations` or `flux get helmreleases`.
Install catalog plugins with `flux plugin` and invoke them as `flux <plugin>`.
The Schema plugin validates manifests against JSON Schema and CEL and can run
in CI through its workflow action or container image.
Flux Operator ResourceSets support ephemeral pull or merge request environments
and in-cluster image update automation for Gitless GitOps workflows.
Its web UI offers GitOps Graphs, workload inspection, actions governed by
Kubernetes RBAC, OIDC single sign-on, and pod logs. The workload dashboard's
Pods tab shows rollout status and each container's image.