provisioner

package
v0.0.0-...-345bce5 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(provisionerName string, provisioner api.Provisioner, clientset kubernetes.Interface, crdClientSet versioned.Interface, obcInformer informers.ObjectBucketClaimInformer, obInformer informers.ObjectBucketInformer) *obcController

Types

type Provisioner

type Provisioner struct {
	Name        string
	Provisioner api.Provisioner
	// contains filtered or unexported fields
}

Provisioner wraps a custom controller which watches OBCs and manages OB, CMs, and Secrets.

func NewProvisioner

func NewProvisioner(
	cfg *rest.Config,
	provisionerName string,
	provisioner api.Provisioner,
	namespace string,
) (*Provisioner, error)

NewProvisioner should be called by importers of this library to instantiate a new provisioning obcController. This obcController will respond to Add / Update / Delete events by calling the passed-in provisioner's Provisioner and Delete methods. The Provisioner will be restrict to operating only to the namespace given

func (*Provisioner) Run

func (p *Provisioner) Run(stopCh <-chan struct{}) (err error)

Run starts the claim and bucket controllers.

func (*Provisioner) SetLabels

func (p *Provisioner) SetLabels(labels map[string]string) []string

SetLabels allows provisioner author to provide their own resource labels. They will be set on all managed resources by the provisioner (OBC, OB, CM, Secret)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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