plugin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricPluginName          = "metric"
	GrafanaPluginName         = "grafana"
	KyvernoPluginName         = "kyverno"
	BackupPluginName          = "backup"
	StorageOperatorPluginName = "storage-operator"
	ClusterStoragePluginName  = "cluster-storage"

	ThanosComponentName        = "thanos"
	PrometheusComponentName    = "prometheus"
	GrafanaComponentName       = "grafana"
	KyvernoComponentName       = "kyverno"
	KyvernoPolicyComponentName = "kyverno-policies"
	VeleroComponentName        = "velero"
	RookOperatorComponentName  = "rook"
	RookClusterComponentName   = "rook-ceph"

	OCIReposiotryPrefix = "oci://"
)

Variables

This section is empty.

Functions

func RendeStorageOperator added in v0.5.0

func RendeStorageOperator(
	fsys fs.FS,
	fleetNN types.NamespacedName,
	fleetRef *metav1.OwnerReference,
	cluster FleetCluster,
	distributedStorageCfg *fleetv1a1.DistributedStorageConfig,
) ([]byte, error)

Build configuration of the rendering rook-operator.

func RenderClusterStorage added in v0.5.0

func RenderClusterStorage(
	fsys fs.FS,
	fleetNN types.NamespacedName,
	fleetRef *metav1.OwnerReference,
	cluster FleetCluster,
	distributedStorageCfg *fleetv1a1.DistributedStorageConfig,
) ([]byte, error)

Build configuration of the rendering rook-ceph-cluster.

func RenderGrafana

func RenderGrafana(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference,
	grafanaCfg *fleetv1a1.GrafanaConfig, datasources []*GrafanaDataSource) ([]byte, error)

func RenderKyverno

func RenderKyverno(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, cluster FleetCluster, kyvernoCfg *fleetv1a1.KyvernoConfig) ([]byte, error)

func RenderKyvernoPolicy

func RenderKyvernoPolicy(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, cluster FleetCluster, kyvernoCfg *fleetv1a1.KyvernoConfig) ([]byte, error)

func RenderPrometheus added in v0.5.0

func RenderPrometheus(fsys fs.FS, fleetName types.NamespacedName, fleetRef *metav1.OwnerReference, cluster FleetCluster, metricCfg *fleetv1a1.MetricConfig) ([]byte, error)

func RenderThanos

func RenderThanos(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, metricCfg *fleetv1a1.MetricConfig) ([]byte, error)

func RenderVelero added in v0.5.0

func RenderVelero(
	fsys fs.FS,
	fleetNN types.NamespacedName,
	fleetRef *metav1.OwnerReference,
	cluster FleetCluster,
	backupCfg *fleetv1a1.BackupConfig,
	veleroSecretName string,
) ([]byte, error)

Types

type ChartConfig

type ChartConfig struct {
	Type            string
	Repo            string
	Name            string
	Version         string
	TargetNamespace string
	Values          map[string]interface{}
}

type FleetCluster

type FleetCluster struct {
	Name       string
	SecretName string
	SecretKey  string
}

type FleetPluginConfig

type FleetPluginConfig struct {
	Name           string
	Component      string
	Fleet          types.NamespacedName
	OwnerReference *metav1.OwnerReference
	Cluster        *FleetCluster
	Chart          ChartConfig
	Values         map[string]interface{}
}

func (FleetPluginConfig) ResourceName

func (plugin FleetPluginConfig) ResourceName() string

func (FleetPluginConfig) StorageNamespace

func (plugin FleetPluginConfig) StorageNamespace() string

type GrafanaDataSource

type GrafanaDataSource struct {
	Name       string `json:"name"`
	SourceType string `json:"type"`
	URL        string `json:"url"`
	Access     string `json:"access"`
	IsDefault  bool   `json:"isDefault"`
}

Jump to

Keyboard shortcuts

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