v1alpha1

package
v0.0.0-...-8cb33dd Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the keda v1alpha1 API group +kubebuilder:object:generate=true +groupName=keda.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "keda.sh", 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 AuditConfig

type AuditConfig struct {
	// All requests coming to api server will be logged to this persistent volume
	// claim. Leaving this empty means logging to stdout. (if Policy is not empty)
	// +optional
	LogOutputVolumeClaim string `json:"logOutputVolumeClaim,omitempty" protobuf:"bytes,1,opt,name=logOutputVolumeClaim"`

	// Policy which describes audit configuration. (Required for audit logging)
	// ex: https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/#audit-policy
	// +optional
	Policy AuditPolicy `json:"policy,omitempty" protobuf:"bytes,2,opt,name=policy"`

	// Logging format of saved audits. Known formats are "legacy" & "json".
	// default value: json
	// +optional
	LogFormat string `json:"logFormat,omitempty" protobuf:"bytes,3,opt,name=logFormat"`

	// +optional
	AuditLifetime `json:"lifetime,omitempty" protobuf:"bytes,4,opt,name=lifetime"`
}

AuditConfig defines basic audit logging arguments user can define. If more advanced flags are required, use 'Args' field to add them manually.

func (*AuditConfig) DeepCopy

func (in *AuditConfig) DeepCopy() *AuditConfig

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

func (*AuditConfig) DeepCopyInto

func (in *AuditConfig) DeepCopyInto(out *AuditConfig)

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

type AuditLifetime

type AuditLifetime struct {
	// The maximum number of days to retain old audit log files based on the timestamp encoded in their filename.
	// + optional
	MaxAge string `json:"maxAge,omitempty"  protobuf:"bytes,1,opt,name=maxAge"`

	// The maximum number of old audit log files to retain. Setting a value of 0 will mean there's no restriction.
	// +optional
	MaxBackup string `json:"maxBackup,omitempty"  protobuf:"bytes,2,opt,name=maxBackup"`

	// The maximum size in megabytes of the audit log file before it gets rotated.
	// +optional
	MaxSize string `json:"maxSize,omitempty"  protobuf:"bytes,3,opt,name=maxSize"`
}

AuditLifetime defines size and life-span of audit files.

func (*AuditLifetime) DeepCopy

func (in *AuditLifetime) DeepCopy() *AuditLifetime

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

func (*AuditLifetime) DeepCopyInto

func (in *AuditLifetime) DeepCopyInto(out *AuditLifetime)

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

type AuditPolicy

type AuditPolicy struct {
	// Rules specify the audit Level a request should be recorded at.
	// A request may match multiple rules, in which case the FIRST matching rule is used.
	// The default audit level is None, but can be overridden by a catch-all rule at the end of the list.
	// PolicyRules are strictly ordered.
	// +optional
	Rules []auditv1.PolicyRule `json:"rules" protobuf:"bytes,1,rep,name=rules"`

	// OmitStages is a list of stages for which no events are created. Note that this can also
	// be specified per rule in which case the union of both are omitted.
	// +optional
	OmitStages []auditv1.Stage `json:"omitStages,omitempty" protobuf:"bytes,2,rep,name=omitStages"`

	// OmitManagedFields indicates whether to omit the managed fields of the request
	// and response bodies from being written to the API audit log.
	// This is used as a global default - a value of 'true' will omit the managed fileds,
	// otherwise the managed fields will be included in the API audit log.
	// Note that this can also be specified per rule in which case the value specified
	// in a rule will override the global default.
	// +optional
	OmitManagedFields bool `json:"omitManagedFields,omitempty" protobuf:"varint,3,opt,name=omitManagedFields"`
}

AuditPolicy is a wrapper for auditv1.Policy structure used in AuditConfig as higher level structure exposed to user without metadata which is filled automatically.

func (*AuditPolicy) DeepCopy

func (in *AuditPolicy) DeepCopy() *AuditPolicy

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

func (*AuditPolicy) DeepCopyInto

func (in *AuditPolicy) DeepCopyInto(out *AuditPolicy)

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

type GenericDeploymentSpec

