resources

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Package resources provides resource factories for the mutations-and-gating example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseConfigMap

func BaseConfigMap(owner *app.ExampleApp) *corev1.ConfigMap

BaseConfigMap returns the desired-state ConfigMap for the given owner. The baseline includes the core server configuration in app.yaml.

func BaseDeployment

func BaseDeployment(owner *app.ExampleApp) *appsv1.Deployment

BaseDeployment returns the desired-state Deployment for the given owner.

The baseline represents the latest version (v2+): container named "app" with both an HTTP and a health port. Backward compatibility mutations roll this back for older versions.

func NewConfigMapResource

func NewConfigMapResource(owner *app.ExampleApp) (component.Resource, error)

NewConfigMapResource constructs a ConfigMap with server and metrics config. The metrics section is boolean-gated at the mutation level, while the entire ConfigMap can be gated at the resource level by the controller.

func NewDeploymentResource

func NewDeploymentResource(owner *app.ExampleApp) (component.Resource, error)

NewDeploymentResource constructs a Deployment with version-gated and boolean-gated mutations.

Registration order matters: DebugLogging targets the baseline container name ("app") via ContainerNamed, so it must come before BackwardCompatV1Container which renames "app" to "server" for older versions. TracingSidecar uses AllContainers and is order-insensitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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