Documentation ¶
Overview ¶
Package client to manage a rook client.
Index ¶
Constants ¶
View Source
const ClientSecretName = "-client-key"
Variables ¶
View Source
var ClientResource = opkit.CustomResource{ Name: "cephclient", Plural: "cephclients", Group: cephv1.CustomResourceGroup, Version: cephv1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(cephv1.CephClient{}).Name(), }
ClientResource represents the Client custom resource object
Functions ¶
func ValidateClient ¶
func ValidateClient(context *clusterd.Context, p *cephv1.CephClient) error
Validate the client arguments
func ValidateClientSpec ¶
ValidateClientSpec checks if caps were passed for new or updated client
Types ¶
type ClientController ¶
type ClientController struct {
// contains filtered or unexported fields
}
ClientController represents a controller object for client custom resources
func NewClientController ¶
func NewClientController(context *clusterd.Context, namespace string) *ClientController
NewClientController create controller for watching client custom resources created
func (*ClientController) ParentClusterChanged ¶
func (c *ClientController) ParentClusterChanged(cluster cephv1.ClusterSpec, clusterInfo *cephconfig.ClusterInfo)
func (*ClientController) StartWatch ¶
func (c *ClientController) StartWatch(stopCh chan struct{}) error
Watch watches for instances of Client custom resources and acts on them
Click to show internal directories.
Click to hide internal directories.