deployer

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeployerNameAnnotation = "function.knative.dev/deployer"

	// Dapr constants
	DaprEnabled          = "true"
	DaprMetricsPort      = "9092"
	DaprEnableAPILogging = "true"
)

Variables

This section is empty.

Functions

func GenerateCommonAnnotations

func GenerateCommonAnnotations(f fn.Function, decorator DeployDecorator, daprInstalled bool, deployerName string) map[string]string

GenerateCommonAnnotations creates annotations common to both Knative and K8s deployments

func GenerateCommonLabels

func GenerateCommonLabels(f fn.Function, decorator DeployDecorator) (map[string]string, error)

GenerateCommonLabels creates labels common to both Knative and K8s deployments

func GenerateDaprAnnotations

func GenerateDaprAnnotations(appID string) map[string]string

GenerateDaprAnnotations generates annotations for Dapr support These annotations, if included and Dapr control plane is installed in the target cluster, will result in a sidecar exposing the Dapr HTTP API on localhost:3500 and metrics on 9092

Types

type DeployDecorator

type DeployDecorator interface {
	UpdateAnnotations(fn.Function, map[string]string) map[string]string
	UpdateLabels(fn.Function, map[string]string) map[string]string
}

DeployDecorator is an interface for customizing deployment metadata

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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