objectuser

package
v0.0.0-...-6f3db3d Latest Latest
Warning

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

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

Documentation

Overview

Package objectuser to manage a rook object store user.

Index

Constants

This section is empty.

Variables

View Source
var ObjectStoreUserResource = k8sutil.CustomResource{
	Name:    "cephobjectstoreuser",
	Plural:  "cephobjectstoreusers",
	Group:   cephv1.CustomResourceGroup,
	Version: cephv1.Version,
	Kind:    reflect.TypeOf(cephv1.CephObjectStoreUser{}).Name(),
}

ObjectStoreUserResource represents the object store user custom resource

Functions

func ValidateUser

func ValidateUser(context *clusterd.Context, u *cephv1.CephObjectStoreUser) error

ValidateUser validates the user arguments

Types

type ObjectStoreUserController

type ObjectStoreUserController struct {
	// contains filtered or unexported fields
}

ObjectStoreUserController represents a controller object for object store user custom resources

func NewObjectStoreUserController

func NewObjectStoreUserController(context *clusterd.Context, clusterSpec *cephv1.ClusterSpec, namespace string, ownerRef metav1.OwnerReference) *ObjectStoreUserController

NewObjectStoreUserController create controller for watching object store user custom resources created

func (*ObjectStoreUserController) ParentClusterChanged

func (c *ObjectStoreUserController) ParentClusterChanged(cluster cephv1.ClusterSpec, clusterInfo *cephconfig.ClusterInfo, isUpgrade bool)

ParentClusterChanged determines wether or not a CR update has been sent

func (*ObjectStoreUserController) StartWatch

func (c *ObjectStoreUserController) StartWatch(stopCh chan struct{})

StartWatch watches for instances of ObjectStoreUser custom resources and acts on them

Jump to

Keyboard shortcuts

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