utils

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFluxVersion string = "v2.2.3"

Variables

This section is empty.

Functions

func GenPatchFilePaths added in v0.25.0

func GenPatchFilePaths(basePath string, patchNames []string) map[string]string

func GenerateKustomizationYaml added in v0.25.0

func GenerateKustomizationYaml(paths []string, patches []string) (string, error)

func GetArgValue added in v0.24.0

func GetArgValue(container corev1.Container, name string) (string, error)

func GetContainer added in v0.24.0

func GetContainer(containers []corev1.Container, name string) (corev1.Container, error)

func GetPatchBases added in v0.25.0

func GetPatchBases(patchNames []string) []string

func Map added in v0.25.0

func Map(vs []string, f func(string) string) []string

func NewScheme

func NewScheme() *apiruntime.Scheme

Types

type KustomizationValues added in v0.25.0

type KustomizationValues struct {
	Paths   []string
	Patches []string
}

type RESTClientGetter

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

func NewRestClientGetter

func NewRestClientGetter(clientconfig clientcmd.ClientConfig) *RESTClientGetter

func (*RESTClientGetter) ToDiscoveryClient

func (r *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*RESTClientGetter) ToRESTConfig

func (r *RESTClientGetter) ToRESTConfig() (*rest.Config, error)

func (*RESTClientGetter) ToRESTMapper

func (r *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)

func (*RESTClientGetter) ToRawKubeConfigLoader

func (r *RESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig

Jump to

Keyboard shortcuts

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