Documentation
¶
Index ¶
- Constants
- func GenerateCommonAnnotations(f fn.Function, decorator DeployDecorator, daprInstalled bool, ...) map[string]string
- func GenerateCommonLabels(f fn.Function, decorator DeployDecorator) (map[string]string, error)
- func GenerateDaprAnnotations(appID string) map[string]string
- type DeployDecorator
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 ¶
GenerateCommonLabels creates labels common to both Knative and K8s deployments
func GenerateDaprAnnotations ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.