controllers

package
v0.0.0-...-ff642e8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Auth     string `json:"auth"`
}

type BucketReconciler

type BucketReconciler struct {
	CoreClient kubernetes.Interface
	Client     *client.MinioV1alpha1

	Original *miniov1alpha1.MinIOBucket
	Obj      *miniov1alpha1.MinIOBucket

	MinIOInstances []*miniocontrollerv1beta1.MinIOInstance
	Secret         *corev1.Secret
	MinIOClient    *minio.Client
	PortForwarder  *portforward.PortForwarder
	// contains filtered or unexported fields
}

func NewBucketReconciler

func NewBucketReconciler(
	coreClient kubernetes.Interface,
	client *client.MinioV1alpha1,
	config *rest.Config,
	serviceLister corev1listers.ServiceLister,
	podLister corev1listers.PodLister,
	secretLister corev1listers.SecretLister,
	instanceLister *client.MiniocontrollerV1beta1MinIOInstanceLister,
	runOutsideCluster bool,
	transport http.RoundTripper,
	log *zap.Logger,
) *BucketReconciler

func (*BucketReconciler) Finalize

func (r *BucketReconciler) Finalize(ctx context.Context, obj runtime.Object) error

func (*BucketReconciler) Reconcile

func (r *BucketReconciler) Reconcile(ctx context.Context, obj runtime.Object) error

type ConsulBackupController

type ConsulBackupController struct {
	*controllerutil.ControllerBase
	// contains filtered or unexported fields
}

func NewConsulBackupController

func NewConsulBackupController(
	coreSharedInformerFactory kubeinformers.SharedInformerFactory,
	factory *client.InformerFactory,
	coreClient kubernetes.Interface,
	apiClient *client.Set,
	config *rest.Config,
	runOutsideCluster bool,
) (*ConsulBackupController, error)

func (*ConsulBackupController) Finalize

func (b *ConsulBackupController) Finalize(ctx context.Context, obj runtime.Object) error

func (*ConsulBackupController) GetObject

func (b *ConsulBackupController) GetObject(key string) (runtime.Object, error)

func (*ConsulBackupController) ObjectToKeys

func (b *ConsulBackupController) ObjectToKeys(obj interface{}) []string

func (*ConsulBackupController) Reconcile

func (b *ConsulBackupController) Reconcile(ctx context.Context, obj runtime.Object) error

func (*ConsulBackupController) UpdateObject

func (b *ConsulBackupController) UpdateObject(ctx context.Context, obj runtime.Object) (runtime.Object, error)

type DockerConfig

type DockerConfig struct {
	Auths map[string]Auth `json:"auths"`
}

func NewDockerConfig

func NewDockerConfig(registry, username, password string) *DockerConfig

type GrafanaUserController

type GrafanaUserController struct {
	*controllerutil.ControllerBase
	// contains filtered or unexported fields
}

func NewGrafanaUserController

func NewGrafanaUserController(
	coreSharedInformerFactory kubeinformers.SharedInformerFactory,
	factory *client.InformerFactory,
	coreClient kubernetes.Interface,
	apiClient *client.Set,
) (*GrafanaUserController, error)

func (*GrafanaUserController) Finalize

func (u *GrafanaUserController) Finalize(ctx context.Context, obj runtime.Object) error

func (*GrafanaUserController) GetObject

func (u *GrafanaUserController) GetObject(key string) (runtime.Object, error)

func (*GrafanaUserController) ObjectToKeys

func (u *GrafanaUserController) ObjectToKeys(obj interface{}) []string

func (*GrafanaUserController) Reconcile

func (u *GrafanaUserController) Reconcile(ctx context.Context, obj runtime.Object) error

func (*GrafanaUserController) UpdateObject

func (u *GrafanaUserController) UpdateObject(ctx context.Context, obj runtime.Object) (runtime.Object, error)

type HarborProjectController

type HarborProjectController struct {
	*controllerutil.ControllerBase
	// contains filtered or unexported fields
}

func NewHarborProjectController

