cluster

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

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.

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) edgefsv1.DevicesResurrectOptions

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

func ToJSON added in v1.1.0

func ToJSON(obj interface{}) string

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()

type ClusterReconfigureSpec added in v1.1.0

type ClusterReconfigureSpec struct {
	DeploymentConfig     edgefsv1.ClusterDeploymentConfig
	ClusterNodesToDelete []string
	ClusterNodesToAdd    []string
}

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