Documentation
¶
Index ¶
- Constants
- func AdjustDockerRegToClusterPVCSize(ctx context.Context, c client.Client, obj unstructured.Unstructured) (unstructured.Unstructured, error)
- func CheckCRDOrphanResources(config *Config) error
- func Install(config *Config, customFlags map[string]interface{}) error
- func IsPVC(objKind schema.GroupVersionKind) bool
- func NewInMemoryManifestCache() *inMemoryManifestCache
- func NewSecretManifestCache(client client.Client) *secretManifestCache
- func Uninstall(config *Config, filterFunc ...FilterFunc) error
- func UninstallSecrets(config *Config, filterFunc ...FilterFunc) (error, bool)
- func Verify(config *Config) (bool, error)
- type Cluster
- type Config
- type DockerRegistrySpecManifest
- type FilterFunc
- type FlagsBuilder
- type ManifestCache
- type Release
Constants ¶
View Source
const (
FullnameOverride = "dockerregistry"
)
Variables ¶
This section is empty.
Functions ¶
func AdjustDockerRegToClusterPVCSize ¶
func AdjustDockerRegToClusterPVCSize(ctx context.Context, c client.Client, obj unstructured.Unstructured) (unstructured.Unstructured, error)
func CheckCRDOrphanResources ¶
func IsPVC ¶
func IsPVC(objKind schema.GroupVersionKind) bool
func NewInMemoryManifestCache ¶
func NewInMemoryManifestCache() *inMemoryManifestCache
NewInMemoryManifestCache returns a new instance of inMemoryManifestCache.
func NewSecretManifestCache ¶
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)
Types ¶
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 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 WithDeleteEnabled(bool) *flagsBuilder WithPVC(config *v1alpha1.StoragePVC) *flagsBuilder WithGCS(config *v1alpha1.StorageGCS, secret *v1alpha1.StorageGCSSecrets) *flagsBuilder }
func NewFlagsBuilder ¶
func NewFlagsBuilder() FlagsBuilder
type ManifestCache ¶
Click to show internal directories.
Click to hide internal directories.