Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the config v1 API group +kubebuilder:object:generate=true +groupName=config.registry.ethos.adobe.com
Index ¶
- Variables
- func Encode(scheme *runtime.Scheme, cfg *ClientConfig) (string, error)
- type AlertRule
- type AlertmanagerWebhookConfig
- type ClientConfig
- type ClientConfigStatus
- type ControllerConfigurationSpec
- type ControllerHealth
- type ControllerManager
- type ControllerManagerConfiguration
- type ControllerMetrics
- type ControllerWebhook
- type ServiceMetadataConfig
- type WatchedGVK
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "config.registry.ethos.adobe.com", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
Types ¶
type AlertRule ¶
type AlertRule struct { AlertName string `json:"alertName"` OnFiring map[string]string `json:"onFiring"` OnResolved map[string]string `json:"onResolved"` }
AlertRule ...
func (*AlertRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertRule.
func (*AlertRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertmanagerWebhookConfig ¶
type AlertmanagerWebhookConfig struct { BindAddress string `json:"bindAddress"` AlertMap []AlertRule `json:"alertMap"` }
AlertmanagerWebhookConfig ...
func (*AlertmanagerWebhookConfig) DeepCopy ¶
func (in *AlertmanagerWebhookConfig) DeepCopy() *AlertmanagerWebhookConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerWebhookConfig.
func (*AlertmanagerWebhookConfig) DeepCopyInto ¶
func (in *AlertmanagerWebhookConfig) DeepCopyInto(out *AlertmanagerWebhookConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClientConfig ¶
type ClientConfig struct { metav1.TypeMeta `json:",inline"` ControllerManager `json:",inline"` Namespace string `json:"namespace,omitempty"` AlertmanagerWebhook AlertmanagerWebhookConfig `json:"alertmanagerWebhook"` ServiceMetadata ServiceMetadataConfig `json:"serviceMetadata"` }
ClientConfig is the Schema for the clientconfigs API
func Load ¶ added in v1.4.2
func Load(scheme *runtime.Scheme, configFile string, defaults *ClientConfig) (ctrl.Options, ClientConfig, error)
Load returns a set of controller options and ClientConfig from the given file, if the config file path is empty it uses the default values.
func (*ClientConfig) DeepCopy ¶
func (in *ClientConfig) DeepCopy() *ClientConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConfig.
func (*ClientConfig) DeepCopyInto ¶
func (in *ClientConfig) DeepCopyInto(out *ClientConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClientConfig) DeepCopyObject ¶
func (in *ClientConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClientConfigStatus ¶
type ClientConfigStatus struct { }
ClientConfigStatus defines the observed state of ClientConfig
func (*ClientConfigStatus) DeepCopy ¶
func (in *ClientConfigStatus) DeepCopy() *ClientConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConfigStatus.
func (*ClientConfigStatus) DeepCopyInto ¶
func (in *ClientConfigStatus) DeepCopyInto(out *ClientConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConfigurationSpec ¶ added in v1.4.2
type ControllerConfigurationSpec struct { // GroupKindConcurrency is a map from a Kind to the number of concurrent reconciliation // allowed for that controller. // // When a controller is registered within this manager using the builder utilities, // users have to specify the type the controller reconciles in the For(...) call. // If the object's kind passed matches one of the keys in this map, the concurrency // for that controller is set to the number specified. // // The key is expected to be consistent in form with GroupKind.String(), // e.g. ReplicaSet in apps group (regardless of version) would be `ReplicaSet.apps`. // // +optional GroupKindConcurrency map[string]int `json:"groupKindConcurrency,omitempty"` // CacheSyncTimeout refers to the time limit set to wait for syncing caches. // Defaults to 2 minutes if not set. // +optional CacheSyncTimeout *time.Duration `json:"cacheSyncTimeout,omitempty"` // RecoverPanic indicates if panics should be recovered. // +optional RecoverPanic *bool `json:"recoverPanic,omitempty"` }
ControllerConfigurationSpec defines the global configuration for controllers registered with the manager.
func (*ControllerConfigurationSpec) DeepCopy ¶ added in v1.4.2
func (in *ControllerConfigurationSpec) DeepCopy() *ControllerConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigurationSpec.
func (*ControllerConfigurationSpec) DeepCopyInto ¶ added in v1.4.2
func (in *ControllerConfigurationSpec) DeepCopyInto(out *ControllerConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerHealth ¶ added in v1.4.2
type ControllerHealth struct { // HealthProbeBindAddress is the TCP address that the controller should bind to // for serving health probes // It can be set to "0" or "" to disable serving the health probe. // +optional HealthProbeBindAddress string `json:"healthProbeBindAddress,omitempty"` // ReadinessEndpointName, defaults to "readyz" // +optional ReadinessEndpointName string `json:"readinessEndpointName,omitempty"` // LivenessEndpointName, defaults to "healthz" // +optional LivenessEndpointName string `json:"livenessEndpointName,omitempty"` }
ControllerHealth defines the health configs.
func (*ControllerHealth) DeepCopy ¶ added in v1.4.2
func (in *ControllerHealth) DeepCopy() *ControllerHealth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerHealth.
func (*ControllerHealth) DeepCopyInto ¶ added in v1.4.2
func (in *ControllerHealth) DeepCopyInto(out *ControllerHealth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerManager ¶ added in v1.4.2
type ControllerManager struct { // SyncPeriod determines the minimum frequency at which watched resources are // reconciled. A lower period will correct entropy more quickly, but reduce // responsiveness to change if there are many watched resources. Change this // value only if you know what you are doing. Defaults to 10 hours if unset. // there will a 10 percent jitter between the SyncPeriod of all controllers // so that all controllers will not send list requests simultaneously. // +optional SyncPeriod *metav1.Duration `json:"syncPeriod,omitempty"` // LeaderElection is the LeaderElection config to be used when configuring // the manager.Manager leader election // +optional LeaderElection *configv1alpha1.LeaderElectionConfiguration `json:"leaderElection,omitempty"` // CacheNamespace if specified restricts the manager's cache to watch objects in // the desired namespace Defaults to all namespaces // // Note: If a namespace is specified, controllers can still Watch for a // cluster-scoped resource (e.g Node). For namespaced resources the cache // will only hold objects from the desired namespace. // +optional CacheNamespace string `json:"cacheNamespace,omitempty"` // GracefulShutdownTimeout is the duration given too runnable to stop before the manager actually returns on stop. // To disable graceful shutdown, set to time.Duration(0) // To use graceful shutdown without timeout, set to a negative duration, e.G. time.Duration(-1) // The graceful shutdown is skipped for safety reasons in case the leader election lease is lost. GracefulShutdownTimeout *metav1.Duration `json:"gracefulShutDown,omitempty"` // Controller contains global configuration options for controllers // registered within this manager. // +optional Controller *ControllerConfigurationSpec `json:"controller,omitempty"` // Metrics contains the controller metrics configuration // +optional Metrics ControllerMetrics `json:"metrics,omitempty"` // Health contains the controller health configuration // +optional Health ControllerHealth `json:"health,omitempty"` // Webhook contains the controllers webhook configuration // +optional Webhook ControllerWebhook `json:"webhook,omitempty"` }
ControllerManager defines the desired state of GenericControllerManagerConfiguration.
func (*ControllerManager) Complete ¶ added in v1.4.2
func (c *ControllerManager) Complete() (ControllerManager, error)
Complete returns the configuration for controller-runtime.
func (*ControllerManager) DeepCopy ¶ added in v1.4.2
func (in *ControllerManager) DeepCopy() *ControllerManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerManager.
func (*ControllerManager) DeepCopyInto ¶ added in v1.4.2
func (in *ControllerManager) DeepCopyInto(out *ControllerManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerManagerConfiguration ¶ added in v1.4.2
type ControllerManagerConfiguration struct { metav1.TypeMeta `json:",inline"` // ControllerManagerConfiguration returns the contfigurations for controllers ControllerManager `json:",inline"` }
ControllerManagerConfiguration is the Schema for the GenericControllerManagerConfigurations API.
func (*ControllerManagerConfiguration) DeepCopy ¶ added in v1.4.2
func (in *ControllerManagerConfiguration) DeepCopy() *ControllerManagerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerManagerConfiguration.
func (*ControllerManagerConfiguration) DeepCopyInto ¶ added in v1.4.2
func (in *ControllerManagerConfiguration) DeepCopyInto(out *ControllerManagerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerMetrics ¶ added in v1.4.2
type ControllerMetrics struct { // BindAddress is the TCP address that the controller should bind to // for serving prometheus metrics. // It can be set to "0" to disable the metrics serving. // +optional BindAddress string `json:"bindAddress,omitempty"` }
ControllerMetrics defines the metrics configs.
func (*ControllerMetrics) DeepCopy ¶ added in v1.4.2
func (in *ControllerMetrics) DeepCopy() *ControllerMetrics
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerMetrics.
func (*ControllerMetrics) DeepCopyInto ¶ added in v1.4.2
func (in *ControllerMetrics) DeepCopyInto(out *ControllerMetrics)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerWebhook ¶ added in v1.4.2
type ControllerWebhook struct { // Port is the port that the webhook server serves at. // It is used to set webhook.Server.Port. // +optional Port *int `json:"port,omitempty"` // Host is the hostname that the webhook server binds to. // It is used to set webhook.Server.Host. // +optional Host string `json:"host,omitempty"` // CertDir is the directory that contains the server key and certificate. // if not set, webhook server would look up the server key and certificate in // {TempDir}/k8s-webhook-server/serving-certs. The server key and certificate // must be named tls.key and tls.crt, respectively. // +optional CertDir string `json:"certDir,omitempty"` }
ControllerWebhook defines the webhook server for the controller.
func (*ControllerWebhook) DeepCopy ¶ added in v1.4.2
func (in *ControllerWebhook) DeepCopy() *ControllerWebhook
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerWebhook.
func (*ControllerWebhook) DeepCopyInto ¶ added in v1.4.2
func (in *ControllerWebhook) DeepCopyInto(out *ControllerWebhook)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceMetadataConfig ¶ added in v1.5.1
type ServiceMetadataConfig struct { WatchedGVKs []WatchedGVK `json:"watchedGVKs"` ServiceIdAnnotation string `json:"serviceIdAnnotation"` }
func (*ServiceMetadataConfig) DeepCopy ¶ added in v1.5.1
func (in *ServiceMetadataConfig) DeepCopy() *ServiceMetadataConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMetadataConfig.
func (*ServiceMetadataConfig) DeepCopyInto ¶ added in v1.5.1
func (in *ServiceMetadataConfig) DeepCopyInto(out *ServiceMetadataConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WatchedGVK ¶ added in v1.5.1
type WatchedGVK struct { Group string `json:"group"` Version string `json:"version"` Kind string `json:"kind"` }
func (*WatchedGVK) DeepCopy ¶ added in v1.5.1
func (in *WatchedGVK) DeepCopy() *WatchedGVK
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatchedGVK.
func (*WatchedGVK) DeepCopyInto ¶ added in v1.5.1
func (in *WatchedGVK) DeepCopyInto(out *WatchedGVK)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.