Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller to manage the DgraphCluster custom resource created in the Kubernetes cluster.
Controller type uses bits and pieces from here: https://github.com/kubernetes/sample-controller/
func NewController ¶
func NewController(k8sClient kubernetes.Interface, dgraphClient versioned.Interface, dgraphClusterInformer dgraphinformer.DgraphClusterInformer, k8sInformerFactory k8sinformers.SharedInformerFactory) *Controller
NewController returns a new DgraphCluster controller.
func (*Controller) Run ¶
func (dc *Controller) Run(ctx context.Context)
Run runs the actual underlying DgraphCluster controller.
func (*Controller) UpdateDgraphCluster ¶
func (dc *Controller) UpdateDgraphCluster(dcObj *dgraphio.DgraphCluster) error
UpdateDgraphCluster function handles an udpate event on dgraph cluster object.
func (*Controller) UpdateDgraphClusterStatus ¶
func (dc *Controller) UpdateDgraphClusterStatus( dcObj *dgraphio.DgraphCluster, dcStatus *dgraphio.DgraphClusterStatus) error
UpdateDgraphClusterStatus updates the status of the DgraphCluster object represented by dcObj with the status represented in dcStatus.
Click to show internal directories.
Click to hide internal directories.