topolvm-crds
TopoLVM CRDs
About this chart
The CRD is copied from upstream: https://github.com/topolvm/topolvm/tree/topolvm-chart-v15.7.1/charts/topolvm/templates/crds/topolvm.io_logicalvolumes.yaml
This is a separate chart from the actual topolvm chart because we wish to install the CRD independently of the main topolvm chart, as a separate helmfile release managed by the admin user, following the pattern we use for other operators and plugins.
Notes on the WMF copy:
- Only the
topolvm.ioLogicalVolume CRD is shipped. Upstream also ships a legacytopolvm.cybozu.comCRD (used whenuseLegacy: true); we do not use the legacy naming, so it is omitted. - The upstream
{{ if not .Values.useLegacy }}guard is removed so that this is a plain, non-templated CRD. - A
helm.sh/resource-policy: keepannotation is added so that uninstalling this chart never deletes the CRD. Deleting the LogicalVolume CRD would cascade-delete every LogicalVolume custom resource, which track real LVM logical volumes on the hosts.
If you are upgrading the topolvm chart, please copy and update the upstream CRD to the templates/ directory here, and update Chart.yaml's appVersion to match the upstream version. (Chart.yaml version should be updated too, but it is an arbitrary WMF only version.)
See: https://helm.sh/docs/chart_best_practices/custom_resource_definitions/
Deploy topolvm-crds with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has topolvm-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 charttopolvm-crds is pinned at v0.0.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