type GenericDeploymentSpec struct {

	// Annotations applied to the Deployment
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
	// +optional
	DeploymentAnnotations map[string]string `json:"deploymentAnnotations,omitempty"`

	// Labels applied to the Deployment
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
	// +optional
	DeploymentLabels map[string]string `json:"deploymentLabels,omitempty"`

	// Annotations applied to the Pod
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
	// +optional
	PodAnnotations map[string]string `json:"podAnnotations,omitempty"`

	// Labels applied to the Pod
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
	// +optional
	PodLabels map[string]string `json:"podLabels,omitempty"`

	// Node selector for pod scheduling
	// https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
	// +optional
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// Tolerations for pod scheduling
	// https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
	// +optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	// Affinity for pod scheduling
	// https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/
	// +optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`

	// Pod priority
	// https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
	// +optional
	PriorityClassName string `json:"priorityClassName,omitempty"`

	// Manage resource requests & limits
	// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*GenericDeploymentSpec) DeepCopy

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

func (*GenericDeploymentSpec) DeepCopyInto

func (in *GenericDeploymentSpec) DeepCopyInto(out *GenericDeploymentSpec)

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

type KedaAdmissionWebhooksSpec

type KedaAdmissionWebhooksSpec struct {

	// Logging level for Admission Webhooks
	// allowed values: 'debug', 'info', 'error', or an integer value greater than 0, specified as string
	// default value: info
	// +optional
	LogLevel string `json:"logLevel,omitempty"`

	// Logging format for Admission Webhooks
	// allowed values are 'json' and 'console'
	// default value: console
	// +optional
	LogEncoder string `json:"logEncoder,omitempty"`

	// Logging time encoding for Admission Webhooks
	// allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'
	// default value: rfc3339
	// +optional
	LogTimeEncoding string `json:"logTimeEncoding,omitempty"`

	GenericDeploymentSpec `json:",inline"`

	// Any user-defined arguments with possibility to override any existing or
	// previously defined arguments. Allowed formats are '--argument=value',
	// 'argument=value' or just 'value'. Ex.: '--v=0' or 'ENV_ARGUMENT'
	// +optional
	Args []string `json:"args,omitempty"`
}

func (*KedaAdmissionWebhooksSpec) DeepCopy

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

func (*KedaAdmissionWebhooksSpec) DeepCopyInto

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

type KedaController

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

	Spec   KedaControllerSpec   `json:"spec,omitempty"`
	Status KedaControllerStatus `json:"status,omitempty"`
}

KedaController is the Schema for the kedacontrollers API

func (*KedaController) DeepCopy

func (in *KedaController) DeepCopy() *KedaController

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

func (*KedaController) DeepCopyInto

func (in *KedaController) DeepCopyInto(out *KedaController)

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

func (*KedaController) DeepCopyObject

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

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

type KedaControllerList

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

KedaControllerList contains a list of KedaController

func (*KedaControllerList) DeepCopy

func (in *KedaControllerList) DeepCopy() *KedaControllerList

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

func (*KedaControllerList) DeepCopyInto

func (in *KedaControllerList) DeepCopyInto(out *KedaControllerList)

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

func (*KedaControllerList) DeepCopyObject

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

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

type KedaControllerPhase

type KedaControllerPhase string
const (
	PhaseNone             KedaControllerPhase = ""
	PhaseInstallSucceeded KedaControllerPhase = "Installation Succeeded"
	PhaseIgnored          KedaControllerPhase = "Installation Ignored"
	PhaseFailed           KedaControllerPhase = "Installation Failed"
)

type KedaControllerSpec

type KedaControllerSpec struct {

	// +optional
	WatchNamespace string `json:"watchNamespace,omitempty"`

	// +optional
	Operator KedaOperatorSpec `json:"operator"`

	// +optional
	MetricsServer KedaMetricsServerSpec `json:"metricsServer"`

	// +optional
	AdmissionWebhooks KedaAdmissionWebhooksSpec `json:"admissionWebhooks"`

	// +optional
	ServiceAccount KedaServiceAccountSpec `json:"serviceAccount"`
}

KedaControllerSpec defines the desired state of KedaController +kubebuilder:subresource:status

func (*KedaControllerSpec) DeepCopy

func (in *KedaControllerSpec) DeepCopy() *KedaControllerSpec

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

func (*KedaControllerSpec) DeepCopyInto

func (in *KedaControllerSpec) DeepCopyInto(out *KedaControllerSpec)

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

type KedaControllerStatus

