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: 8 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 AdditionalDataConfiguration added in v1.6.0

type AdditionalDataConfiguration struct {
	Oidc *OIDCConfig `json:"oidc,omitempty" yaml:"oidc"`
}

func NewAdditionalDataConfiguration added in v1.6.0

func NewAdditionalDataConfiguration() *AdditionalDataConfiguration

func (*AdditionalDataConfiguration) SetConfig added in v1.6.0

func (*AdditionalDataConfiguration) Unmarshal added in v1.6.0

func (adc *AdditionalDataConfiguration) Unmarshal(configData string) error

type ApiConfig

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

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

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

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

func (*ApiConfig) SetConfig

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

type AuthenticationConfig

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

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

func (*AuthenticationConfig) SetConfig

type AuthorizationConfig

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

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

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

func (*AuthorizationConfig) SetConfig

type GrpcConfig

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

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

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

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

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

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

func (*GrpcConfig) SetConfig

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

type HealthConfig

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

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

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

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

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

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

func (*HealthConfig) SetConfig

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

type ImageConfig

type ImageConfig struct {
	// +optional
	Image string `json:"image,omitempty" yaml:"image,omitempty"`
	// +optional
	// +kubebuilder:validation:Pattern=(IfNotPresent|Always|Never)
	PullPolicy string `json:"pullPolicy,omitempty" yaml:"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" yaml:"level,omitempty"`

	// +optional
	File string `json:"file,omitempty" yaml:"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" yaml:"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" yaml:"enabled,omitempty"`

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

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

func (*NotificationConfig) SetConfig

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

type OIDCConfig added in v1.6.0

type OIDCConfig struct {
	Issuer                     string `json:"issuer" yaml:"issuer"`
	ClientID                   string `json:"clientID" yaml:"clientID"`
	SkipClientIDCheck          bool   `json:"skipClientIDCheck" yaml:"skipClientIDCheck"`
	SkipExpiryCheck            bool   `json:"skipExpiryCheck" yaml:"skipExpiryCheck"`
	SkipIssuerCheck            bool   `json:"skipIssuerCheck" yaml:"skipIssuerCheck"`
	InsecureSkipSignatureCheck bool   `json:"insecureSkipSignatureCheck" yaml:"insecureSkipSignatureCheck"`
}

func (*OIDCConfig) String added in v1.6.0

func (o *OIDCConfig) String() string

func (*OIDCConfig) Validate added in v1.6.0

func (o *OIDCConfig) Validate() error

type QueueConfig

type QueueConfig struct {

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

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

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

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

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

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

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

	// +optional
	// +kubebuilder:validation:Minimum=0
	DefaultWaitTimeoutSeconds *int32 `json:"defaultWaitTimeoutSeconds,omitempty" yaml:"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" yaml:"limitsCpu,omitempty"`
	// +optional
	LimitsMemory string `json:"limitsMemory,omitempty" yaml:"limitsMemory"`
	// +optional
	LimitsEphemeralStorage string `json:"limitsEphemeralStorage,omitempty" yaml:"limitsEphemeralStorage"`

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

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

func (*ResourceConfig) SetConfig

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

type RestConfig

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

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

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

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

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

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

func (*RestConfig) SetConfig

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

type RoutingConfig

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

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

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

func (*RoutingConfig) SetConfig

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

type StoreConfig

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

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

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

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

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

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

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

	// +optional
	// +kubebuilder:validation:Minimum=0
	PurgeInactiveMinutes *int32 `json:"purgeInactiveMinutes,omitempty" yaml:"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" yaml:"cert,omitempty"`

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

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

func (*TlsConfig) SetConfig

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

type VolumeConfig

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

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

Jump to

Keyboard shortcuts

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