chart

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustDockerRegToClusterPVCSize added in v0.3.0

func AdjustDockerRegToClusterPVCSize(ctx context.Context, c client.Client, obj unstructured.Unstructured) (unstructured.Unstructured, error)

func AppendContainersFlags added in v0.0.3

func AppendContainersFlags(flags map[string]interface{}, publisherURL, traceCollectorURL, CPUUtilizationPercentage, requeueDuration, buildExecutorArgs, maxSimultaneousJobs, healthzLivenessTimeout, requestBodyLimitMb, timeoutSec string) map[string]interface{}

func AppendDefaultPresetFlags added in v0.3.0

func AppendDefaultPresetFlags(flags map[string]interface{}, defaultBuildJobPreset, defaultRuntimePodPreset string) map[string]interface{}

func AppendExistingInternalRegistryCredentialsFlags added in v0.3.0

func AppendExistingInternalRegistryCredentialsFlags(flags map[string]interface{}, username, password, registryHttpSecret string) map[string]interface{}

func AppendExternalRegistryFlags added in v0.2.0

func AppendExternalRegistryFlags(flags map[string]interface{}, enableInternal bool, username, password, registryAddress, serverAddress string) map[string]interface{}

func AppendInternalRegistryFlags added in v0.2.0

func AppendInternalRegistryFlags(flags map[string]interface{}, enableInternal bool) map[string]interface{}

func AppendK3dRegistryFlags added in v0.2.0

func AppendK3dRegistryFlags(flags map[string]interface{}, enableInternal bool, registryAddress, serverAddress string) map[string]interface{}

func AppendNodePortFlag added in v0.2.0

func AppendNodePortFlag(flags map[string]interface{}, nodePort int64) map[string]interface{}

AppendNodePortFlag nodePort must be int64, because when we compare old Flags with new flags, by default all integers are int64

func CheckCRDOrphanResources

func CheckCRDOrphanResources(config *Config) error

func EmptyFlags added in v0.2.0

func EmptyFlags() map[string]interface{}

func Install

func Install(config *Config) error

func IsPVC added in v0.3.0

func IsPVC(objKind schema.GroupVersionKind) bool

func NewInMemoryManifestCache added in v0.1.0

func NewInMemoryManifestCache() *inMemoryManifestCache

NewInMemoryManifestCache returns a new instance of inMemoryManifestCache.

func NewSecretManifestCache added in v0.1.0

func NewSecretManifestCache(client client.Client) *secretManifestCache

NewSecretManifestCache - returns a new instance of SecretManifestCache.

func Uninstall

func Uninstall(config *Config, filterFunc ...FilterFunc) error

func UninstallSecrets added in v1.0.1

func UninstallSecrets(config *Config, filterFunc ...FilterFunc) (error, bool)

func Verify

func Verify(config *Config) (bool, error)

func WithoutCRDFilter

func WithoutCRDFilter(u unstructured.Unstructured) bool

Types

type Cluster

type Cluster struct {
	Client client.Client
	Config *rest.Config
}

type Config

type Config struct {
	Ctx        context.Context
	Log        *zap.SugaredLogger
	Cache      ManifestCache
	CacheKey   types.NamespacedName
	ManagerUID string
	Cluster    Cluster
	Release    Release
}

type FilterFunc

type FilterFunc func(unstructured.Unstructured) bool

type Release

type Release struct {
	Flags     map[string]interface{}
	ChartPath string
	Name      string
	Namespace string
}

type ServerlessSpecManifest

type ServerlessSpecManifest struct {
	ManagerUID  string
	CustomFlags map[string]interface{}
	Manifest    string
}

Jump to

Keyboard shortcuts

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