Documentation ¶
Index ¶
- type CentralLoggingConfig
- type CentralLoggingConfiguration
- type CentralMonitoringConfig
- type CentralMonitoringConfiguration
- type DependencyWatchdogConfiguration
- type DeployMigrateWaiter
- type DeployWaiter
- type Deployer
- type MigrateWaiter
- type Migrator
- type MonitoringComponent
- type Phase
- type Secret
- type Waiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CentralLoggingConfig ¶ added in v1.13.0
type CentralLoggingConfig struct { // Filters contains the filters for specific component. Filters string // Parser contains the parsers for specific component. Parsers string // PodPrefix is the prefix of the pod name. PodPrefix string // UserExposed defines if the component is exposed to the end-user. UserExposed bool }
CentralLoggingConfig is a structure that contains configuration for the central logging stack.
type CentralLoggingConfiguration ¶ added in v1.13.0
type CentralLoggingConfiguration func() (CentralLoggingConfig, error)
CentralLoggingConfiguration is a function alias for returning configuration for the central logging.
type CentralMonitoringConfig ¶ added in v1.13.0
type CentralMonitoringConfig struct { // ScrapeConfigs are the scrape configurations for central Prometheus. ScrapeConfigs []string // CAdvisorScrapeConfigMetricRelabelConfigs are metric_relabel_configs for the cadvisor scrape config job. CAdvisorScrapeConfigMetricRelabelConfigs []string }
CentralMonitoringConfig is a structure that contains configuration for the central monitoring stack.
type CentralMonitoringConfiguration ¶ added in v1.13.0
type CentralMonitoringConfiguration func() (CentralMonitoringConfig, error)
CentralMonitoringConfiguration is a function alias for returning configuration for the central monitoring.
type DependencyWatchdogConfiguration ¶ added in v1.13.0
DependencyWatchdogConfiguration is a function alias for returning configuration for the dependency-watchdog.
type DeployMigrateWaiter ¶ added in v1.8.0
type DeployMigrateWaiter interface { Deployer Migrator MigrateWaiter Waiter }
DeployMigrateWaiter controls and waits for the life-cycle and control-plane migration operations of a component.
type DeployWaiter ¶
DeployWaiter controls and waits for life-cycle operations of a component.
func OpDestroy ¶
func OpDestroy(dw ...DeployWaiter) DeployWaiter
OpDestroy creates a DeployWaiter which calls Destroy instead of create and WaitCleanup instead of Wait
type Deployer ¶
type Deployer interface { // Deploy a component. Deploy(ctx context.Context) error // Destroy already deployed component. Destroy(ctx context.Context) error }
Deployer is used to control the life-cycle of a component.
func OpDestroyAndWait ¶
func OpDestroyAndWait(dw ...DeployWaiter) Deployer
OpDestroyAndWait creates a Deployer which calls Destroy instead of create and waits for destruction.
func OpWaiter ¶
func OpWaiter(dw ...DeployWaiter) Deployer
OpWaiter creates a Deployer which calls waits for each operation.
type MigrateWaiter ¶ added in v1.8.0
MigrateWaiter waits for the control-plane migration operations of a component to finish.
type Migrator ¶ added in v1.8.0
type Migrator interface { Restore(ctx context.Context, shootState *v1alpha1.ShootState) error Migrate(ctx context.Context) error }
Migrator is used to control the control-plane migration operations of a component.
type MonitoringComponent ¶ added in v1.11.0
type MonitoringComponent interface { // ScrapeConfigs returns the scrape configurations for Prometheus. ScrapeConfigs() ([]string, error) // AlertingRules returns the alerting rules configs for AlertManager (mapping file name to rule config). AlertingRules() (map[string]string, error) }
MonitoringComponent exposes configuration for Prometheus as well as the AlertManager.
type Phase ¶ added in v1.11.0
type Phase int
Phase is the phase of a component.
const ( // PhaseUnknown is in an unknown component phase. PhaseUnknown Phase = iota // PhaseEnabled is when a component was enabled before and it's still active. PhaseEnabled // PhaseDisabled is when a component was disabled before and it's still disabled. PhaseDisabled // PhaseEnabled is when a component was disabled before, but it's being activated. PhaseEnabling // PhaseDisabling is when a component was enabled before, but it's being disabled. PhaseDisabling )
type Secret ¶ added in v1.11.0
type Secret struct { // Name is the name of the Kubernetes secret object. Name string // Checksum is the checksum of the secret's data. Checksum string // Data is the data of the secret. Data map[string][]byte }
Secret is a structure that contains information about a Kubernetes secret which is managed externally.
type Waiter ¶
type Waiter interface { // Wait for deployment to finish and component to report ready. Wait(ctx context.Context) error // WaitCleanup for destruction to finish and component to be fully removed. WaitCleanup(ctx context.Context) error }
Waiter waits for life-cycle operations of a component to finish.