assets

package
v0.1.83 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachManifest

func ForEachManifest(componentName string, action func(manifestName string) error) error

func LoadCronJobManifest added in v0.1.56

func LoadCronJobManifest(componentName string) (*batchv1.CronJob, error)

func LoadDeploymentManifest

func LoadDeploymentManifest(componentName string) (*appsv1.Deployment, error)

func LoadJobManifest added in v0.1.58

func LoadJobManifest(componentName string) (*batchv1.Job, error)

func LoadManifest

func LoadManifest(componentName string, fileName string) (client.Object, *schema.GroupVersionKind, error)

LoadManifest decodes the manifest data and load it into a new object.

func LoadManifestInto added in v0.1.50

func LoadManifestInto(componentName string, fileName string, into client.Object) (client.Object, *schema.GroupVersionKind, error)

LoadManifest decodes the manifest data and load it into the provided 'into' object. If 'into' is nil, it will generate and return a new object.

func LoadManifestTemplated added in v0.1.80

func LoadManifestTemplated(componentName, fileName string, templateData map[string]string) (client.Object, *schema.GroupVersionKind, error)

LoadManifestTemplated reads the raw asset bytes, renders them as a Go text/template with the given templateData, then decodes the resulting YAML. If templateData is nil, it falls through to the standard LoadManifest path.

Safety: templateData values are expected to be validated at the API level (e.g., DNS1123 shard names via CEL). This function uses text/template rather than html/template because the output is YAML, not HTML. Callers must not pass unvalidated user input as template data.

func LoadStatefulSetManifest

func LoadStatefulSetManifest(componentName string) (*appsv1.StatefulSet, error)

func LoadStatefulSetManifestTemplated added in v0.1.80

func LoadStatefulSetManifestTemplated(componentName string, templateData map[string]string) (*appsv1.StatefulSet, error)

LoadStatefulSetManifestTemplated loads a statefulset manifest with template rendering.

Types

This section is empty.

Jump to

Keyboard shortcuts

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