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: 8 Imported by: 0

Documentation

Overview

Package resources provides resource factories for the extraction-and-guards 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 representing database connection config.

func BaseSecret

func BaseSecret(owner *app.ExampleApp) *corev1.Secret

BaseSecret returns the desired-state Secret representing database credentials.

func NewConfigMapResource

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

NewConfigMapResource constructs a ConfigMap for database config. After reconciliation, the data extractor captures the db-host value into the provided pointer so downstream resources can use it.

func NewSecretResource

func NewSecretResource(owner *app.ExampleApp, dbHost *string) (component.Resource, error)

NewSecretResource constructs a Secret for database credentials. A guard blocks this resource until the db-host value has been extracted from the preceding ConfigMap.

Types

This section is empty.

Jump to

Keyboard shortcuts

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