v1alpha1

package
v0.0.0-...-6517453 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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 (
	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")
)

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 Keda

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

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

Keda is the Schema for the kedas API

func (*Keda) ComponentName

func (s *Keda) ComponentName() string

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) GetStatus

func (s *Keda) GetStatus() types.Status

func (*Keda) SetStatus

func (s *Keda) SetStatus(status types.Status)

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       []NameValue `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

type LogTimeEncoding

type LogTimeEncoding string

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

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.

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.

type MetricsServerLogLevel

type MetricsServerLogLevel string

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

type NameValue

type NameValue struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*NameValue) DeepCopy

func (in *NameValue) DeepCopy() *NameValue

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

func (*NameValue) DeepCopyInto

func (in *NameValue) DeepCopyInto(out *NameValue)

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

type OperatorLogLevel

type OperatorLogLevel string

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

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.

Jump to

Keyboard shortcuts

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