cluster

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package cluster to manage a edgefs cluster.

Copyright 2019 The Rook Authors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	CustomResourceName       = "cluster"
	CustomResourceNamePlural = "clusters"
)

Variables

Functions

func ClusterOwnerRef

func ClusterOwnerRef(clusterName, clusterID string) metav1.OwnerReference

func ParseDevicesResurrectMode added in v1.0.0

func ParseDevicesResurrectMode(resurrectMode string) edgefsv1beta1.DevicesResurrectOptions

ParseDevicesResurrectMode parse resurrect options string. String format "restore|restorezap|restorezapwait:<SlaveContainersCount>":

func ValidateSlaveContainers added in v1.0.0

func ValidateSlaveContainers(deploymentConfig *edgefsv1beta1.ClusterDeploymentConfig) error

ValidateSlaveContainers validates containers count for each deployment node, container's count MUST be equal for for each node

func ValidateZones added in v1.0.0

func ValidateZones(deploymentConfig *edgefsv1beta1.ClusterDeploymentConfig) error

ValidateZones validates all nodes in cluster that each one has valid zone number or all of them has zone == 0

Types

type ClusterController

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

func NewClusterController

func NewClusterController(context *clusterd.Context, containerImage string) *ClusterController

func (*ClusterController) StartWatch

func (c *ClusterController) StartWatch(namespace string, stopCh chan struct{}) error

func (*ClusterController) StopWatch

func (c *ClusterController) StopWatch()

Directories

Path Synopsis
Package mgr for the Edgefs manager.
Package mgr for the Edgefs manager.
Package prepare for the Edgefs manager.
Package prepare for the Edgefs manager.
config
Package config for Edgefs target config managed by the operator
Package config for Edgefs target config managed by the operator

Jump to

Keyboard shortcuts

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