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
- Variables
- func ClusterOwnerRef(namespace, clusterID string) metav1.OwnerReference
- func ParseDevicesResurrectMode(resurrectMode string) edgefsv1beta1.DevicesResurrectOptions
- func ValidateSlaveContainers(deploymentConfig *edgefsv1beta1.ClusterDeploymentConfig) error
- func ValidateZones(deploymentConfig *edgefsv1beta1.ClusterDeploymentConfig) error
- type ClusterController
Constants ¶
const ( CustomResourceName = "cluster" CustomResourceNamePlural = "clusters" )
Variables ¶
var ClusterResource = opkit.CustomResource{ Name: CustomResourceName, Plural: CustomResourceNamePlural, Group: edgefsv1beta1.CustomResourceGroup, Version: edgefsv1beta1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(edgefsv1beta1.Cluster{}).Name(), }
Functions ¶
func ClusterOwnerRef ¶
func ClusterOwnerRef(namespace, 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 |