v1alpha1

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	PodIdentityAnnotationEKS  = "eks.amazonaws.com/role-arn"
	PodIdentityAnnotationKiam = "iam.amazonaws.com/role"
)

PodIdentityAnnotationEKS specifies aws role arn for aws-eks Identity Provider PodIdentityAnnotationKiam specifies aws role arn for aws-iam Identity Provider

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "keda.sh", Version: "v1alpha1"}

	// SchemeGroupVersion is group version used to register these objects
	// added for generated clientset
	SchemeGroupVersion = GroupVersion

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

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind added for generated clientset

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource added for generated clientset

Types

type AdvancedConfig

type AdvancedConfig struct {
	// +optional
	HorizontalPodAutoscalerConfig *HorizontalPodAutoscalerConfig `json:"horizontalPodAutoscalerConfig,omitempty"`
	// +optional
	RestoreToOriginalReplicaCount bool `json:"restoreToOriginalReplicaCount,omitempty"`
}

AdvancedConfig specifies advance scaling options

func (*AdvancedConfig) DeepCopy

func (in *AdvancedConfig) DeepCopy() *AdvancedConfig

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

func (*AdvancedConfig) DeepCopyInto

func (in *AdvancedConfig) DeepCopyInto(out *AdvancedConfig)

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

type AuthEnvironment

type AuthEnvironment struct {
	Parameter string `json:"parameter"`
	Name      string `json:"name"`

	// +optional
	ContainerName string `json:"containerName,omitempty"`
}

AuthEnvironment is used to authenticate using environment variables in the destination ScaleTarget spec

func (*AuthEnvironment) DeepCopy

func (in *AuthEnvironment) DeepCopy() *AuthEnvironment

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

func (*AuthEnvironment) DeepCopyInto

func (in *AuthEnvironment) DeepCopyInto(out *AuthEnvironment)

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

type AuthPodIdentity

type AuthPodIdentity struct {
	Provider PodIdentityProvider `json:"provider"`
}

AuthPodIdentity allows users to select the platform native identity mechanism

func (*AuthPodIdentity) DeepCopy

func (in *AuthPodIdentity) DeepCopy() *AuthPodIdentity

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

func (*AuthPodIdentity) DeepCopyInto

func (in *AuthPodIdentity) DeepCopyInto(out *AuthPodIdentity)

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

type AuthSecretTargetRef

type AuthSecretTargetRef struct {
	Parameter string `json:"parameter"`
	Name      string `json:"name"`
	Key       string `json:"key"`
}

AuthSecretTargetRef is used to authenticate using a reference to a secret

func (*AuthSecretTargetRef) DeepCopy

func (in *AuthSecretTargetRef) DeepCopy() *AuthSecretTargetRef

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

func (*AuthSecretTargetRef) DeepCopyInto

func (in *AuthSecretTargetRef) DeepCopyInto(out *AuthSecretTargetRef)

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

type ClusterTriggerAuthentication

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

	Spec TriggerAuthenticationSpec `json:"spec"`
}

ClusterTriggerAuthentication defines how a trigger can authenticate globally +genclient +genclient:nonNamespaced +kubebuilder:resource:path=clustertriggerauthentications,scope=Cluster,shortName=cta;clustertriggerauth +kubebuilder:printcolumn:name="PodIdentity",type="string",JSONPath=".spec.podIdentity.provider" +kubebuilder:printcolumn:name="Secret",type="string",JSONPath=".spec.secretTargetRef[*].name" +kubebuilder:printcolumn:name="Env",type="string",JSONPath=".spec.env[*].name" +kubebuilder:printcolumn:name="VaultAddress",type="string",JSONPath=".spec.hashiCorpVault.address"

func (*ClusterTriggerAuthentication) DeepCopy

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

func (*ClusterTriggerAuthentication) DeepCopyInto

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

func (*ClusterTriggerAuthentication) DeepCopyObject

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

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

type ClusterTriggerAuthenticationList

type ClusterTriggerAuthenticationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []ClusterTriggerAuthentication `json:"items"`
}

ClusterTriggerAuthenticationList contains a list of ClusterTriggerAuthentication

func (*ClusterTriggerAuthenticationList) DeepCopy

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

func (*ClusterTriggerAuthenticationList) DeepCopyInto

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

func (*ClusterTriggerAuthenticationList) DeepCopyObject

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

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

type Condition

type Condition struct {
	// Type of condition
	// +required
	Type ConditionType `json:"type" description:"type of status condition"`

	// Status of the condition, one of True, False, Unknown.
	// +required
	Status metav1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"`

	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"`

	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"`
}

Condition to store the condition state

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

func (*Condition) IsFalse

func (c *Condition) IsFalse() bool

IsFalse is true if the condition is False

func (*Condition) IsTrue

func (c *Condition) IsTrue() bool

IsTrue is true if the condition is True

func (*Condition) IsUnknown

func (c *Condition) IsUnknown() bool

IsUnknown is true if the condition is Unknown

type ConditionType

type ConditionType string

ConditionType specifies the available conditions for the resource

const (
	// ConditionReady specifies that the resource is ready.
	// For long-running resources.
	ConditionReady ConditionType = "Ready"
	// ConditionActive specifies that the resource has finished.
	// For resource which run to completion.
	ConditionActive ConditionType = "Active"
	// ConditionFallback specifies that the resource has a fallback active.
	ConditionFallback ConditionType = "Fallback"
)

type Conditions

type Conditions []Condition

Conditions an array representation to store multiple Conditions

func GetInitializedConditions

func GetInitializedConditions() *Conditions

GetInitializedConditions returns Conditions initialized to the default -> Status: Unknown

func (*Conditions) AreInitialized

func (c *Conditions) AreInitialized() bool

AreInitialized performs check all Conditions are initialized return true if Conditions are initialized return false if Conditions are not initialized

func (Conditions) DeepCopy

func (in Conditions) DeepCopy() Conditions

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

func (Conditions) DeepCopyInto

func (in Conditions) DeepCopyInto(out *Conditions)

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

func (*Conditions) GetActiveCondition

func (c *Conditions) GetActiveCondition() Condition

GetActiveCondition returns Condition of type Active

func (*Conditions) GetFallbackCondition added in v2.4.0

func (c *Conditions) GetFallbackCondition() Condition

GetFallbackCondition returns Condition of type Ready

func (*Conditions) GetReadyCondition added in v2.2.0

func (c *Conditions) GetReadyCondition() Condition

GetReadyCondition returns Condition of type Ready

func (*Conditions) SetActiveCondition

func (c *Conditions) SetActiveCondition(status metav1.ConditionStatus, reason string, message string)

SetActiveCondition modifies Active Condition according to input parameters

func (*Conditions) SetFallbackCondition added in v2.4.0

func (c *Conditions) SetFallbackCondition(status metav1.ConditionStatus, reason string, message string)

SetFallbackCondition modifies Fallback Condition according to input parameters

func (*Conditions) SetReadyCondition

func (c *Conditions) SetReadyCondition(status metav1.ConditionStatus, reason string, message string)

SetReadyCondition modifies Ready Condition according to input parameters

type Credential

type Credential struct {
	// +optional
	Token string `json:"token,omitempty"`

	// +optional
	ServiceAccount string `json:"serviceAccount,omitempty"`
}

Credential defines the Hashicorp Vault credentials depending on the authentication method

func (*Credential) DeepCopy

func (in *Credential) DeepCopy() *Credential

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

func (*Credential) DeepCopyInto

func (in *Credential) DeepCopyInto(out *Credential)

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

type Fallback added in v2.4.0

type Fallback struct {
	FailureThreshold int32 `json:"failureThreshold"`
	Replicas         int32 `json:"replicas"`
}

Fallback is the spec for fallback options

func (*Fallback) DeepCopy added in v2.4.0

func (in *Fallback) DeepCopy() *Fallback

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

func (*Fallback) DeepCopyInto added in v2.4.0

func (in *Fallback) DeepCopyInto(out *Fallback)

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

type GroupVersionKindResource

type GroupVersionKindResource struct {
	Group    string `json:"group"`
	Version  string `json:"version"`
	Kind     string `json:"kind"`
	Resource string `json:"resource"`
}

GroupVersionKindResource provides unified structure for schema.GroupVersionKind and Resource

func (*GroupVersionKindResource) DeepCopy

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

func (*GroupVersionKindResource) DeepCopyInto

func (in *GroupVersionKindResource) DeepCopyInto(out *GroupVersionKindResource)

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

func (GroupVersionKindResource) GVKString

func (gvkr GroupVersionKindResource) GVKString() string

GVKString returns the group, version and kind in string format

func (GroupVersionKindResource) GroupResource

func (gvkr GroupVersionKindResource) GroupResource() schema.GroupResource

GroupResource returns the group and resource of GroupVersionKindResource

func (GroupVersionKindResource) GroupVersion

func (gvkr GroupVersionKindResource) GroupVersion() schema.GroupVersion

GroupVersion returns the group and version of GroupVersionKindResource

func (GroupVersionKindResource) GroupVersionKind

func (gvkr GroupVersionKindResource) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind returns the group, version and kind of GroupVersionKindResource

type HashiCorpVault

type HashiCorpVault struct {
	Address        string              `json:"address"`
	Authentication VaultAuthentication `json:"authentication"`
	Secrets        []VaultSecret       `json:"secrets"`

	// +optional
	Credential *Credential `json:"credential,omitempty"`

	// +optional
	Role string `json:"role,omitempty"`

	// +optional
	Mount string `json:"mount,omitempty"`
}

HashiCorpVault is used to authenticate using Hashicorp Vault

func (*HashiCorpVault) DeepCopy

func (in *HashiCorpVault) DeepCopy() *HashiCorpVault

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

func (*HashiCorpVault) DeepCopyInto

func (in *HashiCorpVault) DeepCopyInto(out *HashiCorpVault)

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

type HealthStatus added in v2.4.0

type HealthStatus struct {
	// +optional
	NumberOfFailures *int32 `json:"numberOfFailures,omitempty"`
	// +optional
	Status HealthStatusType `json:"status,omitempty"`
}

HealthStatus is the status for a ScaledObject's health

func (*HealthStatus) DeepCopy added in v2.4.0

func (in *HealthStatus) DeepCopy() *HealthStatus

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

func (*HealthStatus) DeepCopyInto added in v2.4.0

func (in *HealthStatus) DeepCopyInto(out *HealthStatus)

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

type HealthStatusType added in v2.4.0

type HealthStatusType string

HealthStatusType is an indication of whether the health status is happy or failing

const (
	// HealthStatusHappy means the status of the health object is happy
	HealthStatusHappy HealthStatusType = "Happy"

	// HealthStatusFailing means the status of the health object is failing
	HealthStatusFailing HealthStatusType = "Failing"
)

type HorizontalPodAutoscalerConfig

type HorizontalPodAutoscalerConfig struct {
	// +optional
	Behavior *autoscalingv2beta2.HorizontalPodAutoscalerBehavior `json:"behavior,omitempty"`
}

HorizontalPodAutoscalerConfig specifies horizontal scale config

func (*HorizontalPodAutoscalerConfig) DeepCopy

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

func (*HorizontalPodAutoscalerConfig) DeepCopyInto

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

type PodIdentityProvider

type PodIdentityProvider string

PodIdentityProvider contains the list of providers

const (
	PodIdentityProviderNone    PodIdentityProvider = "none"
	PodIdentityProviderAzure   PodIdentityProvider = "azure"
	PodIdentityProviderGCP     PodIdentityProvider = "gcp"
	PodIdentityProviderSpiffe  PodIdentityProvider = "spiffe"
	PodIdentityProviderAwsEKS  PodIdentityProvider = "aws-eks"
	PodIdentityProviderAwsKiam PodIdentityProvider = "aws-kiam"
)

PodIdentityProviderNone specifies the default state when there is no Identity Provider PodIdentityProvider<IDENTITY_PROVIDER> specifies other available Identity providers

type ScaleTarget

type ScaleTarget struct {
	Name string `json:"name"`
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
	// +optional
	Kind string `json:"kind,omitempty"`
	// +optional
	EnvSourceContainerName string `json:"envSourceContainerName,omitempty"`
}

ScaleTarget holds the a reference to the scale target Object

func (*ScaleTarget) DeepCopy

func (in *ScaleTarget) DeepCopy() *ScaleTarget

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

func (*ScaleTarget) DeepCopyInto

func (in *ScaleTarget) DeepCopyInto(out *ScaleTarget)

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

type ScaleTriggers

type ScaleTriggers struct {
	Type string `json:"type"`
	// +optional
	Name     string            `json:"name,omitempty"`
	Metadata map[string]string `json:"metadata"`
	// +optional
	AuthenticationRef *ScaledObjectAuthRef `json:"authenticationRef,omitempty"`
	// +optional
	FallbackReplicas *int32 `json:"fallback,omitempty"`
}

