config

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualConfigMaps

func EqualConfigMaps(a, b *apiv1.ConfigMap) bool

func EqualSecrets

func EqualSecrets(a, b *apiv1.Secret) bool

Types

type ApiConfig

type ApiConfig struct {
	// +optional
	Disabled bool `json:"disabled,omitempty"`

	// +optional
	Port int32 `json:"port,omitempty"`

	// +optional
	// +kubebuilder:validation:Pattern=(ClusterIP|NodePort|LoadBalancer)
	Expose string `json:"expose,omitempty"`

	// +optional
	NodePort int32 `json:"nodePort,omitempty"`
}

func (*ApiConfig) SetConfig

func (c *ApiConfig) SetConfig(config *deployment.Config) *ApiConfig

type AuthenticationConfig

type AuthenticationConfig struct {
	// +optional
	Key string `json:"key,omitempty"`

	// +optional
	Type string `json:"type,omitempty"`
}

func (*AuthenticationConfig) SetConfig

type AuthorizationConfig

type AuthorizationConfig struct {
	// +optional
	Policy string `json:"policy,omitempty"`

	// +optional
	Url string `json:"url,omitempty"`

	// +optional
	AutoReload int32 `json:"autoReload,omitempty"`
}

func (*AuthorizationConfig) SetConfig

type GrpcConfig

type GrpcConfig struct {
	// +optional
	Disabled bool `json:"disabled,omitempty"`

	// +optional
	Port int32 `json:"port,omitempty"`

	// +optional
	// +kubebuilder:validation:Pattern=(ClusterIP|NodePort|LoadBalancer)
	Expose string `json:"expose,omitempty"`

	// +optional
	NodePort int32 `json:"nodePort,omitempty"`

	// +optional
	BufferSize int32 `json:"bufferSize,omitempty"`

	// +optional
	BodyLimit int32 `json:"bodyLimit,omitempty"`
}

func (*GrpcConfig) SetConfig

func (c *GrpcConfig) SetConfig(config *deployment.Config) *GrpcConfig

type HealthConfig

type HealthConfig struct {
	// +optional
	Enabled bool `json:"enabled,omitempty"`

	// +optional
	InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"`

	// +optional
	PeriodSeconds int32 `json:"periodSeconds,omitempty"`

	// +optional
	TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"`

	// +optional
	SuccessThreshold int32 `json:"successThreshold,omitempty"`

	// +optional
	FailureThreshold int32 `json:"failureThreshold,omitempty"`
}

func (*HealthConfig) SetConfig

func (c *HealthConfig) SetConfig(config *deployment.Config) *HealthConfig

type ImageConfig

type ImageConfig struct {
	// +optional
	Image string `json:"image,omitempty"`
	// +optional
	// +kubebuilder:validation:Pattern=(IfNotPresent|Always|Never)
	PullPolicy string `json:"pullPolicy,omitempty"`
}

func (*ImageConfig) GetImage

func (c *ImageConfig) GetImage() string

func (*ImageConfig) SetConfig

func (c *ImageConfig) SetConfig(config *deployment.Config) *ImageConfig

type LogConfig

type LogConfig struct {
	// +optional
	Level *int32 `json:"level,omitempty"`

	// +optional
	File string `json:"file,omitempty"`
}

func (*LogConfig) DeepCopy

func (c *LogConfig) DeepCopy() *LogConfig

func (*LogConfig) SetConfig

func (c *LogConfig) SetConfig(config *deployment.Config) *LogConfig

type NodeSelectorConfig

type NodeSelectorConfig struct {
	// +optional
	Keys map[string]string `json:"keys,omitempty"`
}

func (*NodeSelectorConfig) DeepCopy

func (c *NodeSelectorConfig) DeepCopy() *NodeSelectorConfig

func (*NodeSelectorConfig) SetConfig

func (c *NodeSelectorConfig) SetConfig(config *deployment.Config) *NodeSelectorConfig

type NotificationConfig

type NotificationConfig struct {
	// +optional
	Enabled bool `json:"enabled,omitempty"`

	// +optional
	Prefix string `json:"prefix,omitempty"`

	// +optional
	Log bool `json:"log,omitempty"`
}

func (*NotificationConfig) SetConfig

