Documentation
¶
Index ¶
- Constants
- func RendPrometheus(fsys fs.FS, fleetName types.NamespacedName, fleetRef *metav1.OwnerReference, ...) ([]byte, error)
- func RenderGrafana(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, ...) ([]byte, error)
- func RenderKyverno(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, ...) ([]byte, error)
- func RenderKyvernoPolicy(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, ...) ([]byte, error)
- func RenderThanos(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, ...) ([]byte, error)
- type ChartConfig
- type FleetCluster
- type FleetPluginConfig
- type GrafanaDataSource
Constants ¶
View Source
const ( MetricPluginName = "metric" GrafanaPluginName = "grafana" KyvernoPluginName = "kyverno" ThanosComponentName = "thanos" PrometheusComponentName = "prometheus" GrafanaComponentName = "grafana" KyvernoComponentName = "kyverno" KyvernoPolicyComponentName = "kyverno-policies" OCIReposiotryPrefix = "oci://" )
Variables ¶
This section is empty.
Functions ¶
func RendPrometheus ¶
func RendPrometheus(fsys fs.FS, fleetName types.NamespacedName, fleetRef *metav1.OwnerReference, cluster FleetCluster, metricCfg *fleetv1a1.MetricConfig) ([]byte, error)
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 RenderThanos ¶
func RenderThanos(fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, metricCfg *fleetv1a1.MetricConfig) ([]byte, error)
Types ¶
type ChartConfig ¶
type FleetCluster ¶
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
Click to show internal directories.
Click to hide internal directories.