flux-crds
by lola.2lannoy
CustomResourceDefinitions for Flux (sources, kustomizations, Helm releases, notifications, image automation, artifact generators)
About this chart
flux-crds
CustomResourceDefinitions for Flux (sources, kustomizations, Helm releases, notifications, image automation, artifact generators).
CRDs are copied verbatim from fluxcd/flux2
at tag v2.10.1 (commit 23dcfe98fe672acdf44ecd9c60cbac41b57f5de8),
path(s) manifests/crds, and rendered as regular Helm templates so that
helm upgrade updates them (Helm's own crds/ directory never upgrades).
Install
helm install flux oci://ghcr.io/spnngl/charts/flux-crds --version <version>
Chart version equals the upstream version it ships; appVersion is always the exact upstream version.
Installing requires Kubernetes >=1.25.0.
Already have these CRDs?
If the CRDs were installed by the operator chart or kubectl apply, Helm refuses with
"rendered manifests contain a resource that already exists". Either let Helm adopt them:
helm install flux oci://ghcr.io/spnngl/charts/flux-crds --version <version> --take-ownership # Helm >= 3.17
or, on older Helm, hand them over first (replace <release> and <namespace>):
kubectl annotate crd alerts.notification.toolkit.fluxcd.io artifactgenerators.source.extensions.fluxcd.io buckets.source.toolkit.fluxcd.io externalartifacts.source.toolkit.fluxcd.io gitrepositories.source.toolkit.fluxcd.io helmcharts.source.toolkit.fluxcd.io helmreleases.helm.toolkit.fluxcd.io helmrepositories.source.toolkit.fluxcd.io imagepolicies.image.toolkit.fluxcd.io imagerepositories.image.toolkit.fluxcd.io imageupdateautomations.image.toolkit.fluxcd.io kustomizations.kustomize.toolkit.fluxcd.io ocirepositories.source.toolkit.fluxcd.io providers.notification.toolkit.fluxcd.io receivers.notification.toolkit.fluxcd.io \
meta.helm.sh/release-name=<release> meta.helm.sh/release-namespace=<namespace> --overwrite
kubectl label crd alerts.notification.toolkit.fluxcd.io artifactgenerators.source.extensions.fluxcd.io buckets.source.toolkit.fluxcd.io externalartifacts.source.toolkit.fluxcd.io gitrepositories.source.toolkit.fluxcd.io helmcharts.source.toolkit.fluxcd.io helmreleases.helm.toolkit.fluxcd.io helmrepositories.source.toolkit.fluxcd.io imagepolicies.image.toolkit.fluxcd.io imagerepositories.image.toolkit.fluxcd.io imageupdateautomations.image.toolkit.fluxcd.io kustomizations.kustomize.toolkit.fluxcd.io ocirepositories.source.toolkit.fluxcd.io providers.notification.toolkit.fluxcd.io receivers.notification.toolkit.fluxcd.io \
app.kubernetes.io/managed-by=Helm --overwrite
Values
| Key | Type | Default | Description |
|---|---|---|---|
annotations | object | {} | Extra annotations added to every CRD. |
labels | object | {} | Extra labels added to every CRD. |
keepOnUninstall | bool | true | Add helm.sh/resource-policy: keep so CRDs (and all their custom resources) survive helm uninstall. |
Unknown keys are rejected (values.schema.json).
CRDs
| CRD | Kind | Group | Scope | Versions |
|---|---|---|---|---|
alerts.notification.toolkit.fluxcd.io | Alert | notification.toolkit.fluxcd.io | Namespaced | v1, v1beta3 |
artifactgenerators.source.extensions.fluxcd.io | ArtifactGenerator | source.extensions.fluxcd.io | Namespaced | v1beta1 |
buckets.source.toolkit.fluxcd.io | Bucket | source.toolkit.fluxcd.io | Namespaced | v1 |
externalartifacts.source.toolkit.fluxcd.io | ExternalArtifact | source.toolkit.fluxcd.io | Namespaced | v1 |
gitrepositories.source.toolkit.fluxcd.io | GitRepository | source.toolkit.fluxcd.io | Namespaced | v1 |
helmcharts.source.toolkit.fluxcd.io | HelmChart | source.toolkit.fluxcd.io | Namespaced | v1 |
helmreleases.helm.toolkit.fluxcd.io | HelmRelease | helm.toolkit.fluxcd.io | Namespaced | v2 |
helmrepositories.source.toolkit.fluxcd.io | HelmRepository | source.toolkit.fluxcd.io | Namespaced | v1 |
imagepolicies.image.toolkit.fluxcd.io | ImagePolicy | image.toolkit.fluxcd.io | Namespaced | v1 |
imagerepositories.image.toolkit.fluxcd.io | ImageRepository | image.toolkit.fluxcd.io | Namespaced | v1 |
imageupdateautomations.image.toolkit.fluxcd.io | ImageUpdateAutomation | image.toolkit.fluxcd.io | Namespaced | v1 |
kustomizations.kustomize.toolkit.fluxcd.io | Kustomization | kustomize.toolkit.fluxcd.io | Namespaced | v1 |
ocirepositories.source.toolkit.fluxcd.io | OCIRepository | source.toolkit.fluxcd.io | Namespaced | v1 |
providers.notification.toolkit.fluxcd.io | Provider | notification.toolkit.fluxcd.io | Namespaced | v1, v1beta3 |
receivers.notification.toolkit.fluxcd.io | Receiver | notification.toolkit.fluxcd.io | Namespaced | v1 |
Bold = storage version, struck = not served.
Verify
REF=ghcr.io/spnngl/charts/flux-crds:<version>
cosign verify \
--certificate-identity-regexp '^https://github\.com/spnngl/charts/\.github/workflows/release\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
$REF
cosign verify-attestation --type spdxjson \
--certificate-identity-regexp '^https://github\.com/spnngl/charts/\.github/workflows/release\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
$REF
gh attestation verify oci://$REF --owner spnngl
License and attribution
The CRD manifests are the work of the fluxcd/flux2 project,
licensed under Apache-2.0 (copy in LICENSE, modification statement in NOTICE).
Chart scaffolding is Apache-2.0, © spnngl. Generated by spnngl/charts;
updates are automated, please report problems there rather than upstream.
Deploy flux-crds with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has flux-crds on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartflux-crds is pinned at v2.10.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply