Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the keda v1alpha1 API group +kubebuilder:object:generate=true +groupName=keda.sh
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AdvancedConfig
- type AuthEnvironment
- type AuthPodIdentity
- type AuthSecretTargetRef
- type AzureKeyVault
- type AzureKeyVaultClientSecret
- type AzureKeyVaultCloudInfo
- type AzureKeyVaultCredentials
- type AzureKeyVaultSecret
- type ClusterTriggerAuthentication
- type ClusterTriggerAuthenticationList
- type Condition
- type ConditionType
- type Conditions
- func (c *Conditions) AreInitialized() bool
- func (in Conditions) DeepCopy() Conditions
- func (in Conditions) DeepCopyInto(out *Conditions)
- func (c *Conditions) GetActiveCondition() Condition
- func (c *Conditions) GetFallbackCondition() Condition
- func (c *Conditions) GetReadyCondition() Condition
- func (c *Conditions) SetActiveCondition(status metav1.ConditionStatus, reason string, message string)
- func (c *Conditions) SetFallbackCondition(status metav1.ConditionStatus, reason string, message string)
- func (c *Conditions) SetReadyCondition(status metav1.ConditionStatus, reason string, message string)
- type Credential
- type Fallback
- type GroupVersionKindResource
- func (in *GroupVersionKindResource) DeepCopy() *GroupVersionKindResource
- func (in *GroupVersionKindResource) DeepCopyInto(out *GroupVersionKindResource)
- func (gvkr GroupVersionKindResource) GVKString() string
- func (gvkr GroupVersionKindResource) GroupResource() schema.GroupResource
- func (gvkr GroupVersionKindResource) GroupVersion() schema.GroupVersion
- func (gvkr GroupVersionKindResource) GroupVersionKind() schema.GroupVersionKind
- type HashiCorpVault
- type HealthStatus
- type HealthStatusType
- type HorizontalPodAutoscalerConfig
- type PodIdentityProvider
- type ScaleTarget
- type ScaleTriggers
- type ScaledJob
- type ScaledJobList
- type ScaledJobSpec
- type ScaledJobStatus
- type ScaledObject
- type ScaledObjectAuthRef
- type ScaledObjectList
- type ScaledObjectSpec
- type ScaledObjectStatus
- type ScalingStrategy
- type SecretKeyRef
- type TriggerAuthentication
- type TriggerAuthenticationList
- type TriggerAuthenticationSpec
- type ValueFromSecret
- type VaultAuthentication
- type VaultSecret
- type WithTriggers
- func (in *WithTriggers) DeepCopy() *WithTriggers
- func (in *WithTriggers) DeepCopyInto(out *WithTriggers)
- func (in *WithTriggers) DeepCopyObject() runtime.Object
- func (t *WithTriggers) GenerateIdenitifier() string
- func (*WithTriggers) GetListType() runtime.Object
- func (t *WithTriggers) GetPollingInterval() time.Duration
- func (t *WithTriggers) Populate()
- type WithTriggersList
- type WithTriggersSpec
Constants ¶
const ( // ScaledObjectConditionReadySucccesReason defines the default Reason for correct ScaledObject ScaledObjectConditionReadySucccesReason = "ScaledObjectReady" // ScaledObjectConditionReadySuccessMessage defines the default Message for correct ScaledObject ScaledObjectConditionReadySuccessMessage = "ScaledObject is defined correctly and is ready for scaling" )
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 ¶
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 ¶
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 AzureKeyVault ¶
type AzureKeyVault struct { VaultURI string `json:"vaultUri"` Secrets []AzureKeyVaultSecret `json:"secrets"` // +optional Credentials *AzureKeyVaultCredentials `json:"credentials"` // +optional Cloud *AzureKeyVaultCloudInfo `json:"cloud"` }
AzureKeyVault is used to authenticate using Azure Key Vault
func (*AzureKeyVault) DeepCopy ¶
func (in *AzureKeyVault) DeepCopy() *AzureKeyVault
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKeyVault.
func (*AzureKeyVault) DeepCopyInto ¶
func (in *AzureKeyVault) DeepCopyInto(out *AzureKeyVault)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureKeyVaultClientSecret ¶
type AzureKeyVaultClientSecret struct {
ValueFrom ValueFromSecret `json:"valueFrom"`
}
func (*AzureKeyVaultClientSecret) DeepCopy ¶
func (in *AzureKeyVaultClientSecret) DeepCopy() *AzureKeyVaultClientSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKeyVaultClientSecret.
func (*AzureKeyVaultClientSecret) DeepCopyInto ¶
func (in *AzureKeyVaultClientSecret) DeepCopyInto(out *AzureKeyVaultClientSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureKeyVaultCloudInfo ¶
type AzureKeyVaultCloudInfo struct { Type string `json:"type"` // +optional KeyVaultResourceURL string `json:"keyVaultResourceURL"` // +optional ActiveDirectoryEndpoint string `json:"activeDirectoryEndpoint"` }
func (*AzureKeyVaultCloudInfo) DeepCopy ¶
func (in *AzureKeyVaultCloudInfo) DeepCopy() *AzureKeyVaultCloudInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKeyVaultCloudInfo.
func (*AzureKeyVaultCloudInfo) DeepCopyInto ¶
func (in *AzureKeyVaultCloudInfo) DeepCopyInto(out *AzureKeyVaultCloudInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureKeyVaultCredentials ¶
type AzureKeyVaultCredentials struct { ClientID string `json:"clientId"` ClientSecret *AzureKeyVaultClientSecret `json:"clientSecret"` TenantID string `json:"tenantId"` }
func (*AzureKeyVaultCredentials) DeepCopy ¶
func (in *AzureKeyVaultCredentials) DeepCopy() *AzureKeyVaultCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKeyVaultCredentials.
func (*AzureKeyVaultCredentials) DeepCopyInto ¶
func (in *AzureKeyVaultCredentials) DeepCopyInto(out *AzureKeyVaultCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureKeyVaultSecret ¶
type AzureKeyVaultSecret struct { Parameter string `json:"parameter"` Name string `json:"name"` // +optional Version string `json:"version,omitempty"` }
func (*AzureKeyVaultSecret) DeepCopy ¶
func (in *AzureKeyVaultSecret) DeepCopy() *AzureKeyVaultSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKeyVaultSecret.
func (*AzureKeyVaultSecret) DeepCopyInto ¶
func (in *AzureKeyVaultSecret) DeepCopyInto(out *AzureKeyVaultSecret)
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 ¶
func (in *ClusterTriggerAuthentication) DeepCopy() *ClusterTriggerAuthentication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTriggerAuthentication.
func (*ClusterTriggerAuthentication) DeepCopyInto ¶
func (in *ClusterTriggerAuthentication) DeepCopyInto(out *ClusterTriggerAuthentication)
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 ¶
func (in *ClusterTriggerAuthenticationList) DeepCopy() *ClusterTriggerAuthenticationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTriggerAuthenticationList.
func (*ClusterTriggerAuthenticationList) DeepCopyInto ¶
func (in *ClusterTriggerAuthenticationList) DeepCopyInto(out *ClusterTriggerAuthenticationList)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (c *Conditions) GetFallbackCondition() Condition
GetFallbackCondition returns Condition of type Ready
func (*Conditions) GetReadyCondition ¶
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 ¶
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 ¶
type Fallback struct { FailureThreshold int32 `json:"failureThreshold"` Replicas int32 `json:"replicas"` }
Fallback is the spec for fallback options
func (*Fallback) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Fallback.
func (*Fallback) DeepCopyInto ¶
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 ¶
func (in *GroupVersionKindResource) DeepCopy() *GroupVersionKindResource
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 Namespace string `json:"namespace,omitempty"` // +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 ¶
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 ¶
func (in *HealthStatus) DeepCopy() *HealthStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthStatus.
func (*HealthStatus) DeepCopyInto ¶
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 ¶
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 ¶
func (in *HorizontalPodAutoscalerConfig) DeepCopy() *HorizontalPodAutoscalerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerConfig.
func (*HorizontalPodAutoscalerConfig) DeepCopyInto ¶
func (in *HorizontalPodAutoscalerConfig) DeepCopyInto(out *HorizontalPodAutoscalerConfig)
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" PodIdentityProviderAzureWorkload PodIdentityProvider = "azure-workload" 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 MetricType autoscalingv2beta2.MetricTargetType `json:"metricType,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.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledJob.
func (*ScaledJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScaledJob) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ScaledJob) MaxReplicaCount ¶
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 RolloutStrategy string `json:"rolloutStrategy,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"` // +optional PausedReplicaCount *int32 `json:"pausedReplicaCount,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"` // +optional MultipleScalersCalculation string `json:"multipleScalersCalculation,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 SecretKeyRef ¶
func (*SecretKeyRef) DeepCopy ¶
func (in *SecretKeyRef) DeepCopy() *SecretKeyRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeyRef.
func (*SecretKeyRef) DeepCopyInto ¶
func (in *SecretKeyRef) DeepCopyInto(out *SecretKeyRef)
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 ¶
func (in *TriggerAuthentication) DeepCopy() *TriggerAuthentication
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 ¶
func (in *TriggerAuthenticationList) DeepCopy() *TriggerAuthenticationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerAuthenticationList.
func (*TriggerAuthenticationList) DeepCopyInto ¶
func (in *TriggerAuthenticationList) DeepCopyInto(out *TriggerAuthenticationList)
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"` // +optional AzureKeyVault *AzureKeyVault `json:"azureKeyVault,omitempty"` }
TriggerAuthenticationSpec defines the various ways to authenticate
func (*TriggerAuthenticationSpec) DeepCopy ¶
func (in *TriggerAuthenticationSpec) DeepCopy() *TriggerAuthenticationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerAuthenticationSpec.
func (*TriggerAuthenticationSpec) DeepCopyInto ¶
func (in *TriggerAuthenticationSpec) DeepCopyInto(out *TriggerAuthenticationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueFromSecret ¶
type ValueFromSecret struct {
SecretKeyRef SecretKeyRef `json:"secretKeyRef"`
}
func (*ValueFromSecret) DeepCopy ¶
func (in *ValueFromSecret) DeepCopy() *ValueFromSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueFromSecret.
func (*ValueFromSecret) DeepCopyInto ¶
func (in *ValueFromSecret) DeepCopyInto(out *ValueFromSecret)
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 ¶
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 ¶
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.