cloudnative-pg-crds
by lola.2lannoy
CustomResourceDefinitions for CloudNativePG (PostgreSQL clusters, backups, poolers, databases, publications, subscriptions, image catalogs)
About this chart
cloudnative-pg-crds
CustomResourceDefinitions for CloudNativePG (PostgreSQL clusters, backups, poolers, databases, publications, subscriptions, image catalogs).
CRDs are copied verbatim from cloudnative-pg/cloudnative-pg
at tag v1.30.2 (commit 30cca36d32328a78dc96c51db966ce629d5b72db),
path(s) config/crd/bases, and rendered as regular Helm templates so that
helm upgrade updates them (Helm's own crds/ directory never upgrades).
Install
helm install cloudnative-pg oci://ghcr.io/spnngl/charts/cloudnative-pg-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 cloudnative-pg oci://ghcr.io/spnngl/charts/cloudnative-pg-crds --version <version> --take-ownership # Helm >= 3.17
or, on older Helm, hand them over first (replace <release> and <namespace>):
kubectl annotate crd backups.postgresql.cnpg.io clusterimagecatalogs.postgresql.cnpg.io clusters.postgresql.cnpg.io databaseroles.postgresql.cnpg.io databases.postgresql.cnpg.io failoverquorums.postgresql.cnpg.io imagecatalogs.postgresql.cnpg.io poolers.postgresql.cnpg.io publications.postgresql.cnpg.io scheduledbackups.postgresql.cnpg.io subscriptions.postgresql.cnpg.io \
meta.helm.sh/release-name=<release> meta.helm.sh/release-namespace=<namespace> --overwrite
kubectl label crd backups.postgresql.cnpg.io clusterimagecatalogs.postgresql.cnpg.io clusters.postgresql.cnpg.io databaseroles.postgresql.cnpg.io databases.postgresql.cnpg.io failoverquorums.postgresql.cnpg.io imagecatalogs.postgresql.cnpg.io poolers.postgresql.cnpg.io publications.postgresql.cnpg.io scheduledbackups.postgresql.cnpg.io subscriptions.postgresql.cnpg.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 |
|---|---|---|---|---|
backups.postgresql.cnpg.io | Backup | postgresql.cnpg.io | Namespaced | v1 |
clusterimagecatalogs.postgresql.cnpg.io | ClusterImageCatalog | postgresql.cnpg.io | Cluster | v1 |
clusters.postgresql.cnpg.io | Cluster | postgresql.cnpg.io | Namespaced | v1 |
databaseroles.postgresql.cnpg.io | DatabaseRole | postgresql.cnpg.io | Namespaced | v1 |
databases.postgresql.cnpg.io | Database | postgresql.cnpg.io | Namespaced | v1 |
failoverquorums.postgresql.cnpg.io | FailoverQuorum | postgresql.cnpg.io | Namespaced | v1 |
imagecatalogs.postgresql.cnpg.io | ImageCatalog | postgresql.cnpg.io | Namespaced | v1 |
poolers.postgresql.cnpg.io | Pooler | postgresql.cnpg.io | Namespaced | v1 |
publications.postgresql.cnpg.io | Publication | postgresql.cnpg.io | Namespaced | v1 |
scheduledbackups.postgresql.cnpg.io | ScheduledBackup | postgresql.cnpg.io | Namespaced | v1 |
subscriptions.postgresql.cnpg.io | Subscription | postgresql.cnpg.io | Namespaced | v1 |
Bold = storage version, struck = not served.
Verify
REF=ghcr.io/spnngl/charts/cloudnative-pg-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 cloudnative-pg/cloudnative-pg 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 cloudnative-pg-crds with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudnative-pg-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 chartcloudnative-pg-crds is pinned at v1.30.2 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