Piraeus Operator installed.

{{- $piraeusResources := .Capabilities.APIVersions.Has "piraeus.linbit.com/v1/LinstorController" }}
{{- $linbitResources := .Capabilities.APIVersions.Has "linstor.linbit.com/v1/LinstorController" }}
{{- if or $piraeusResources $linbitResources }}
{{- fail `

	Refusing to upgrade from v1 deployment!
	=======================================

	Please read the upgrade instructions at:

		https://github.com/piraeusdatastore/piraeus-operator/blob/v2/docs/how-to/upgrade/index.md
` }}
{{- end }}

{{- if not (.Capabilities.APIVersions.Has "piraeus.io/v1/LinstorCluster") }}
It looks like the necessary CRDs for Piraeus Operator are still missing.

To apply them via helm now use:

  helm upgrade {{ .Release.Name }} ./charts/piraeus --reuse-values --set installCRDs=true

Alternatively, you can manage them manually:

  kubectl apply --server-side -k "https://github.com/piraeusdatastore/piraeus-operator//config/crd?ref=v2"

{{- end }}

To get started with Piraeus, simply run:

$ kubectl apply -f - <<EOF
apiVersion: piraeus.io/v1
kind: LinstorCluster
metadata:
  name: linstorcluster
spec: {}
EOF

For next steps, check out our documentation at https://github.com/piraeusdatastore/piraeus-operator/tree/v2/docs
