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 ¶
const ( CustomResourceName = "cluster" CustomResourceNamePlural = "clusters" )
Variables ¶
var ClusterResource = opkit.CustomResource{ Name: CustomResourceName, Plural: CustomResourceNamePlural, Group: edgefsv1.CustomResourceGroup, Version: edgefsv1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(edgefsv1.Cluster{}).Name(), }
Functions ¶
func ClusterOwnerRef ¶
func ClusterOwnerRef(clusterName, clusterID string) metav1.OwnerReference
func ParseDevicesResurrectMode ¶
func ParseDevicesResurrectMode(resurrectMode string) edgefsv1.DevicesResurrectOptions
ParseDevicesResurrectMode parse resurrect options string. String format "restore|restorezap|restorezapwait:<SlaveContainersCount>":
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 ¶
type ClusterReconfigureSpec struct { DeploymentConfig edgefsv1.ClusterDeploymentConfig ClusterNodesToDelete []string ClusterNodesToAdd []string }
Source Files ¶
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 |