Path: blob/main/pkg/operator/apis/monitoring/v1alpha1/deployment.go
4096 views
package v1alpha112import (3"github.com/grafana/agent/pkg/operator/assets"4promv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"5)67// +genclient89// Deployment is a set of discovered resources relative to a GrafanaAgent. The10// tree of resources contained in a Deployment form the resource hierarchy used11// for reconciling a GrafanaAgent.12type Deployment struct {13// Root resource in the deployment.14Agent *GrafanaAgent15// Metrics resources discovered by Agent.16Metrics []MetricsDeployment17// Logs resources discovered by Agent.18Logs []LogsDeployment19// Integrations resources discovered by Agent.20Integrations []IntegrationsDeployment21// The full list of Secrets referenced by resources in the Deployment.22Secrets assets.SecretStore23}2425// +genclient2627// MetricsDeployment is a set of discovered resources relative to a28// MetricsInstance.29type MetricsDeployment struct {30Instance *MetricsInstance31ServiceMonitors []*promv1.ServiceMonitor32PodMonitors []*promv1.PodMonitor33Probes []*promv1.Probe34}3536// +genclient3738// LogsDeployment is a set of discovered resources relative to a LogsInstance.39type LogsDeployment struct {40Instance *LogsInstance41PodLogs []*PodLogs42}4344// +genclient4546// IntegrationsDeployment is a set of discovered resources relative to an47// IntegrationsDeployment.48type IntegrationsDeployment struct {49Instance *Integration5051// NOTE(rfratto): Integration doesn't have any children resources, but we52// define a *Deployment type for consistency with Metrics and Logs.53}545556