config

package
v0.0.0-...-4dd5f3c Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterResourceTemplates

type ClusterResourceTemplates struct {
	ConfigMapName  string
	DeploymentName string
	Namespace      string
	Paths          []string
}

func NewClusterResourceTemplates

func NewClusterResourceTemplates(
	configMapName, deploymentName, namespace, dirPath string,
) (*ClusterResourceTemplates, error)

func (*ClusterResourceTemplates) Update

type ClusterResourceTemplatesNotFound

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

func (*ClusterResourceTemplatesNotFound) Error

type Configuration

type Configuration struct {
	ConfigMapName  string
	DeploymentName string
	Namespace      string
	Path           string
}

func NewConfiguration

func NewConfiguration(
	configMapName, deploymentName, namespace, path string,
) (*Configuration, error)

func (*Configuration) Update

func (c *Configuration) Update(k *types.Kustomization) error

type ConfigurationNotFound

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

func (*ConfigurationNotFound) Error

func (e *ConfigurationNotFound) Error() string

type Loader

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

func NewLoader

func NewLoader(opts *LoaderOpts) (*Loader, error)

func (*Loader) Transform

func (cl *Loader) Transform(data []byte) ([]byte, error)

type LoaderOpts

type LoaderOpts struct {
	ConfigurationConfigMapName            string
	ClusterResourceTemplatesConfigMapName string
	DeploymentName                        string
	Namespace                             string
	DirPath                               string
}

Jump to

Keyboard shortcuts

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