volumetrait

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostPath     = "HostPath"
	StorageClass = "StorageClass"
)

Reconcile error strings.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, _ controller.Args) 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

type VolumeHandler

type VolumeHandler struct {
	ClientSet  *kubernetes.Clientset
	Client     client.Client
	AppsClient clientappv1.AppsV1Interface
	// contains filtered or unexported fields
}

VolumeHandler will watch volume change and delete pvc automatically.

func (*VolumeHandler) Create

Create implements EventHandler

func (*VolumeHandler) Delete

Delete implements EventHandler

func (*VolumeHandler) Generic

Generic implements EventHandler

func (*VolumeHandler) Update

Update implements EventHandler

Jump to

Keyboard shortcuts

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