Skip to content
Back to skills

Flux Cd Knowledge Patch

ASecurity

Flux CD

  • 25 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentgoreactexpresskubernetesawsgcpazuredebugginggitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill flux-cd-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flux Cd Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flux Cd Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-flux-cd-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-flux-cd-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 APIs or controllers, configuring reconciliation,
authenticating sources, automating image updates, or working with notifications,
artifacts, CLI plugins, and the Flux Operator web UI.

## Reference index

| Reference | Topics |
| --- | --- |
| [Upgrades and supported platforms](references/upgrades-and-platforms.md) | CRD updates, manifest migration, removed APIs, Kubernetes and OpenShift support, end of life |
| [Helm releases](references/helm-releases.md) | Helm defaults, chart CRDs, rendering, values, health, retries, inventory, artifact downloads, storage namespace |
| [Identity and operations](references/identity-and-operations.md) | Workload identity, ServiceAccounts, remote clusters, GitHub Apps, controller mTLS, CLI inspection, plugins, Flux Operator |
| [Image automation](references/image-automation.md) | Stable APIs, commit templates, digest pinning, policy control, batching, pushes, tag storage, Gitless updates |
| [Kustomizations and reconciliation](references/kustomizations.md) | Field ownership, apply stages, health checks, watched configuration, deletion, SOPS, builds and diffs |
| [Notifications, Receivers, and traces](references/notifications-and-receivers.md) | Notification API migration, transport, metadata, statuses, comments, providers, webhooks, OpenTelemetry |
| [Sources and artifacts](references/sources-and-artifacts.md) | Registry validation, Git checkout, signatures, OCI verification, ArtifactGenerator, packaging |

## Upgrade changes and migrations

### Stored APIs, manifests, and CRDs

Run `flux migrate` before upgrading controllers and CRDs. Removed API versions and
platform requirements are in the upgrades reference. The 2.9.4 CLI can also migrate
checked-in manifests to the Flux 2.9 APIs:

```sh
flux migrate -f ./manifests
```

When upgrading to Flux 2.9.4, update the ArtifactGenerator and ImageUpdateAutomation
CRDs together with their controllers because both schemas changed.

Use `source.toolkit.fluxcd.io/v1` for OCIRepository and `image.toolkit.fluxcd.io/v1`
for ImageRepository, ImagePolicy, and ImageUpdateAutomation. Replace removed
image-reflector `autologin` flags with `ImageRepository.spec.provider`.
Migrate commit templates using `.Updated` or `.Changed.ImageResult` to
`.Changed.FileChanges`, `.Changed.Objects`, or `.Changed.Changes` for per-file,
per-object, or flat-list changes, respectively.

### Object identity and remote cluster authentication

Flux 2.10 always enables object identity and retires `ObjectLevelWorkloadIdentity`.
If a controller relies on 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.

### Notification API 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`.
Use `Provider.spec.certSecretRef` and `Provider.spec.proxySecretRef` for TLS and
proxy settings previously configured through `Provider.spec.secretRef`.
The migration drops `Provider.spec.interval` and static Azure Event Hubs JWT support.

### Helm apply and rendering defaults

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` feature gate to restore previous defaults.

HelmReleases default to `combined` post-rendering, 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.

### Registry, webhook, and Git push requirements

OCIRepository and ImageRepository reject registry URLs that fail validation for
`spec.provider`, even with an image pull Secret. Choose the matching `aws`, `azure`,
or `gcp` provider for automatic OIDC authentication. For public access or image pull
Secret authentication, omit `spec.provider` or use `generic`.

GCR Receivers require `email` and `audience` keys in the referenced Secret.
Static authentication for Google Cloud Storage Bucket sources requires a service
account key. CLI-generated `allow-webhooks` NetworkPolicy ingress is limited to the
receiver port; use a separate policy rule for other notification-controller ports
you need to expose.

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`.

### Image tag database storage

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.

## Reconciliation and resource ownership

### CEL readiness and health-check cancellation

With `wait: true`, a Kustomization can check custom-resource readiness using
`spec.healthCheckExprs`. This example gates dependent Kustomizations on the Ready
condition of Cluster API clusters:

```yaml
spec:
  wait: true
  healthCheckExprs:
    - apiVersion: cluster.x-k8s.io/v1beta1
      kind: Cluster
      current: "status.conditions.exists(c, c.type == 'Ready' && c.status == 'True')"
```

HelmRelease supports CEL health checks for chart resources. For either resource,
use `kind: ""` to apply a health expression across kinds in the specified API group.
Kustomization and HelmRelease also support CEL readiness for their Flux dependencies.

The opt-in `CancelHealthCheckOnNewRevision` gate can cancel active checks on new
source revisions. Both controllers can also cancel and immediately reconcile after
spec edits, referenced ConfigMap or Secret changes, or requests from `flux reconcile`
or a Receiver. Flux records `HealthCheckCanceled` as the `Ready` condition reason.
On helm-controller, also enable `DefaultToRetryOnFailure` so canceled operations can retry:

```text
--feature-gates=CancelHealthCheckOnNewRevision=true,DefaultToRetryOnFailure=true
```

### Reacting to referenced configuration

Label referenced ConfigMaps or Secrets `reconcile.fluxcd.io/watch: Enabled` to trigger
immediate reconciliation of the referencing object on changes. Alternatively, set
`--watch-configs-label-selector=owner!=helm` on the relevant controller to watch
references without adding that label.

| Referencing object | Watched fields |
| --- | --- |
| Kustomization | `spec.postBuild.substituteFrom`, `spec.decryption.secretRef`, `spec.kubeConfig.secretRef`, `spec.kubeConfig.configMapRef` |
| HelmRelease | `spec.valuesFrom`, `spec.kubeConfig.secretRef`, `spec.kubeConfig.configMapRef` |
| Receiver | `spec.secretRef` |

### Field ownership and deletion

Use Kustomization `spec.ignore` to leave selected fields under another controller's
ownership during server-side apply and drift detection. Custom server-side apply
stages control resource apply order. Set `spec.deletionPolicy: WaitForTermination`
to wait for all managed resources to be deleted before completing Kustomization deletion.

## Sources, image updates, and artifact composition

### Image digest pinning and update batching

Set `spec.digestReflectionPolicy: Always` on an ImagePolicy to track changes to the
selected tag's digest. ImageUpdateAutomation can write `<registry>/<name>:<tag>@<digest>`
or update a separate digest field using the `:digest` marker.

Set `ImageUpdateAutomation.spec.policyChangeDelay` to batch policy changes into one
update; `flux create image update` exposes `--policy-change-delay=1m`.
The controller retries rejected Git pushes. Use `{{ .Changed.Summary }}` in
`ImageUpdateAutomation.spec.git.commit.messageTemplate` to summarize changes.

### ArtifactGenerator

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 output has its own revision and can be used by a Kustomization
through `spec.sourceRef` or a HelmRelease through `spec.chartRef`.

Set `spec.pathPattern` to generate an ExternalArtifact for each matching directory;
named captures can be substituted into artifact names, labels, and copy paths.
ArtifactGenerator can extract and modify Helm charts, produce ExternalArtifacts
across namespaces, and provision tenant namespaces. Narrow copy patterns if a broad
glob hits the expansion limit. Composition examples are in the sources reference.

## Notifications and inspection

### Event metadata, deployment statuses, and traces

Annotations named `event.toolkit.fluxcd.io/<key>` on a Kustomization or HelmRelease
supply notification event metadata. Use Provider `spec.commitStatusExpr` to compute
Git commit status identifiers with CEL; including a cluster name from event metadata
gives each cluster its own status in a shared repository.

Annotate a Flux object with `event.toolkit.fluxcd.io/commit` set to the commit SHA
for deployment status reporting on that commit. An `otel` Provider with an OTLP HTTP
traces endpoint, referenced by an Alert, supplies reconciliation traces. The service
identifier comes from the Alert's name and namespace; event metadata supplies span
attributes for filtering.

### CLI debugging and local diffs

`flux debug` combines inline settings with referenced ConfigMaps and Secrets when
showing effective substitution variables or merged Helm values; output includes
values read from Secrets. Use `--show-history` to see reconciliation history.

```sh
flux debug kustomization my-app --show-vars
flux debug helmrelease my-app --show-values
flux diff kustomization apps --path ./apps --in-memory-build
flux diff kustomization apps --path ./apps --ignore-not-found
```

Use `--ignore-not-found` when the Kustomization has not been created on the cluster.
Add `--show-source` to `flux get kustomizations` or `flux get helmreleases` to display
sources. The global `--ns-follows-kube-context` flag uses the active context's namespace.

### Plugins and Flux Operator

Install catalog plugins with `flux plugin` and invoke them as `flux <plugin>`.
The CLI stores binaries in `~/fluxcd/plugins` and installs the latest version by default.
Pin a version with `flux plugin install schema@0.5.0` or an immutable binary with
`flux plugin install schema@sha256:<digest>`; inspect digests with `flux plugin search --digests`.

The Flux Operator web UI supports OIDC single sign-on for multi-tenant clusters,
delivery graphs, workload inspection, and GitOps actions governed by Kubernetes RBAC.
Its workload dashboard and pod log viewer use user impersonation for access control.
Flux Operator v0.14 can create, update, and delete application instances from ResourceSet
definitions as GitHub pull requests or GitLab merge requests change state. Flux Operator
ResourceSets also support in-cluster image update automation for Gitless GitOps workflows.

Files in this skill

  • SKILL.md9 KB
  • coverage.json812 B
  • references/helm-releases.md3.5 KB
  • references/identity-and-operations.md3.6 KB
  • references/image-automation.md3 KB
  • references/kustomizations.md3.9 KB
  • references/notifications-and-receivers.md3.6 KB
  • references/sources-and-artifacts.md4.3 KB
  • references/upgrades-and-platforms.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.