func (c *NotificationConfig) SetConfig(config *deployment.Config) *NotificationConfig

type QueueConfig

type QueueConfig struct {

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxReceiveMessagesRequest *int32 `json:"maxReceiveMessagesRequest,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxWaitTimeoutSeconds *int32 `json:"maxWaitTimeoutSeconds,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxExpirationSeconds *int32 `json:"maxExpirationSeconds,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxDelaySeconds *int32 `json:"maxDelaySeconds,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxReQueues *int32 `json:"maxReQueues,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxVisibilitySeconds *int32 `json:"maxVisibilitySeconds,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	DefaultVisibilitySeconds *int32 `json:"defaultVisibilitySeconds,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	DefaultWaitTimeoutSeconds *int32 `json:"defaultWaitTimeoutSeconds,omitempty"`
}

func (*QueueConfig) DeepCopy

func (c *QueueConfig) DeepCopy() *QueueConfig

func (*QueueConfig) SetConfig

func (c *QueueConfig) SetConfig(config *deployment.Config) *QueueConfig

type ResourceConfig

type ResourceConfig struct {
	// +optional
	LimitsCpu string `json:"limitsCpu,omitempty"`
	// +optional
	LimitsMemory string `json:"limitsMemory,omitempty"`
	// +optional
	LimitsEphemeralStorage string `json:"limitsEphemeralStorage,omitempty"`

	// +optional
	RequestsCpu string `json:"requestsCpu,omitempty"`
	// +optional
	RequestsMemory string `json:"requestsMemory,omitempty"`

	// +optional
	RequestsEphemeralStorage string `json:"requestsEphemeralStorage,omitempty"`
}

func (*ResourceConfig) SetConfig

func (o *ResourceConfig) SetConfig(config *deployment.Config) *ResourceConfig

type RestConfig

type RestConfig struct {
	// +optional
	Disabled bool `json:"disabled,omitempty"`

	// +optional
	Port int32 `json:"port,omitempty"`

	// +optional
	// +kubebuilder:validation:Pattern=(ClusterIP|NodePort|LoadBalancer)
	Expose string `json:"expose,omitempty"`

	// +optional
	BufferSize int32 `json:"bufferSize,omitempty"`

	// +optional
	BodyLimit int32 `json:"bodyLimit,omitempty"`

	// +optional
	NodePort int32 `json:"nodePort,omitempty"`
}

func (*RestConfig) SetConfig

func (c *RestConfig) SetConfig(config *deployment.Config) *RestConfig

type RoutingConfig

type RoutingConfig struct {
	// +optional
	Data string `json:"data,omitempty"`

	// +optional
	Url string `json:"url,omitempty"`

	// +optional
	AutoReload int32 `json:"autoReload,omitempty"`
}

func (*RoutingConfig) SetConfig

func (c *RoutingConfig) SetConfig(config *deployment.Config) *RoutingConfig

type StoreConfig

type StoreConfig struct {
	// +optional
	Clean bool `json:"clean,omitempty"`

	// +optional
	Path string `json:"path,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxChannels *int32 `json:"maxChannels,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxSubscribers *int32 `json:"maxSubscribers,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxMessages *int32 `json:"maxMessages,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MaxChannelSize *int32 `json:"maxChannelSize,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	MessagesRetentionMinutes *int32 `json:"messagesRetentionMinutes,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	PurgeInactiveMinutes *int32 `json:"purgeInactiveMinutes,omitempty"`
}

func (*StoreConfig) DeepCopy

func (c *StoreConfig) DeepCopy() *StoreConfig

func (*StoreConfig) SetConfig

func (c *StoreConfig) SetConfig(config *deployment.Config) *StoreConfig

type TlsConfig

type TlsConfig struct {
	// +optional
	Cert string `json:"cert,omitempty"`

	// +optional
	Key string `json:"key,omitempty"`

	// +optional
	Ca string `json:"ca,omitempty"`
}

func (*TlsConfig) SetConfig

func (o *TlsConfig) SetConfig(config *deployment.Config) *TlsConfig

type VolumeConfig

type VolumeConfig struct {
	// +optional
	Size string `json:"size,omitempty"`

	// +optional
	StorageClass string `json:"storageClass,omitempty"`
}

Jump to

Keyboard shortcuts

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