service

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicService

type DynamicService struct {
	// contains filtered or unexported fields
}

func NewDynamicService

func NewDynamicService(config DynamicServiceConfig) *DynamicService

func (*DynamicService) Render

func (s *DynamicService) Render(in RenderInput) (configmap *corev1.ConfigMap, secret *corev1.Secret, err error)

func (*DynamicService) RenderRaw

func (s *DynamicService) RenderRaw(dir, schema string, primitiveVariables []string) (configmapData string, secretData string, err error)

type DynamicServiceConfig

type DynamicServiceConfig struct {
	Log logr.Logger
}

type InvalidConfigError

type InvalidConfigError struct {
	// contains filtered or unexported fields
}

func (*InvalidConfigError) Error

func (e *InvalidConfigError) Error() string

func (*InvalidConfigError) Is

func (e *InvalidConfigError) Is(target error) bool

type RenderInput

type RenderInput struct {
	// Root directory of the config repository.
	Dir string

	// Path to the schema file.
	Schema string

	// List of variables for the schema in primitive format of 'name=value'.
	Variables []string

	// The name of the generated ConfigMap and Secret.
	Name string

	// The namespace of the generated ConfigMap and Secret.
	Namespace string

	// Additional annotations to be set on the generated ConfigMap and Secret.
	ExtraAnnotations map[string]string

	// Additional labels to be set on the generated ConfigMap and Secret.
	ExtraLabels map[string]string

	// The key to store the rendered data in the generated ConfigMap
	ConfigMapDataKey string

	// The key to store the rendered data in the generated Secret
	SecretDataKey string
}

Jump to

Keyboard shortcuts

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