topolvm-crds

by joaquinito2051

Helm chartv0.0.1App 0.38.1

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.io LogicalVolume CRD is shipped. Upstream also ships a legacy topolvm.cybozu.com CRD (used when useLegacy: 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: keep annotation 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttopolvm-crds is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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