config

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterController

type ClusterController struct {
	WorkerCount            int `mapstructure:"workerCount" json:"workerCount,omitempty"`
	RefreshIntervalSeconds int `mapstructure:"refreshIntervalSeconds" json:"refreshIntervalSeconds,omitempty"`
}

type ClusterValidatorWebhook added in v0.2.0

type ClusterValidatorWebhook struct {
	// Enabled is the indicator to determine whether the webhook is enabled.
	Enabled bool `mapstructure:"enabled" json:"enabled,omitempty"`

	// Certificate directory is the directory where the cluster CR validator webhook stores its certificates locally.
	CertificateDirectory string `mapstructure:"certificate-directory" json:"certificateDirectory,omitempty"`

	// Name is the name of the cluster CR validator webhook resource.
	Name string `mapstructure:"name" json:"name,omitempty"`

	// Port is the port the cluster CR validator webhook serves on.
	Port uint `mapstructure:"port" json:"port,omitempty"`
}

ClusterValidatorWebhook describes the configuration options for the cluster CR validator webhook.

type Configuration

type Configuration struct {
	MetricsAddr                string            `mapstructure:"metrics-addr" json:"metricsAddr,omitempty"`
	HealthAddr                 string            `mapstructure:"health-addr" json:"healthAddr,omitempty"`
	LeaderElection             LeaderElection    `mapstructure:"leader-election" json:"leaderElection,omitempty"`
	Logging                    Logging           `mapstructure:"log" json:"logging,omitempty"`
	ClusterController          ClusterController `mapstructure:"clusterController" json:"clusterController,omitempty"`
	SyncController             SyncController    `mapstructure:"syncController" json:"syncController,omitempty"`
	Namespace                  string            `mapstructure:"namespace" json:"namespace,omitempty"`
	ProvisionLocalCluster      string            `mapstructure:"provision-local-cluster" json:"provisionLocalCluster,omitempty"`
	ManageLocalClusterSecret   bool              `mapstructure:"manage-local-cluster-secret" json:"manageLocalClusterSecret,omitempty"`
	ReaderServiceAccountName   string            `mapstructure:"reader-service-account-name" json:"readerServiceAccountName,omitempty"`
	NetworkName                string            `mapstructure:"network-name" json:"networkName,omitempty"`
	APIServerEndpointAddress   string            `mapstructure:"apiserver-endpoint-address" json:"apiServerEndpointAddress,omitempty"`
	CoreResourcesSourceEnabled bool              `mapstructure:"core-resources-source-enabled" json:"coreResourcesSourceEnabled,omitempty"`

	// ClusterValidatorWebhook configures the cluster CR validator webhook for
	// the operator.
	ClusterValidatorWebhook ClusterValidatorWebhook `mapstructure:"cluster-validator-webhook" json:"clusterValidatorWebhook"`
}

type LeaderElection

type LeaderElection struct {
	Enabled   bool   `mapstructure:"enabled" json:"enabled,omitempty"`
	Name      string `mapstructure:"name" json:"name,omitempty"`
	Namespace string `mapstructure:"namespace" json:"namespace,omitempty"`
}

type LogFormat

type LogFormat string
const (
	LogFormatConsole LogFormat = "console"
	LogFormatJSON    LogFormat = "json"
)

type Logging

type Logging struct {
	Verbosity int8      `mapstructure:"verbosity" json:"level,omitempty"`
	Format    LogFormat `mapstructure:"format" json:"format,omitempty"`
}

type SyncController

type SyncController struct {
	WorkerCount int                     `mapstructure:"workerCount" json:"workerCount,omitempty"`
	RateLimit   SyncControllerRateLimit `mapstructure:"rateLimit" json:"rateLimit,omitempty"`
}

type SyncControllerRateLimit

type SyncControllerRateLimit struct {
	MaxKeys          int `mapstructure:"maxKeys" json:"maxKeys,omitempty"`
	MaxRatePerSecond int `mapstructure:"maxRatePerSecond" json:"maxRatePerSecond,omitempty"`
	MaxBurst         int `mapstructure:"maxBurst" json:"maxBurst,omitempty"`
}

Jump to

Keyboard shortcuts

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