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"`
BaseInternalSecretName string `envconfig:"default=dockerregistry-config"`
BaseExternalSecretName string `envconfig:"default=dockerregistry-config-external"`
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) 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) 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
Click to show internal directories.
Click to hide internal directories.