controllers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DurosFinalizerName = "storage.metal-stack.io/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DurosReconciler

type DurosReconciler struct {
	client.Client
	Shoot           client.Client
	DiscoveryClient *discovery.DiscoveryClient
	Log             logr.Logger
	Namespace       string
	DurosClient     durosv2.DurosAPIClient
	Endpoints       duros.EPs
	AdminKey        []byte
}

DurosReconciler reconciles a Duros object

func (*DurosReconciler) Reconcile

func (r *DurosReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile the Duros CRD +kubebuilder:rbac:groups=storage.metal-stack.io,resources=duros,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=storage.metal-stack.io,resources=duros/status,verbs=get;update;patch +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=storage.k8s.io,resources=csidrivers;csinodes;volumeattachments;storageclasses,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=policy,resources=podsecuritypolicies,verbs=get;list;watch;create;update;patch;delete;use +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles;clusterrolebindings,verbs=get;list;watch;create;update;patch;delete +kubebuilder:apps:groups=policy,resources=statefulsets;daemonsets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:apps:groups="",resources=configmaps;events;secrets;serviceaccounts;nodes;persistentvolumes;persistentvolumeclaims;persistentvolumeclaims/status;pods,verbs=get;list;watch;create;update;patch;delete

func (*DurosReconciler) SetupWithManager

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

SetupWithManager boilerplate to setup the Reconciler

Jump to

Keyboard shortcuts

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