Documentation
¶
Index ¶
- func ForEachManifest(componentName string, action func(manifestName string) error) error
- func LoadCronJobManifest(componentName string) (*batchv1.CronJob, error)
- func LoadDeploymentManifest(componentName string) (*appsv1.Deployment, error)
- func LoadJobManifest(componentName string) (*batchv1.Job, error)
- func LoadManifest(componentName string, fileName string) (client.Object, *schema.GroupVersionKind, error)
- func LoadManifestInto(componentName string, fileName string, into client.Object) (client.Object, *schema.GroupVersionKind, error)
- func LoadManifestTemplated(componentName, fileName string, templateData map[string]string) (client.Object, *schema.GroupVersionKind, error)
- func LoadStatefulSetManifest(componentName string) (*appsv1.StatefulSet, error)
- func LoadStatefulSetManifestTemplated(componentName string, templateData map[string]string) (*appsv1.StatefulSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEachManifest ¶
func LoadCronJobManifest ¶ added in v0.1.56
func LoadDeploymentManifest ¶
func LoadDeploymentManifest(componentName string) (*appsv1.Deployment, error)
func LoadJobManifest ¶ added in v0.1.58
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.