deployer

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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