v1alpha1

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.kyma-project.io

Index

Constants

View Source
const (
	StateReady      = "Ready"
	StateError      = "Error"
	StateWarning    = "Warning"
	StateProcessing = "Processing"
	StateDeleting   = "Deleting"

	ServedTrue  = "True"
	ServedFalse = "False"

	ConditionReasonDeploymentUpdateErr = ConditionReason("KedaDeploymentUpdateErr")
	ConditionReasonVerificationErr     = ConditionReason("VerificationErr")
	ConditionReasonVerified            = ConditionReason("Verified")
	ConditionReasonApplyObjError       = ConditionReason("ApplyObjError")
	ConditionReasonVerification        = ConditionReason("Verification")
	ConditionReasonInitialized         = ConditionReason("Initialized")
	ConditionReasonKedaDuplicated      = ConditionReason("KedaDuplicated")
	ConditionReasonDeletion            = ConditionReason("Deletion")
	ConditionReasonDeletionErr         = ConditionReason("DeletionErr")
	ConditionReasonDeleted             = ConditionReason("Deleted")

	ConditionTypeInstalled = ConditionType("Installed")
	ConditionTypeDeleted   = ConditionType("Deleted")

	OperatorLogLevelDebug = OperatorLogLevel("debug")
	OperatorLogLevelInfo  = OperatorLogLevel("info")
	OperatorLogLevelError = OperatorLogLevel("error")

	LogFormatJSON    = LogFormat("json")
	LogFormatConsole = LogFormat("console")

	TimeEncodingEpoch       = LogTimeEncoding("epoch")
	TimeEncodingMillis      = LogTimeEncoding("millis")
	TimeEncodingNano        = LogTimeEncoding("nano")
	TimeEncodingISO8601     = LogTimeEncoding("iso8601")
	TimeEncodingRFC3339     = LogTimeEncoding("rfc3339")
	TimeEncodingRFC3339Nano = LogTimeEncoding("rfc3339nano")

	MetricsServerLogLevelInfo  = MetricsServerLogLevel("0")
	MetricsServerLogLevelDebug = MetricsServerLogLevel("4")

	Finalizer = "keda-manager.kyma-project.io/deletion-hook"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "operator.kyma-project.io", Version: "v1alpha1"}

	// 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

This section is empty.

Types

type ConditionReason

type ConditionReason string

type ConditionType

type ConditionType string

type EnvVars

type EnvVars []corev1.EnvVar

func (EnvVars) DeepCopy

func (in EnvVars) DeepCopy() EnvVars

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVars.

func (EnvVars) DeepCopyInto

func (in EnvVars) DeepCopyInto(out *EnvVars)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*EnvVars) Sanitize

func (v *EnvVars) Sanitize()

type Keda

type Keda struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KedaSpec `json:"spec,omitempty"`
	Status Status   `json:"status,omitempty"`
}

Keda is the Schema for the kedas API

func (*Keda) DeepCopy

func (in *Keda) DeepCopy() *Keda

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Keda.

func (*Keda) DeepCopyInto

func (in *Keda) DeepCopyInto(out *Keda)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Keda) DeepCopyObject

func (in *Keda) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Keda) IsServedEmpty added in v0.1.0

func (k *Keda) IsServedEmpty() bool

func (*Keda) UpdateServed added in v0.1.0

func (k *Keda) UpdateServed(served string)

func (*Keda) UpdateStateDeletion

func (k *Keda) UpdateStateDeletion(c ConditionType, r ConditionReason, msg string)

func (*Keda) UpdateStateDeletionTrue added in v0.1.1

func (k *Keda) UpdateStateDeletionTrue(c ConditionType, r ConditionReason, msg string)

func (*Keda) UpdateStateFromErr

func (k *Keda) UpdateStateFromErr(c ConditionType, r ConditionReason, err error)

func (*Keda) UpdateStateFromWarning added in v0.3.1

func (k *Keda) UpdateStateFromWarning(c ConditionType, r ConditionReason, err error)

func (*Keda) UpdateStateProcessing

func (k *Keda) UpdateStateProcessing(c ConditionType, r ConditionReason, msg string)

func (*Keda) UpdateStateReady

func (k *Keda) UpdateStateReady(c ConditionType, r ConditionReason, msg string)

