chart

package
v0.0.0-...-1f60567 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FullnameOverride = "dockerregistry"
)

Variables

This section is empty.

Functions

func CheckCRDOrphanResources

func CheckCRDOrphanResources(config *Config) error

func Install

func Install(config *Config, customFlags map[string]interface{}) error

func IsPVC

func IsPVC(objKind schema.GroupVersionKind) bool

func NewInMemoryManifestCache

func NewInMemoryManifestCache() *inMemoryManifestCache

NewInMemoryManifestCache returns a new instance of inMemoryManifestCache.

func NewSecretManifestCache

func NewSecretManifestCache(client client.Client) *secretManifestCache

NewSecretManifestCache - returns a new instance of SecretManifestCache.

func Uninstall

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

func UninstallSecrets

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

func Verify

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

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 DockerRegistrySpecManifest

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

type FilterFunc

type FilterFunc func(unstructured.Unstructured) bool

type FlagsBuilder

type FlagsBuilder interface {
	Build() map[string]interface{}
	WithFullname(fullname string) *flagsBuilder
	WithRegistryCredentials(username string, password string) *flagsBuilder
	WithRegistryHttpSecret(httpSecret string) *flagsBuilder
	WithServicePort(servicePort int64) *flagsBuilder
	WithVirtualService(host, gateway string) *flagsBuilder
	WithNodePort(nodePort int64) *flagsBuilder
	WithPVCDisabled() *flagsBuilder
	WithAzure(secret *v1alpha1.StorageAzureSecrets) *flagsBuilder
	WithS3(config *v1alpha1.StorageS3, secret *v1alpha1.StorageS3Secrets) *flagsBuilder
	WithFilesystem() *flagsBuilder
	WithGCS(config *v1alpha1.StorageGCS, secret *v1alpha1.StorageGCSSecrets) *flagsBuilder
}

func NewFlagsBuilder

func NewFlagsBuilder() FlagsBuilder

type Release

type Release struct {
	ChartPath string
	Name      string
	Namespace string
}

Jump to

Keyboard shortcuts

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