duck

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 18

Documentation

Overview

Package duck contains Cloud Run Events API versions for duck components

Package duck contains Cloud Run Events API versions for duck components

Package duck contains Cloud Run Events API versions for duck components

Index

Constants

View Source
const (
	GroupName = "duck.cloud.google.com"

	// Autoscaling refers to the autoscaling group.
	Autoscaling = "autoscaling.knative.dev"

	// AutoscalingClassAnnotation is the annotation for the explicit class of
	// scaler that a particular resource has opted into.
	AutoscalingClassAnnotation = Autoscaling + "/class"
	// ClusterNameAnnotation is the annotation for the cluster Name.
	ClusterNameAnnotation = "cluster-name"

	// AutoscalingMinScaleAnnotation is the annotation to specify the minimum number of pods to scale to.
	AutoscalingMinScaleAnnotation = Autoscaling + "/minScale"
	// AutoscalingMaxScaleAnnotation is the annotation to specify the maximum number of pods to scale to.
	AutoscalingMaxScaleAnnotation = Autoscaling + "/maxScale"

	// KEDA is Keda autoscaler.
	KEDA = "keda.autoscaling.knative.dev"

	// KedaAutoscalingPollingIntervalAnnotation is the annotation that refers to the interval in seconds Keda
	// uses to poll metrics in order to inform its scaling decisions.
	KedaAutoscalingPollingIntervalAnnotation = KEDA + "/pollingInterval"
	// KedaAutoscalingCooldownPeriodAnnotation is the annotation that refers to the period Keda waits until it
	// scales a Deployment down.
	KedaAutoscalingCooldownPeriodAnnotation = KEDA + "/cooldownPeriod"
	// KedaAutoscalingSubscriptionSizeAnnotation is the annotation that refers to the size of unacked messages in a
	// Pub/Sub subscription that Keda uses in order to decide when and by how much to scale out.
	KedaAutoscalingSubscriptionSizeAnnotation = KEDA + "/subscriptionSize"

	// defaultSecretName is the default secret name for the controller
	DefaultSecretName = "google-cloud-key"
)

Variables

This section is empty.

Functions

func CheckImmutableAutoscalingClassAnnotations added in v0.17.0

func CheckImmutableAutoscalingClassAnnotations(current *metav1.ObjectMeta, original *metav1.ObjectMeta, errs *apis.FieldError) *apis.FieldError

CheckImmutableAutoscalingClassAnnotations checks AutoscalingClassAnnotation Annotations are immutable.

func CheckImmutableClusterNameAnnotation added in v0.16.0

func CheckImmutableClusterNameAnnotation(current *metav1.ObjectMeta, original *metav1.ObjectMeta, errs *apis.FieldError) *apis.FieldError

CheckImmutableClusterNameAnnotation checks non-empty cluster-name annotation is immutable.

func SetAutoscalingAnnotationsDefaults added in v0.16.0

func SetAutoscalingAnnotationsDefaults(ctx context.Context, obj *metav1.ObjectMeta)

func SetClusterNameAnnotation added in v0.16.0

func SetClusterNameAnnotation(obj *metav1.ObjectMeta, client metadataClient.Client)

SetClusterNameAnnotation sets the cluster-name annotation when running on GKE or GCE.

func ValidateAutoscalingAnnotations added in v0.16.0

func ValidateAutoscalingAnnotations(ctx context.Context, annotations map[string]string, errs *apis.FieldError) *apis.FieldError

ValidateAutoscalingAnnotations validates the autoscaling annotations. The class ensures that we reconcile using the corresponding controller.

func ValidateCredential added in v0.17.0

func ValidateCredential(secret *corev1.SecretKeySelector, kServiceAccountName string) *apis.FieldError

ValidateCredential checks secret and service account.

Types

This section is empty.

Directories

Path Synopsis
+k8s:deepcopy-gen=package +groupName=duck.cloud.google.com
+k8s:deepcopy-gen=package +groupName=duck.cloud.google.com
+k8s:deepcopy-gen=package +groupName=duck.cloud.google.com
+k8s:deepcopy-gen=package +groupName=duck.cloud.google.com
+k8s:deepcopy-gen=package +groupName=duck.cloud.google.com
+k8s:deepcopy-gen=package +groupName=duck.cloud.google.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL