Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=keda.k8s.io
Index ¶
- Constants
- Variables
- type AuthEnvironment
- type AuthPodIdentity
- type AuthSecretTargetRef
- type ObjectReference
- type PodIdentityProvider
- type ScaleTriggers
- type ScaledObject
- type ScaledObjectAuthRef
- type ScaledObjectList
- type ScaledObjectScaleType
- type ScaledObjectSpec
- type ScaledObjectStatus
- type TriggerAuthentication
- type TriggerAuthenticationList
- type TriggerAuthenticationSpec
Constants ¶
const ( PodIdentityProviderNone PodIdentityProvider = "none" PodIdentityProviderAzure = "azure" PodIdentityProviderGCP = "gcp" PodIdentityProviderSpiffe = "spiffe" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "keda.k8s.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AuthEnvironment ¶
type AuthEnvironment struct { Parameter string `json:"parameter"` Name string `json:"name"` ContainerName string `json:"containerName"` }
AuthEnvironment is used to authenticate using environment variables
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 ObjectReference ¶
type ObjectReference struct { DeploymentName string `json:"deploymentName"` ContainerName string `json:"containerName"` }
ObjectReference holds the a reference to the deployment this ScaledObject applies
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
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
type ScaleTriggers ¶
type ScaleTriggers struct { Type string `json:"type"` Name string `json:"name"` Metadata map[string]string `json:"metadata"` AuthenticationRef *ScaledObjectAuthRef `json:"authenticationRef,omitempty"` }
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 ScaledObject ¶
type ScaledObject struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScaledObjectSpec `json:"spec"` Status ScaledObjectStatus `json:"status"` }
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"`
}
ScaledObjectAuthRef points to the TriggerAuthentication 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 ScaledObjectScaleType ¶
type ScaledObjectScaleType string
ScaledObjectScaleType distinguish between Deployment based and K8s Jobs
type ScaledObjectSpec ¶
type ScaledObjectSpec struct { ScaleType ScaledObjectScaleType `json:"scaleType,omitempty"` ScaleTargetRef *ObjectReference `json:"scaleTargetRef,omitempty"` JobTargetRef *batchv1.JobSpec `json:"jobTargetRef,omitempty"` PollingInterval *int32 `json:"pollingInterval,omitempty"` CooldownPeriod *int32 `json:"cooldownPeriod,omitempty"` MinReplicaCount *int32 `json:"minReplicaCount,omitempty"` MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"` Triggers []ScaleTriggers `json:"triggers"` }
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 { LastActiveTime *metav1.Time `json:"lastActiveTime,omitempty"` ExternalMetricNames []string `json:"externalMetricNames,omitempty"` }
ScaledObjectStatus is the status for a ScaledObject resource
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 TriggerAuthentication ¶
type TriggerAuthentication struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TriggerAuthenticationSpec `json:"spec"` }
TriggerAuthentication defines how a trigger can authenticate
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 { PodIdentity AuthPodIdentity `json:"podIdentity"` SecretTargetRef []AuthSecretTargetRef `json:"secretTargetRef"` Env []AuthEnvironment `json:"env"` }
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.