Documentation
¶
Overview ¶
Package features provides example feature mutations for the deployment primitive.
Index ¶
- func CustomConvergeStatus() ...
- func CustomGraceStatus() func(*appsv1.Deployment) (concepts.GraceStatusWithReason, error)
- func CustomSuspendMutation() func(*deployment.Mutator) error
- func MetricsFeature(enabled bool, port int) deployment.Mutation
- func TracingFeature(enabled bool) deployment.Mutation
- func VersionFeature(version string) deployment.Mutation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomConvergeStatus ¶
func CustomConvergeStatus() func(concepts.ConvergingOperation, *appsv1.Deployment) (concepts.AliveStatusWithReason, error)
CustomConvergeStatus demonstrates a custom handler for deployment readiness.
func CustomGraceStatus ¶
func CustomGraceStatus() func(*appsv1.Deployment) (concepts.GraceStatusWithReason, error)
CustomGraceStatus demonstrates a custom handler for health when not ready.
func CustomSuspendMutation ¶
func CustomSuspendMutation() func(*deployment.Mutator) error
CustomSuspendMutation demonstrates a custom mutation when suspended.
func MetricsFeature ¶
func MetricsFeature(enabled bool, port int) deployment.Mutation
MetricsFeature adds an exporter sidecar and some annotations.
func TracingFeature ¶
func TracingFeature(enabled bool) deployment.Mutation
TracingFeature adds a Jaeger sidecar to the deployment.
func VersionFeature ¶
func VersionFeature(version string) deployment.Mutation
VersionFeature sets the image version and a label.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.