func NewHarborProjectController(
	ctx context.Context,
	coreClient kubernetes.Interface,
	apiClient *client.Set,
	cfg *rest.Config,
	factory *client.InformerFactory,
	harborNamespace,
	harborName,
	adminSecretName,
	coreConfigMapName string,
	runOutsideCluster bool,
) (*HarborProjectController, error)

func (*HarborProjectController) Finalize

func (*HarborProjectController) GetObject

func (c *HarborProjectController) GetObject(key string) (runtime.Object, error)

func (*HarborProjectController) ObjectToKeys

func (c *HarborProjectController) ObjectToKeys(obj interface{}) []string

func (*HarborProjectController) Reconcile

func (c *HarborProjectController) Reconcile(ctx context.Context, obj runtime.Object) error

func (*HarborProjectController) UpdateObject

type HarborRobotAccountController

type HarborRobotAccountController struct {
	*controllerutil.ControllerBase
	// contains filtered or unexported fields
}

func NewHarborRobotAccountController

func NewHarborRobotAccountController(
	ctx context.Context,
	coreClient kubernetes.Interface,
	apiClient *client.Set,
	cfg *rest.Config,
	factory *client.InformerFactory,
	harborNamespace,
	harborName,
	adminSecretName string,
	runOutsideCluster bool,
) (*HarborRobotAccountController, error)

func (*HarborRobotAccountController) Finalize

func (*HarborRobotAccountController) GetObject

func (*HarborRobotAccountController) ObjectToKeys

func (c *HarborRobotAccountController) ObjectToKeys(obj interface{}) []string

func (*HarborRobotAccountController) Reconcile

func (*HarborRobotAccountController) UpdateObject

type MinIOBucketController

type MinIOBucketController struct {
	*controllerutil.ControllerBase
	// contains filtered or unexported fields
}

func NewMinIOBucketController

func NewMinIOBucketController(
	coreClient kubernetes.Interface,
	apiClient *client.Set,
	cfg *rest.Config,
	coreSharedInformerFactory kubeinformers.SharedInformerFactory,
	factory *client.InformerFactory,
	runOutsideCluster bool,
) (*MinIOBucketController, error)

func (*MinIOBucketController) Finalize

func (c *MinIOBucketController) Finalize(ctx context.Context, obj runtime.Object) error

func (*MinIOBucketController) GetObject

func (c *MinIOBucketController) GetObject(key string) (runtime.Object, error)

func (*MinIOBucketController) NewReconciler

func (c *MinIOBucketController) NewReconciler(log *zap.Logger) controllerutil.Reconciler

func (*MinIOBucketController) ObjectToKeys

func (c *MinIOBucketController) ObjectToKeys(obj interface{}) []string

func (*MinIOBucketController) Reconcile

func (c *MinIOBucketController) Reconcile(ctx context.Context, obj runtime.Object) error

func (*MinIOBucketController) UpdateObject

func (c *MinIOBucketController) UpdateObject(ctx context.Context, obj runtime.Object) (runtime.Object, error)

type MinIOUserController

type MinIOUserController struct {
	*controllerutil.ControllerBase
	// contains filtered or unexported fields
}

func NewMinIOUserController

func NewMinIOUserController(
	coreClient kubernetes.Interface,
	apiClient *client.Set,
	cfg *rest.Config,
	coreSharedInformerFactory kubeinformers.SharedInformerFactory,
	factory *client.InformerFactory,
	vaultClient *vault.Client,
	runOutsideCluster bool,
) (*MinIOUserController, error)

func (*MinIOUserController) Finalize

func (c *MinIOUserController) Finalize(ctx context.Context, obj runtime.Object) error

func (*MinIOUserController) GetObject

func (c *MinIOUserController) GetObject(key string) (runtime.Object, error)

func (*MinIOUserController) ObjectToKeys

func (c *MinIOUserController) ObjectToKeys(obj interface{}) []string

func (*MinIOUserController) Reconcile

func (c *MinIOUserController) Reconcile(ctx context.Context, obj runtime.Object) error

func (*MinIOUserController) UpdateObject

func (c *MinIOUserController) UpdateObject(ctx context.Context, obj runtime.Object) (runtime.Object, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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