operator

package
v0.0.0-...-abaeddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package operator installs the Kubernetes operators jig's data services need: each a Helm chart or a release manifest, pinned per jig release. An operator whose CRD is already in the cluster is taken as running and left alone.

Index

Constants

This section is empty.

Variables

View Source
var (
	// CertManager issues the RabbitMQ operators' webhook certificates.
	CertManager = Operator{
		Name: "cert-manager", Namespace: "cert-manager",
		Chart: &cluster.HelmRelease{
			Repo: "https://charts.jetstack.io", Chart: "cert-manager", Version: "v1.21.3",
			Release: "cert-manager", Namespace: "cert-manager", CreateNamespace: true,
			Values: map[string]any{"crds.enabled": true},
		},
		CRD:         "certificates.cert-manager.io",
		Deployments: []string{"cert-manager", "cert-manager-webhook", "cert-manager-cainjector"},
	}

	// CloudNativePG runs PostgreSQL clusters.
	CloudNativePG = Operator{
		Name: "cloudnative-pg", Namespace: "cnpg-system",
		Chart: &cluster.HelmRelease{
			Repo: "https://cloudnative-pg.github.io/charts", Chart: "cloudnative-pg", Version: "0.29.1",
			Release: "cloudnative-pg", Namespace: "cnpg-system", CreateNamespace: true,
		},
		CRD:         "clusters.postgresql.cnpg.io",
		Deployments: []string{"cloudnative-pg"},
	}

	// MariadbCRDs are mariadb-operator's CRDs, a chart of their own.
	MariadbCRDs = Operator{
		Name: "mariadb-operator-crds", Namespace: "mariadb-system",
		Chart: &cluster.HelmRelease{
			Repo: "https://helm.mariadb.com/mariadb-operator", Chart: "mariadb-operator-crds", Version: "26.10.2",
			Release: "mariadb-operator-crds", Namespace: "mariadb-system", CreateNamespace: true,
		},
		CRD: "mariadbs.k8s.mariadb.com",
	}

	// MariadbOperator runs MariaDB servers; its own CRDs are off (MariadbCRDs).
	MariadbOperator = Operator{
		Name: "mariadb-operator", Namespace: "mariadb-system",
		Chart: &cluster.HelmRelease{
			Repo: "https://helm.mariadb.com/mariadb-operator", Chart: "mariadb-operator", Version: "26.10.2",
			Release: "mariadb-operator", Namespace: "mariadb-system", CreateNamespace: true,
			Values: map[string]any{"crds.enabled": false},
		},
		Deployments: []string{"mariadb-operator", "mariadb-operator-webhook"},
	}

	// RabbitmqCluster runs RabbitMQ clusters (a release manifest: no chart).
	RabbitmqCluster = Operator{
		Name: "rabbitmq-cluster-operator", Namespace: "rabbitmq-system",
		Manifest:    "https://github.com/rabbitmq/cluster-operator/releases/download/v2.23.1/cluster-operator.yml",
		CRD:         "rabbitmqclusters.rabbitmq.com",
		Deployments: []string{"rabbitmq-cluster-operator"},
	}

	// RabbitmqTopology manages vhosts, users and permissions.
	RabbitmqTopology = Operator{
		Name: "rabbitmq-topology-operator", Namespace: "rabbitmq-system",
		Manifest:    "https://github.com/rabbitmq/messaging-topology-operator/releases/download/v1.20.4/messaging-topology-operator-with-certmanager.yaml",
		CRD:         "users.rabbitmq.com",
		Deployments: []string{"messaging-topology-operator"},
	}

	// Redis runs standalone Redis instances (OT Redis Operator).
	Redis = Operator{
		Name: "redis-operator", Namespace: "redis-system",
		Chart: &cluster.HelmRelease{
			Repo: "https://ot-container-kit.github.io/helm-charts", Chart: "redis-operator", Version: "0.27.0",
			Release: "redis-operator", Namespace: "redis-system", CreateNamespace: true,
		},
		CRD:         "redis.redis.redis.opstreelabs.in",
		Deployments: []string{"redis-operator"},
	}

	// Strimzi runs Kafka clusters and topics, watching every namespace.
	Strimzi = Operator{
		Name: "strimzi", Namespace: "strimzi-system",
		Chart: &cluster.HelmRelease{
			Repo: "https://strimzi.io/charts/", Chart: "strimzi-kafka-operator", Version: "1.3.1",
			Release: "strimzi", Namespace: "strimzi-system", CreateNamespace: true,
			Values: map[string]any{"watchAnyNamespace": true},
		},
		CRD:         "kafkas.kafka.strimzi.io",
		Deployments: []string{"strimzi-cluster-operator"},
	}
)

The operators, pinned. Each runs in a namespace of its own, so one a run installed is easy to find and removed with it.

Functions

This section is empty.

Types

type Operator

type Operator struct {
	Name        string
	Namespace   string
	Chart       *cluster.HelmRelease
	Manifest    string
	CRD         string
	Deployments []string
}

Operator is one operator: a Helm chart (Chart) or a release manifest (Manifest), the CRD that shows it is installed, and its Deployments to wait for, in Namespace.

type Operators

type Operators []Operator

Operators are operators, in install order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL