volumetrait

package
v0.1.1-0...-82ae068 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, log logging.Logger) error

Setup adds a controller that reconciles ContainerizedWorkload.

Types

type Reconcile

type Reconcile struct {
	client.Client
	discovery.DiscoveryClient

	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

Reconcile reconciles a VolumeTrait object

func (*Reconcile) Reconcile

func (r *Reconcile) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile to reconcile volume trait. +kubebuilder:rbac:groups=core.oam.dev,resources=volumetraits,verbs=get;list;watch +kubebuilder:rbac:groups=core.oam.dev,resources=volumetraits/status,verbs=get;update;patch +kubebuilder:rbac:groups=core.oam.dev,resources=containerizedworkloads,verbs=get;list; +kubebuilder:rbac:groups=core.oam.dev,resources=containerizedworkloads/status,verbs=get; +kubebuilder:rbac:groups=core.oam.dev,resources=workloaddefinition,verbs=get;list; +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;update;patch;delete +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;update;patch;delete +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete

func (*Reconcile) SetupWithManager

func (r *Reconcile) SetupWithManager(mgr ctrl.Manager, log logging.Logger) error

SetupWithManager to setup k8s controller.

type VolumeHandler

type VolumeHandler struct {
	Client     client.Client
	AppsClient clientappv1.AppsV1Interface
	Logger     logging.Logger
}

VolumeHandler will watch volume change and delete pvc automatically.

func (*VolumeHandler) Create

func (*VolumeHandler) Delete

Delete implements EventHandler

func (*VolumeHandler) Generic

Generic implements EventHandler

func (*VolumeHandler) Update

Jump to

Keyboard shortcuts

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