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
- Variables
- type ConditionReason
- type ConditionType
- type EnvVars
- type Keda
- func (in *Keda) DeepCopy() *Keda
- func (in *Keda) DeepCopyInto(out *Keda)
- func (in *Keda) DeepCopyObject() runtime.Object
- func (k *Keda) IsServedEmpty() bool
- func (k *Keda) UpdateServed(served string)
- func (k *Keda) UpdateStateDeletion(c ConditionType, r ConditionReason, msg string)
- func (k *Keda) UpdateStateDeletionTrue(c ConditionType, r ConditionReason, msg string)
- func (k *Keda) UpdateStateFromErr(c ConditionType, r ConditionReason, err error)
- func (k *Keda) UpdateStateFromWarning(c ConditionType, r ConditionReason, err error)
- func (k *Keda) UpdateStateProcessing(c ConditionType, r ConditionReason, msg string)
- func (k *Keda) UpdateStateReady(c ConditionType, r ConditionReason, msg string)
- type KedaList
- type KedaSpec
- type LogFormat
- type LogTimeEncoding
- type LoggingCfg
- type LoggingMetricsSrvCfg
- type LoggingOperatorCfg
- type MetricsServerLogLevel
- type OperatorLogLevel
- type Resources
- type Status
Constants ¶
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 ¶
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 ¶
func (EnvVars) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVars.
func (EnvVars) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Keda.
func (*Keda) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Keda) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Keda) IsServedEmpty ¶ added in v0.1.0
func (*Keda) UpdateServed ¶ added in v0.1.0
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KedaList.
func (*KedaList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KedaList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KedaSpec.
func (*KedaSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (in *LoggingMetricsSrvCfg) DeepCopy() *LoggingMetricsSrvCfg
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (*Resources) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.