type KedaList

type KedaList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Keda `json:"items"`
}

KedaList contains a list of Keda

func (*KedaList) DeepCopy

func (in *KedaList) DeepCopy() *KedaList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KedaList.

func (*KedaList) DeepCopyInto

func (in *KedaList) DeepCopyInto(out *KedaList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KedaList) DeepCopyObject

func (in *KedaList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KedaSpec

type KedaSpec struct {
	Logging   *LoggingCfg `json:"logging,omitempty"`
	Resources *Resources  `json:"resources,omitempty"`
	Env       EnvVars     `json:"env,omitempty"`
}

KedaSpec defines the desired state of Keda

func (*KedaSpec) DeepCopy

func (in *KedaSpec) DeepCopy() *KedaSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KedaSpec.

func (*KedaSpec) DeepCopyInto

func (in *KedaSpec) DeepCopyInto(out *KedaSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LogFormat

type LogFormat string

+kubebuilder:validation:Enum=json;console

func (*LogFormat) Match

func (f *LogFormat) Match(s *string) bool

func (*LogFormat) String

func (f *LogFormat) String() string

type LogTimeEncoding

type LogTimeEncoding string

+kubebuilder:validation:Enum=epoch;millis;nano;iso8601;rfc3339;rfc3339nano

func (*LogTimeEncoding) Match

func (e *LogTimeEncoding) Match(s *string) bool

func (*LogTimeEncoding) String

func (e *LogTimeEncoding) String() string

type LoggingCfg

type LoggingCfg struct {
	Operator      *LoggingOperatorCfg   `json:"operator,omitempty"`
	MetricsServer *LoggingMetricsSrvCfg `json:"metricServer,omitempty"`
}

func (*LoggingCfg) DeepCopy

func (in *LoggingCfg) DeepCopy() *LoggingCfg

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingCfg.

func (*LoggingCfg) DeepCopyInto

func (in *LoggingCfg) DeepCopyInto(out *LoggingCfg)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoggingMetricsSrvCfg

type LoggingMetricsSrvCfg struct {
	Level *MetricsServerLogLevel `json:"level,omitempty"`
}

func (*LoggingMetricsSrvCfg) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingMetricsSrvCfg.

func (*LoggingMetricsSrvCfg) DeepCopyInto

func (in *LoggingMetricsSrvCfg) DeepCopyInto(out *LoggingMetricsSrvCfg)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LoggingMetricsSrvCfg) UpdateArg

func (o *LoggingMetricsSrvCfg) UpdateArg(arg *string)

type LoggingOperatorCfg

type LoggingOperatorCfg struct {
	Level        *OperatorLogLevel `json:"level,omitempty"`
	Format       *LogFormat        `json:"format,omitempty"`
	TimeEncoding *LogTimeEncoding  `json:"timeEncoding,omitempty"`
}

func (*LoggingOperatorCfg) DeepCopy

func (in *LoggingOperatorCfg) DeepCopy() *LoggingOperatorCfg

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingOperatorCfg.

func (*LoggingOperatorCfg) DeepCopyInto

func (in *LoggingOperatorCfg) DeepCopyInto(out *LoggingOperatorCfg)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LoggingOperatorCfg) UpdateArg

func (o *LoggingOperatorCfg) UpdateArg(arg *string)

type MetricsServerLogLevel

type MetricsServerLogLevel string

+kubebuilder:validation:Enum="0";"4"

func (*MetricsServerLogLevel) Match

func (l *MetricsServerLogLevel) Match(s *string) bool

func (*MetricsServerLogLevel) String

func (l *MetricsServerLogLevel) String() string

type OperatorLogLevel

type OperatorLogLevel string

+kubebuilder:validation:Enum=debug;info;error

func (*OperatorLogLevel) Match

func (l *OperatorLogLevel) Match(s *string) bool

func (*OperatorLogLevel) String

func (l *OperatorLogLevel) String() string

type Resources

type Resources struct {
	Operator      *corev1.ResourceRequirements `json:"operator,omitempty"`
	MetricsServer *corev1.ResourceRequirements `json:"metricServer,omitempty"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Status

type Status struct {
	State      string             `json:"state"`
	Served     string             `json:"served"`
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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