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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.