ScaleTriggers reference the scaler that will be used

func (*ScaleTriggers) DeepCopy

func (in *ScaleTriggers) DeepCopy() *ScaleTriggers

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

func (*ScaleTriggers) DeepCopyInto

func (in *ScaleTriggers) DeepCopyInto(out *ScaleTriggers)

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

func (*ScaleTriggers) GetFullType

func (*ScaleTriggers) GetFullType() duck.Populatable

GetFullType implements duck.Implementable

type ScaledJob

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

	Spec   ScaledJobSpec   `json:"spec,omitempty"`
	Status ScaledJobStatus `json:"status,omitempty"`
}

ScaledJob is the Schema for the scaledjobs API

func (*ScaledJob) DeepCopy

func (in *ScaledJob) DeepCopy() *ScaledJob

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

func (*ScaledJob) DeepCopyInto

func (in *ScaledJob) DeepCopyInto(out *ScaledJob)

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

func (*ScaledJob) DeepCopyObject

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

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

func (ScaledJob) MaxReplicaCount

func (s ScaledJob) MaxReplicaCount() int64

MaxReplicaCount returns MaxReplicaCount

type ScaledJobList

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

ScaledJobList contains a list of ScaledJob +kubebuilder:object:root=true

func (*ScaledJobList) DeepCopy

func (in *ScaledJobList) DeepCopy() *ScaledJobList

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

func (*ScaledJobList) DeepCopyInto

func (in *ScaledJobList) DeepCopyInto(out *ScaledJobList)

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

func (*ScaledJobList) DeepCopyObject

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

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

type ScaledJobSpec

type ScaledJobSpec struct {
	JobTargetRef *batchv1.JobSpec `json:"jobTargetRef"`
	// +optional
	PollingInterval *int32 `json:"pollingInterval,omitempty"`
	// +optional
	SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"`
	// +optional
	FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"`
	// +optional
	EnvSourceContainerName string `json:"envSourceContainerName,omitempty"`
	// +optional
	MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"`
	// +optional
	ScalingStrategy ScalingStrategy `json:"scalingStrategy,omitempty"`
	Triggers        []ScaleTriggers `json:"triggers"`
}

ScaledJobSpec defines the desired state of ScaledJob

func (*ScaledJobSpec) DeepCopy

func (in *ScaledJobSpec) DeepCopy() *ScaledJobSpec

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

func (*ScaledJobSpec) DeepCopyInto

func (in *ScaledJobSpec) DeepCopyInto(out *ScaledJobSpec)

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

type ScaledJobStatus

type ScaledJobStatus struct {
	// +optional
	LastActiveTime *metav1.Time `json:"lastActiveTime,omitempty"`
	// +optional
	Conditions Conditions `json:"conditions,omitempty"`
}

ScaledJobStatus defines the observed state of ScaledJob +optional

func (*ScaledJobStatus) DeepCopy

func (in *ScaledJobStatus) DeepCopy() *ScaledJobStatus

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

func (*ScaledJobStatus) DeepCopyInto

func (in *ScaledJobStatus) DeepCopyInto(out *ScaledJobStatus)

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

type ScaledObject

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

	Spec ScaledObjectSpec `json:"spec"`
	// +optional
	Status ScaledObjectStatus `json:"status,omitempty"`
}

ScaledObject is a specification for a ScaledObject resource

func (*ScaledObject) DeepCopy

func (in *ScaledObject) DeepCopy() *ScaledObject

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

func (*ScaledObject) DeepCopyInto

func (in *ScaledObject) DeepCopyInto(out *ScaledObject)

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

func (*ScaledObject) DeepCopyObject

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

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

type ScaledObjectAuthRef

type ScaledObjectAuthRef struct {
	Name string `json:"name"`
	// Kind of the resource being referred to. Defaults to TriggerAuthentication.
	// +optional
	Kind string `json:"kind,omitempty"`
}

ScaledObjectAuthRef points to the TriggerAuthentication or ClusterTriggerAuthentication object that is used to authenticate the scaler with the environment

func (*ScaledObjectAuthRef) DeepCopy

func (in *ScaledObjectAuthRef) DeepCopy() *ScaledObjectAuthRef

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

func (*ScaledObjectAuthRef) DeepCopyInto

