kubernetes

package
v0.0.0-...-f9f3076 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FunctionManagedByLabel = "dockerregistry.kyma-project.io/managed-by"

	FunctionResourceLabelUserValue = "user"
)
View Source
const (
	ConfigLabel           = "dockerregistry.kyma-project.io/config"
	CredentialsLabelValue = "credentials"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseNamespace                 string        `envconfig:"default=kyma-system"`
	BaseDefaultSecretName         string        `envconfig:"default=dockerregistry-config"`
	ExcludedNamespaces            []string      `envconfig:"default=kyma-system"`
	ConfigMapRequeueDuration      time.Duration `envconfig:"default=1m"`
	SecretRequeueDuration         time.Duration `envconfig:"default=1m"`
	ServiceAccountRequeueDuration time.Duration `envconfig:"default=1m"`
}

type NamespaceReconciler

type NamespaceReconciler struct {
	Log *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewNamespace

func NewNamespace(client client.Client, log *zap.SugaredLogger, config Config,
	secretSvc SecretService) *NamespaceReconciler

func (*NamespaceReconciler) Reconcile

func (r *NamespaceReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*NamespaceReconciler) SetupWithManager

func (r *NamespaceReconciler) SetupWithManager(mgr ctrl.Manager) error

type SecretReconciler

type SecretReconciler struct {
	Log *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewSecret

func NewSecret(client client.Client, log *zap.SugaredLogger, config Config, secretSvc SecretService) *SecretReconciler

func (*SecretReconciler) Reconcile

func (r *SecretReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*SecretReconciler) SetupWithManager

func (r *SecretReconciler) SetupWithManager(mgr ctrl.Manager) error

type SecretService

type SecretService interface {
	IsBase(secret *corev1.Secret) bool
	GetBase(ctx context.Context) (*corev1.Secret, error)
	UpdateNamespace(ctx context.Context, logger *zap.SugaredLogger, namespace string, baseInstance *corev1.Secret) error
	HandleFinalizer(ctx context.Context, logger *zap.SugaredLogger, secret *corev1.Secret, namespaces []string) error
}

func NewSecretService

func NewSecretService(client resource.Client, config Config) SecretService

Jump to

Keyboard shortcuts

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