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 CheckReplicaCountBoundsAreValid(scaledObject *ScaledObject) error
- func GenerateIdentifier(kind, namespace, name string) string
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AdvancedConfig
- type AuthConfigMapTargetRef
- type AuthEnvironment
- type AuthPodIdentity
- type AuthSecretTargetRef
- type AuthTargetRef
- type AuthenticationRef
- type AwsSecretManager
- type AwsSecretManagerCredentials
- type AwsSecretManagerSecret
- type AwsSecretManagerValue
- type AzureKeyVault
- type AzureKeyVaultClientSecret
- type AzureKeyVaultCloudInfo
- type AzureKeyVaultCredentials
- type AzureKeyVaultSecret
- type BoundServiceAccountToken
- type ClusterTriggerAuthentication
- type ClusterTriggerAuthenticationList
- type Condition
- type ConditionType
- type Conditions
- type Credential
- type Fallback
- type GCPCredentials
- type GCPSecretManager
- type GCPSecretManagerSecret
- type GCPSecretmanagerClientSecret
- type GroupVersionKindResource
- type HashiCorpVault
- type HealthStatus
- type HealthStatusType
- type HorizontalPodAutoscalerConfig
- type PodIdentityProvider
- type Rollout
- type ScaleTarget
- type ScaleTriggers
- type ScaledJob
- type ScaledJobList
- type ScaledJobSpec
- type ScaledJobStatus
- type ScaledObject
- func (in *ScaledObject) DeepCopy() *ScaledObject
- func (in *ScaledObject) DeepCopyInto(out *ScaledObject)
- func (in *ScaledObject) DeepCopyObject() runtime.Object
- func (so *ScaledObject) GenerateIdentifier() string
- func (so *ScaledObject) GetHPAMaxReplicas() int32
- func (so *ScaledObject) GetHPAMinReplicas() *int32
- func (so *ScaledObject) HasPausedAnnotation() bool
- func (so *ScaledObject) IsUsingModifiers() bool
- func (so *ScaledObject) NeedToBePausedByAnnotation() bool
- func (so *ScaledObject) NeedToPauseScaleIn() bool
- type ScaledObjectList
- type ScaledObjectSpec
- type ScaledObjectStatus
- type ScalingModifiers
- type ScalingStrategy
- type SecretKeyRef
- type TriggerAuthentication
- type TriggerAuthenticationList
- type TriggerAuthenticationSpec
- type TriggerAuthenticationStatus
- type ValueFromSecret
- type VaultAuthentication
- type VaultPkiData
- type VaultSecret
- type VaultSecretType
Constants ¶
const ( // ScaledObjectConditionReadySuccessReason defines the default Reason for correct ScaledObject ScaledObjectConditionReadySuccessReason = "ScaledObjectReady" // ScaledObjectConditionReadySuccessMessage defines the default Message for correct ScaledObject ScaledObjectConditionReadySuccessMessage = "ScaledObject is defined correctly and is ready for scaling" // ScaledObjectConditionPausedReason defines the default Reason for paused ScaledObject ScaledObjectConditionPausedReason = "ScaledObjectPaused" // ScaledObjectConditionPausedMessage defines the default Message for paused ScaledObject ScaledObjectConditionPausedMessage = "ScaledObject is paused" )
const ( // ScaledJobConditionPausedReason defines the default Reason for paused ScaledJob ScaledJobConditionPausedReason = "ScaledJobPaused" // ScaledJobConditionPausedReason defines the default Reason for paused ScaledJob ScaledJobConditionUnpausedReason = "ScaledJobUnpaused" // ScaledJobConditionPausedMessage defines the default Message for paused ScaledJob ScaledJobConditionPausedMessage = "ScaledJob is paused" // ScaledJobConditionPausedMessage defines the default Message for paused ScaledJob ScaledJobConditionUnpausedMessage = "ScaledJob is unpaused" )
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" // CompositeMetricName is used for scalingModifiers composite metric CompositeMetricName string = "composite-metric" )
const FallbackBehaviorCurrentReplicas = "currentReplicas"
const FallbackBehaviorCurrentReplicasIfHigher = "currentReplicasIfHigher"
const FallbackBehaviorCurrentReplicasIfLower = "currentReplicasIfLower"
const FallbackBehaviorStatic = "static"
const PausedAnnotation = "autoscaling.keda.sh/paused"
const PausedReplicasAnnotation = "autoscaling.keda.sh/paused-replicas"
const PausedScaleInAnnotation = "autoscaling.keda.sh/paused-scale-in"
const (
PodIdentityAnnotationEKS = "eks.amazonaws.com/role-arn"
)
PodIdentityAnnotationEKS specifies aws role arn for aws-eks Identity Provider
const ScaledJobExcludedLabelsAnnotation = "scaledjob.keda.sh/job-excluded-labels"
const ScaledObjectExcludedLabelsAnnotation = "scaledobject.keda.sh/hpa-excluded-labels"
const ScaledObjectOwnerAnnotation = "scaledobject.keda.sh/name"
const ScaledObjectTransferHpaOwnershipAnnotation = "scaledobject.keda.sh/transfer-hpa-ownership"
const ValidationsHpaOwnershipAnnotation = "validations.keda.sh/hpa-ownership"
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 // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
Functions ¶
func CheckReplicaCountBoundsAreValid ¶
func CheckReplicaCountBoundsAreValid(scaledObject *ScaledObject) error
CheckReplicaCountBoundsAreValid checks that Idle/Min/Max ReplicaCount defined in ScaledObject are correctly specified i.e. that Min is not greater than Max or Idle greater or equal to Min
func GenerateIdentifier ¶
GenerateIdentifier returns identifier for the object in form "kind.namespace.name" (lowercase)
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"`
// +optional
ScalingModifiers ScalingModifiers `json:"scalingModifiers,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 AuthConfigMapTargetRef ¶
type AuthConfigMapTargetRef AuthTargetRef
AuthConfigMapTargetRef is used to authenticate using a reference to a config map
func (*AuthConfigMapTargetRef) DeepCopy ¶
func (in *AuthConfigMapTargetRef) DeepCopy() *AuthConfigMapTargetRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthConfigMapTargetRef.
func (*AuthConfigMapTargetRef) DeepCopyInto ¶
func (in *AuthConfigMapTargetRef) DeepCopyInto(out *AuthConfigMapTargetRef)
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 {
// +kubebuilder:validation:Enum=azure-workload;gcp;aws;aws-eks;none
Provider PodIdentityProvider `json:"provider"`
// +optional
IdentityID *string `json:"identityId,omitempty"`
// +optional
// Set identityTenantId to override the default Azure tenant id. If this is set, then the IdentityID must also be set
IdentityTenantID *string `json:"identityTenantId,omitempty"`
// +optional
// Set identityAuthorityHost to override the default Azure authority host. If this is set, then the IdentityTenantID must also be set
IdentityAuthorityHost *string `json:"identityAuthorityHost,omitempty"`
// +kubebuilder:validation:Optional
// RoleArn sets the AWS RoleArn to be used. Mutually exclusive with IdentityOwner
RoleArn *string `json:"roleArn,omitempty"`
// +kubebuilder:validation:Enum=keda;workload
// +optional
// IdentityOwner configures which identity has to be used during auto discovery, keda or the scaled workload. Mutually exclusive with roleArn
IdentityOwner *string `json:"identityOwner,omitempty"`
}
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.
func (*AuthPodIdentity) GetIdentityAuthorityHost ¶
func (a *AuthPodIdentity) GetIdentityAuthorityHost() string
func (*AuthPodIdentity) GetIdentityID ¶
func (a *AuthPodIdentity) GetIdentityID() string
func (*AuthPodIdentity) GetIdentityTenantID ¶
func (a *AuthPodIdentity) GetIdentityTenantID() string
type AuthSecretTargetRef ¶
type AuthSecretTargetRef AuthTargetRef
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 AuthTargetRef ¶
type AuthTargetRef struct {
Parameter string `json:"parameter"`
Name string `json:"name"`
Key string `json:"key"`
}
AuthTargetRef is used to authenticate using a reference to a resource
func (*AuthTargetRef) DeepCopy ¶
func (in *AuthTargetRef) DeepCopy() *AuthTargetRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthTargetRef.
func (*AuthTargetRef) DeepCopyInto ¶
func (in *AuthTargetRef) DeepCopyInto(out *AuthTargetRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthenticationRef ¶
type AuthenticationRef struct {
Name string `json:"name"`
// Kind of the resource being referred to. Defaults to TriggerAuthentication.
// +optional
Kind string `json:"kind,omitempty"`
}
AuthenticationRef points to the TriggerAuthentication or ClusterTriggerAuthentication object that is used to authenticate the scaler with the environment
func (*AuthenticationRef) DeepCopy ¶
func (in *AuthenticationRef) DeepCopy() *AuthenticationRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationRef.
func (*AuthenticationRef) DeepCopyInto ¶
func (in *AuthenticationRef) DeepCopyInto(out *AuthenticationRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsSecretManager ¶
type AwsSecretManager struct {
Secrets []AwsSecretManagerSecret `json:"secrets"`
// +optional
Credentials *AwsSecretManagerCredentials `json:"credentials"`
// +optional
PodIdentity *AuthPodIdentity `json:"podIdentity"`
// +optional
Region string `json:"region,omitempty"`
}
AwsSecretManager is used to authenticate using AwsSecretManager
func (*AwsSecretManager) DeepCopy ¶
func (in *AwsSecretManager) DeepCopy() *AwsSecretManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSecretManager.
func (*AwsSecretManager) DeepCopyInto ¶
func (in *AwsSecretManager) DeepCopyInto(out *AwsSecretManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsSecretManagerCredentials ¶
type AwsSecretManagerCredentials struct {
AccessKey *AwsSecretManagerValue `json:"accessKey"`
AccessSecretKey *AwsSecretManagerValue `json:"accessSecretKey"`
// +optional
AccessToken *AwsSecretManagerValue `json:"accessToken,omitempty"`
}
func (*AwsSecretManagerCredentials) DeepCopy ¶
func (in *AwsSecretManagerCredentials) DeepCopy() *AwsSecretManagerCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSecretManagerCredentials.
func (*AwsSecretManagerCredentials) DeepCopyInto ¶
func (in *AwsSecretManagerCredentials) DeepCopyInto(out *AwsSecretManagerCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsSecretManagerSecret ¶
type AwsSecretManagerSecret struct {
Parameter string `json:"parameter"`
Name string `json:"name"`
// +optional
VersionID string `json:"versionId,omitempty"`
// +optional
VersionStage string `json:"versionStage,omitempty"`
// +optional
SecretKey string `json:"secretKey,omitempty"`
}
func (*AwsSecretManagerSecret) DeepCopy ¶
func (in *AwsSecretManagerSecret) DeepCopy() *AwsSecretManagerSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSecretManagerSecret.
func (*AwsSecretManagerSecret) DeepCopyInto ¶
func (in *AwsSecretManagerSecret) DeepCopyInto(out *AwsSecretManagerSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsSecretManagerValue ¶
type AwsSecretManagerValue struct {
ValueFrom ValueFromSecret `json:"valueFrom"`
}
func (*AwsSecretManagerValue) DeepCopy ¶
func (in *AwsSecretManagerValue) DeepCopy() *AwsSecretManagerValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSecretManagerValue.
func (*AwsSecretManagerValue) DeepCopyInto ¶
func (in *AwsSecretManagerValue) DeepCopyInto(out *AwsSecretManagerValue)
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
PodIdentity *AuthPodIdentity `json:"podIdentity"`
// +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"`
TenantID string `json:"tenantId"`
ClientSecret *AzureKeyVaultClientSecret `json:"clientSecret"`
}
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 BoundServiceAccountToken ¶
type BoundServiceAccountToken struct {
Parameter string `json:"parameter"`
ServiceAccountName string `json:"serviceAccountName"`
}
func (*BoundServiceAccountToken) DeepCopy ¶
func (in *BoundServiceAccountToken) DeepCopy() *BoundServiceAccountToken
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BoundServiceAccountToken.
func (*BoundServiceAccountToken) DeepCopyInto ¶
func (in *BoundServiceAccountToken) DeepCopyInto(out *BoundServiceAccountToken)
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"`
Status TriggerAuthenticationStatus `json:"status,omitempty"`
}
ClusterTriggerAuthentication defines how a trigger can authenticate globally +genclient +genclient:nonNamespaced +kubebuilder:resource:path=clustertriggerauthentications,scope=Cluster,shortName=cta;clustertriggerauth +kubebuilder:subresource:status +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" +kubebuilder:printcolumn:name="ScaledObjects",type="string",priority=1,JSONPath=".status.scaledobjects" +kubebuilder:printcolumn:name="ScaledJobs",type="string",priority=1,JSONPath=".status.scaledjobs"
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" // ConditionPaused specifies that the resource is paused. ConditionPaused ConditionType = "Paused" )
type Conditions ¶
type Conditions []Condition
Conditions an array representation to store multiple Conditions
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.
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"`
// +optional
// +kubebuilder:default=static
// +kubebuilder:validation:Enum=static;currentReplicas;currentReplicasIfHigher;currentReplicasIfLower
Behavior string `json:"behavior,omitempty"`
}
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 GCPCredentials ¶
type GCPCredentials struct {
ClientSecret GCPSecretmanagerClientSecret `json:"clientSecret"`
}
func (*GCPCredentials) DeepCopy ¶
func (in *GCPCredentials) DeepCopy() *GCPCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPCredentials.
func (*GCPCredentials) DeepCopyInto ¶
func (in *GCPCredentials) DeepCopyInto(out *GCPCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCPSecretManager ¶
type GCPSecretManager struct {
Secrets []GCPSecretManagerSecret `json:"secrets"`
// +optional
Credentials *GCPCredentials `json:"credentials"`
// +optional
PodIdentity *AuthPodIdentity `json:"podIdentity"`
}
func (*GCPSecretManager) DeepCopy ¶
func (in *GCPSecretManager) DeepCopy() *GCPSecretManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPSecretManager.
func (*GCPSecretManager) DeepCopyInto ¶
func (in *GCPSecretManager) DeepCopyInto(out *GCPSecretManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCPSecretManagerSecret ¶
type GCPSecretManagerSecret struct {
Parameter string `json:"parameter"`
ID string `json:"id"`
// +optional
Version string `json:"version,omitempty"`
}
func (*GCPSecretManagerSecret) DeepCopy ¶
func (in *GCPSecretManagerSecret) DeepCopy() *GCPSecretManagerSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPSecretManagerSecret.
func (*GCPSecretManagerSecret) DeepCopyInto ¶
func (in *GCPSecretManagerSecret) DeepCopyInto(out *GCPSecretManagerSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCPSecretmanagerClientSecret ¶
type GCPSecretmanagerClientSecret struct {
ValueFrom ValueFromSecret `json:"valueFrom"`
}
func (*GCPSecretmanagerClientSecret) DeepCopy ¶
func (in *GCPSecretmanagerClientSecret) DeepCopy() *GCPSecretmanagerClientSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPSecretmanagerClientSecret.
func (*GCPSecretmanagerClientSecret) DeepCopyInto ¶
func (in *GCPSecretmanagerClientSecret) DeepCopyInto(out *GCPSecretmanagerClientSecret)
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.
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
type HorizontalPodAutoscalerConfig ¶
type HorizontalPodAutoscalerConfig struct {
// +optional
Behavior *autoscalingv2.HorizontalPodAutoscalerBehavior `json:"behavior,omitempty"`
// +optional
Name string `json:"name,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" PodIdentityProviderAzureWorkload PodIdentityProvider = "azure-workload" PodIdentityProviderGCP PodIdentityProvider = "gcp" PodIdentityProviderAwsEKS PodIdentityProvider = "aws-eks" PodIdentityProviderAws PodIdentityProvider = "aws" )
PodIdentityProviderNone specifies the default state when there is no Identity Provider PodIdentityProvider<IDENTITY_PROVIDER> specifies other available Identity providers
type Rollout ¶
type Rollout struct {
// +optional
Strategy string `json:"strategy,omitempty"`
// +optional
PropagationPolicy string `json:"propagationPolicy,omitempty"`
}
Rollout defines the strategy for job rollouts +optional
func (*Rollout) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rollout.
func (*Rollout) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 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"`
UseCachedMetrics bool `json:"useCachedMetrics,omitempty"`
Metadata map[string]string `json:"metadata"`
// +optional
AuthenticationRef *AuthenticationRef `json:"authenticationRef,omitempty"`
// +optional
MetricType autoscalingv2.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) GenerateIdentifier ¶
func (ScaledJob) MaxReplicaCount ¶
MaxReplicaCount returns MaxReplicaCount
func (ScaledJob) MinReplicaCount ¶
MinReplicaCount returns MinReplicaCount
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
Rollout Rollout `json:"rollout,omitempty"`
// +optional
EnvSourceContainerName string `json:"envSourceContainerName,omitempty"`
// +optional
MinReplicaCount *int32 `json:"minReplicaCount,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"`
// +optional
Paused string `json:"Paused,omitempty"`
// +optional
TriggersTypes *string `json:"triggersTypes,omitempty"`
// +optional
AuthenticationsTypes *string `json:"authenticationsTypes,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.
func (*ScaledObject) GenerateIdentifier ¶
func (so *ScaledObject) GenerateIdentifier() string
GenerateIdentifier returns identifier for the object in for "kind.namespace.name"
func (*ScaledObject) GetHPAMaxReplicas ¶
func (so *ScaledObject) GetHPAMaxReplicas() int32
GetHPAMaxReplicas returns MaxReplicas based on definition in ScaledObject or default value if not defined
func (*ScaledObject) GetHPAMinReplicas ¶
func (so *ScaledObject) GetHPAMinReplicas() *int32
GetHPAMinReplicas returns MinReplicas based on definition in ScaledObject or default value if not defined
func (*ScaledObject) HasPausedAnnotation ¶
func (so *ScaledObject) HasPausedAnnotation() bool
HasPausedAnnotation returns whether this ScaledObject has PausedAnnotation or PausedReplicasAnnotation
func (*ScaledObject) IsUsingModifiers ¶
func (so *ScaledObject) IsUsingModifiers() bool
IsUsingModifiers determines whether scalingModifiers are defined or not
func (*ScaledObject) NeedToBePausedByAnnotation ¶
func (so *ScaledObject) NeedToBePausedByAnnotation() bool
NeedToBePausedByAnnotation will check whether ScaledObject needs to be paused based on PausedAnnotation or PausedReplicaCount
func (*ScaledObject) NeedToPauseScaleIn ¶
func (so *ScaledObject) NeedToPauseScaleIn() bool
NeedToPauseScaleIn checks whether Scale In actions for a ScaledObject need to be blocked based on the PausedScaleIn annotation
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
InitialCooldownPeriod *int32 `json:"initialCooldownPeriod,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
CompositeScalerName string `json:"compositeScalerName,omitempty"`
// +optional
Conditions Conditions `json:"conditions,omitempty"`
// +optional
Health map[string]HealthStatus `json:"health,omitempty"`
// +optional
PausedReplicaCount *int32 `json:"pausedReplicaCount,omitempty"`
// +optional
HpaName string `json:"hpaName,omitempty"`
// +optional
TriggersTypes *string `json:"triggersTypes,omitempty"`
// +optional
AuthenticationsTypes *string `json:"authenticationsTypes,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 ScalingModifiers ¶
type ScalingModifiers struct {
Formula string `json:"formula,omitempty"`
Target string `json:"target,omitempty"`
// +optional
ActivationTarget string `json:"activationTarget,omitempty"`
// +optional
// +kubebuilder:validation:Enum=AverageValue;Value
MetricType autoscalingv2.MetricTargetType `json:"metricType,omitempty"`
}
ScalingModifiers describes advanced scaling logic options like formula
func (*ScalingModifiers) DeepCopy ¶
func (in *ScalingModifiers) DeepCopy() *ScalingModifiers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalingModifiers.
func (*ScalingModifiers) DeepCopyInto ¶
func (in *ScalingModifiers) DeepCopyInto(out *ScalingModifiers)
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"`
Status TriggerAuthenticationStatus `json:"status,omitempty"`
}
TriggerAuthentication defines how a trigger can authenticate +genclient +kubebuilder:resource:path=triggerauthentications,scope=Namespaced,shortName=ta;triggerauth +kubebuilder:subresource:status +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" +kubebuilder:printcolumn:name="ScaledObjects",type="string",priority=1,JSONPath=".status.scaledobjects" +kubebuilder:printcolumn:name="ScaledJobs",type="string",priority=1,JSONPath=".status.scaledjobs"
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
ConfigMapTargetRef []AuthConfigMapTargetRef `json:"configMapTargetRef,omitempty"`
// +optional
Env []AuthEnvironment `json:"env,omitempty"`
// +optional
HashiCorpVault *HashiCorpVault `json:"hashiCorpVault,omitempty"`
// +optional
AzureKeyVault *AzureKeyVault `json:"azureKeyVault,omitempty"`
// +optional
GCPSecretManager *GCPSecretManager `json:"gcpSecretManager,omitempty"`
// +optional
AwsSecretManager *AwsSecretManager `json:"awsSecretManager,omitempty"`
// +optional
BoundServiceAccountToken []BoundServiceAccountToken `json:"boundServiceAccountToken,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 TriggerAuthenticationStatus ¶
type TriggerAuthenticationStatus struct {
// +optional
ScaledObjectNamesStr string `json:"scaledobjects,omitempty"`
// +optional
ScaledJobNamesStr string `json:"scaledjobs,omitempty"`
}
TriggerAuthenticationStatus defines the observed state of TriggerAuthentication
func (*TriggerAuthenticationStatus) DeepCopy ¶
func (in *TriggerAuthenticationStatus) DeepCopy() *TriggerAuthenticationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerAuthenticationStatus.
func (*TriggerAuthenticationStatus) DeepCopyInto ¶
func (in *TriggerAuthenticationStatus) DeepCopyInto(out *TriggerAuthenticationStatus)
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 VaultPkiData ¶
type VaultPkiData struct {
CommonName string `json:"commonName,omitempty"`
AltNames string `json:"altNames,omitempty"`
IPSans string `json:"ipSans,omitempty"`
URISans string `json:"uriSans,omitempty"`
OtherSans string `json:"otherSans,omitempty"`
TTL string `json:"ttl,omitempty"`
Format string `json:"format,omitempty"`
}
func (*VaultPkiData) DeepCopy ¶
func (in *VaultPkiData) DeepCopy() *VaultPkiData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VaultPkiData.
func (*VaultPkiData) DeepCopyInto ¶
func (in *VaultPkiData) DeepCopyInto(out *VaultPkiData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VaultSecret ¶
type VaultSecret struct {
Parameter string `json:"parameter"`
Path string `json:"path"`
Key string `json:"key"`
Type VaultSecretType `json:"type,omitempty"`
PkiData VaultPkiData `json:"pkiData,omitempty"`
Value string `json:"-"`
}
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 VaultSecretType ¶
type VaultSecretType string
VaultSecretType defines the type of vault secret
const ( VaultSecretTypeGeneric VaultSecretType = "" VaultSecretTypeSecretV2 VaultSecretType = "secretV2" VaultSecretTypeSecret VaultSecretType = "secret" VaultSecretTypePki VaultSecretType = "pki" )