func (in *ScaledObjectAuthRef) DeepCopyInto(out *ScaledObjectAuthRef)

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

type ScaledObjectList

type ScaledObjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []ScaledObject `json:"items"`
}

ScaledObjectList is a list of ScaledObject resources

func (*ScaledObjectList) DeepCopy

func (in *ScaledObjectList) DeepCopy() *ScaledObjectList

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

func (*ScaledObjectList) DeepCopyInto

func (in *ScaledObjectList) DeepCopyInto(out *ScaledObjectList)

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

func (*ScaledObjectList) DeepCopyObject

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

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

type ScaledObjectSpec

type ScaledObjectSpec struct {
	ScaleTargetRef *ScaleTarget `json:"scaleTargetRef"`
	// +optional
	PollingInterval *int32 `json:"pollingInterval,omitempty"`
	// +optional
	CooldownPeriod *int32 `json:"cooldownPeriod,omitempty"`
	// +optional
	IdleReplicaCount *int32 `json:"idleReplicaCount,omitempty"`
	// +optional
	MinReplicaCount *int32 `json:"minReplicaCount,omitempty"`
	// +optional
	MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"`
	// +optional
	Advanced *AdvancedConfig `json:"advanced,omitempty"`

	Triggers []ScaleTriggers `json:"triggers"`
	// +optional
	Fallback *Fallback `json:"fallback,omitempty"`
}

ScaledObjectSpec is the spec for a ScaledObject resource

func (*ScaledObjectSpec) DeepCopy

func (in *ScaledObjectSpec) DeepCopy() *ScaledObjectSpec

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

func (*ScaledObjectSpec) DeepCopyInto

func (in *ScaledObjectSpec) DeepCopyInto(out *ScaledObjectSpec)

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

type ScaledObjectStatus

type ScaledObjectStatus struct {
	// +optional
	ScaleTargetKind string `json:"scaleTargetKind,omitempty"`
	// +optional
	ScaleTargetGVKR *GroupVersionKindResource `json:"scaleTargetGVKR,omitempty"`
	// +optional
	OriginalReplicaCount *int32 `json:"originalReplicaCount,omitempty"`
	// +optional
	LastActiveTime *metav1.Time `json:"lastActiveTime,omitempty"`
	// +optional
	ExternalMetricNames []string `json:"externalMetricNames,omitempty"`
	// +optional
	ResourceMetricNames []string `json:"resourceMetricNames,omitempty"`
	// +optional
	Conditions Conditions `json:"conditions,omitempty"`
	// +optional
	Health map[string]HealthStatus `json:"health,omitempty"`
}

ScaledObjectStatus is the status for a ScaledObject resource +optional

func (*ScaledObjectStatus) DeepCopy

func (in *ScaledObjectStatus) DeepCopy() *ScaledObjectStatus

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

func (*ScaledObjectStatus) DeepCopyInto

func (in *ScaledObjectStatus) DeepCopyInto(out *ScaledObjectStatus)

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

type ScalingStrategy

type ScalingStrategy struct {
	// +optional
	Strategy string `json:"strategy,omitempty"`
	// +optional
	CustomScalingQueueLengthDeduction *int32 `json:"customScalingQueueLengthDeduction,omitempty"`
	// +optional
	CustomScalingRunningJobPercentage string `json:"customScalingRunningJobPercentage,omitempty"`
	// +optional
	PendingPodConditions []string `json:"pendingPodConditions,omitempty"`
}

ScalingStrategy defines the strategy of Scaling +optional

func (*ScalingStrategy) DeepCopy

func (in *ScalingStrategy) DeepCopy() *ScalingStrategy

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

func (*ScalingStrategy) DeepCopyInto

func (in *ScalingStrategy) DeepCopyInto(out *ScalingStrategy)

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

type TriggerAuthentication

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

	Spec TriggerAuthenticationSpec `json:"spec"`
}

TriggerAuthentication defines how a trigger can authenticate +genclient +kubebuilder:resource:path=triggerauthentications,scope=Namespaced,shortName=ta;triggerauth +kubebuilder:printcolumn:name="PodIdentity",type="string",JSONPath=".spec.podIdentity.provider" +kubebuilder:printcolumn:name="Secret",type="string",JSONPath=".spec.secretTargetRef[*].name" +kubebuilder:printcolumn:name="Env",type="string",JSONPath=".spec.env[*].name" +kubebuilder:printcolumn:name="VaultAddress",type="string",JSONPath=".spec.hashiCorpVault.address"