type KedaControllerStatus struct {
	// +optional
	Phase KedaControllerPhase `json:"phase,omitempty"`
	// +optional
	Reason string `json:"reason,omitempty"`
	// +optional
	Version string `json:"version,omitempty"`
	// +optional
	ConfigMapDataSum string `json:"configmapdatasum,omitempty"`
	// +optional
	SecretDataSum string `json:"secretdatasum,omitempty"`
}

KedaControllerStatus defines the observed state of KedaController

func (*KedaControllerStatus) DeepCopy

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

func (*KedaControllerStatus) DeepCopyInto

func (in *KedaControllerStatus) DeepCopyInto(out *KedaControllerStatus)

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

func (*KedaControllerStatus) MarkIgnored

func (kcs *KedaControllerStatus) MarkIgnored(r string)

func (*KedaControllerStatus) MarkInstallFailed

func (kcs *KedaControllerStatus) MarkInstallFailed(r string)

func (*KedaControllerStatus) MarkInstallSucceeded

func (kcs *KedaControllerStatus) MarkInstallSucceeded(r string)

func (*KedaControllerStatus) SetPhase

func (kcs *KedaControllerStatus) SetPhase(p KedaControllerPhase)

func (*KedaControllerStatus) SetReason

func (kcs *KedaControllerStatus) SetReason(r string)

type KedaMetricsServerSpec

type KedaMetricsServerSpec struct {

	// Logging level for Metrics Server
	// allowed values: "0" for info, "4" for debug, or an integer value greater than 0, specified as string
	// default value: "0"
	// +optional
	LogLevel string `json:"logLevel,omitempty"`

	GenericDeploymentSpec `json:",inline"`

	// Audit config for auditing log files. If a user wants to config other audit
	// flags, he can do so manually with Args field.
	// +optional
	AuditConfig `json:"auditConfig,omitempty"`

	// Any user-defined arguments with possibility to override any existing or
	// previously defined arguments. Allowed formats are '--argument=value',
	// 'argument=value' or just 'value'. Ex.: '--v=0' or 'ENV_ARGUMENT'
	// +optional
	Args []string `json:"args,omitempty"`
}

func (*KedaMetricsServerSpec) DeepCopy

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

func (*KedaMetricsServerSpec) DeepCopyInto

func (in *KedaMetricsServerSpec) DeepCopyInto(out *KedaMetricsServerSpec)

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

type KedaOperatorSpec

type KedaOperatorSpec struct {

	// Logging level for KEDA Controller
	// allowed values: 'debug', 'info', 'error', or an integer value greater than 0, specified as string
	// default value: info
	// +optional
	LogLevel string `json:"logLevel,omitempty"`

	// Logging format for KEDA Controller
	// allowed values are 'json' and 'console'
	// default value: console
	// +optional
	LogEncoder string `json:"logEncoder,omitempty"`

	// Logging time encoding for KEDA Controller
	// allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'
	// default value: rfc3339
	// +optional
	LogTimeEncoding string `json:"logTimeEncoding,omitempty"`

	GenericDeploymentSpec `json:",inline"`

	// Any user-defined arguments with possibility to override any existing or
	// previously defined arguments. Allowed formats are '--argument=value',
	// 'argument=value' or just 'value'. Ex.: '--v=0' or 'ENV_ARGUMENT'
	// +optional
	Args []string `json:"args,omitempty"`

	// ConfigMaps containing PEM-encoded trusted certificate authorities (CAs).
	// The files from the ConfigMaps will be loaded by the KEDA operator during
	// start-up and will be used by scalers to authenticate TLS-enabled metrics
	// data sources.
	// +optional
	CAConfigMaps []string `json:"caConfigMaps,omitempty"`
}

func (*KedaOperatorSpec) DeepCopy

func (in *KedaOperatorSpec) DeepCopy() *KedaOperatorSpec

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

func (*KedaOperatorSpec) DeepCopyInto

func (in *KedaOperatorSpec) DeepCopyInto(out *KedaOperatorSpec)

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

type KedaServiceAccountSpec

type KedaServiceAccountSpec struct {

	// Annotations applied to the Service Account
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`

	// Labels applied to the Service Account
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
	// +optional
	Labels map[string]string `json:"labels,omitempty"`
}

func (*KedaServiceAccountSpec) DeepCopy

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

func (*KedaServiceAccountSpec) DeepCopyInto

func (in *KedaServiceAccountSpec) DeepCopyInto(out *KedaServiceAccountSpec)

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