Help us shape the future of Go! Take the 2026 Go Developer Survey

shoot

package
v1.151.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label is a constant for the label of the shoot prometheus instance.
	Label = "shoot"
	// ServiceAccountName is the name of the service account in the shoot cluster.
	ServiceAccountName = "prometheus-" + Label
	// AccessSecretName is the name of the secret containing a token for accessing the shoot cluster.
	AccessSecretName = gardenerutils.SecretNamePrefixShootAccess + ServiceAccountName
)

Variables

This section is empty.

Functions

func CentralPrometheusRules

func CentralPrometheusRules(isWorkerless, wantsAlertmanager bool) []*monitoringv1.PrometheusRule

CentralPrometheusRules returns the central PrometheusRule resources for the shoot prometheus.

func CentralScrapeConfigs

func CentralScrapeConfigs(namespace, clusterCASecretName string, isWorkerless, shootNodeLoggingEnabled bool) []*monitoringv1alpha1.ScrapeConfig

CentralScrapeConfigs returns the central ScrapeConfig resources for the shoot prometheus.

func CentralServiceMonitors

func CentralServiceMonitors(wantsAlertmanager bool) []*monitoringv1.ServiceMonitor

CentralServiceMonitors returns the central ServiceMonitor resources for the shoot prometheus.

func ClusterComponentScrapeConfigSpec added in v1.96.0

func ClusterComponentScrapeConfigSpec(jobName string, sdConfig KubernetesServiceDiscoveryConfig, allowedMetrics ...string) monitoringv1alpha1.ScrapeConfigSpec

ClusterComponentScrapeConfigSpec returns the standard spec for a scrape config for components running in the shoot cluster (in this case, the shoot's kube-apiserver is used as proxy to scrape the metrics).

Types

type KubernetesServiceDiscoveryConfig added in v1.96.0

type KubernetesServiceDiscoveryConfig struct {
	Role monitoringv1alpha1.KubernetesRole

	// when 'Role' is 'pod'
	PodNamePrefix     string
	ContainerName     string
	ContainerPortName string

	// when 'Role' is 'endpoints'
	ServiceName      string
	EndpointPortName string
}

KubernetesServiceDiscoveryConfig is the configuration for the Kubernetes service discovery.

Jump to

Keyboard shortcuts

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