func (*TriggerAuthentication) DeepCopy

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

func (*TriggerAuthentication) DeepCopyInto

func (in *TriggerAuthentication) DeepCopyInto(out *TriggerAuthentication)

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

func (*TriggerAuthentication) DeepCopyObject

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

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

type TriggerAuthenticationList

type TriggerAuthenticationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []TriggerAuthentication `json:"items"`
}

TriggerAuthenticationList contains a list of TriggerAuthentication

func (*TriggerAuthenticationList) DeepCopy

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

func (*TriggerAuthenticationList) DeepCopyInto

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

func (*TriggerAuthenticationList) DeepCopyObject

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

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

type TriggerAuthenticationSpec

type TriggerAuthenticationSpec struct {
	// +optional
	PodIdentity *AuthPodIdentity `json:"podIdentity,omitempty"`

	// +optional
	SecretTargetRef []AuthSecretTargetRef `json:"secretTargetRef,omitempty"`

	// +optional
	Env []AuthEnvironment `json:"env,omitempty"`

	// +optional
	HashiCorpVault *HashiCorpVault `json:"hashiCorpVault,omitempty"`
}

TriggerAuthenticationSpec defines the various ways to authenticate

func (*TriggerAuthenticationSpec) DeepCopy

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

func (*TriggerAuthenticationSpec) DeepCopyInto

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

type VaultAuthentication

type VaultAuthentication string

VaultAuthentication contains the list of Hashicorp Vault authentication methods

const (
	VaultAuthenticationToken      VaultAuthentication = "token"
	VaultAuthenticationKubernetes VaultAuthentication = "kubernetes"
)

Client authenticating to Vault

type VaultSecret

type VaultSecret struct {
	Parameter string `json:"parameter"`
	Path      string `json:"path"`
	Key       string `json:"key"`
}

VaultSecret defines the mapping between the path of the secret in Vault to the parameter

func (*VaultSecret) DeepCopy

func (in *VaultSecret) DeepCopy() *VaultSecret

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

func (*VaultSecret) DeepCopyInto

func (in *VaultSecret) DeepCopyInto(out *VaultSecret)

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

type WithTriggers

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

	Spec WithTriggersSpec `json:"spec"`
}

WithTriggers is a specification for a resource with triggers

func (*WithTriggers) DeepCopy

func (in *WithTriggers) DeepCopy() *WithTriggers

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

func (*WithTriggers) DeepCopyInto

func (in *WithTriggers) DeepCopyInto(out *WithTriggers)

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

func (*WithTriggers) DeepCopyObject

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

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

func (*WithTriggers) GenerateIdenitifier added in v2.4.0

func (t *WithTriggers) GenerateIdenitifier() string

GenerateIdenitifier returns identifier for the object in for "kind.namespace.name"

func (*WithTriggers) GetListType

func (*WithTriggers) GetListType() runtime.Object

GetListType implements apis.Listable

func (*WithTriggers) GetPollingInterval added in v2.4.0

func (t *WithTriggers) GetPollingInterval() time.Duration

GetPollingInterval returns defined polling interval, if not set default is being returned

func (*WithTriggers) Populate

func (t *WithTriggers) Populate()

Populate implements duck.Populatable

type WithTriggersList

type WithTriggersList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []WithTriggers `json:"items"`
}

WithTriggersList is a list of ScaledObject resources

func (*WithTriggersList) DeepCopy

func (in *WithTriggersList) DeepCopy() *WithTriggersList

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

func (*WithTriggersList) DeepCopyInto

func (in *WithTriggersList) DeepCopyInto(out *WithTriggersList)

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

func (*WithTriggersList) DeepCopyObject

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

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

type WithTriggersSpec

type WithTriggersSpec struct {
	PollingInterval *int32          `json:"pollingInterval,omitempty"`
	Triggers        []ScaleTriggers `json:"triggers"`
}

WithTriggersSpec is the spec for a an object with triggers resource

func (*WithTriggersSpec) DeepCopy

func (in *WithTriggersSpec) DeepCopy() *WithTriggersSpec

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

func (*WithTriggersSpec) DeepCopyInto

func (in *WithTriggersSpec) DeepCopyInto(out *WithTriggersSpec)

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