mock

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 1

README

Mock Driver

Status: Not for production, experimental only

This driver provides an example deployment of a fake storage server onto Kuberntes. The image it actually deploys is nginx only for simplicity.

Requirements

There are no requirements to run a mock deployment.

Deployment

The file examples/mock/cluster.yml contains an example deployment. The file has been setup to show a few examples of how nodeName or nodeSelector can be used, and how container image can be defined.

$ kubectl create -f examples/mock/cluster.yaml

No dynamic provisioning or persistent volumes will be created since this is a fake storage system deployment. You can check the status of the storage cluster, storage nodes, and pvs by running the following commands:

$ kubectl get storagecluster -o yaml
$ kubectl get storagenodes -o yaml
$ kubectl get pods

It is also recommended to look at the QM logs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

This mock storage system serves as an example driver for developers

Types

type MockStorage

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

func (*MockStorage) AddCluster

func (st *MockStorage) AddCluster(c *spec.StorageCluster) (*spec.StorageCluster, error)

func (*MockStorage) AddNode

func (st *MockStorage) AddNode(s *spec.StorageNode) (*spec.StorageNode, error)

func (*MockStorage) DeleteCluster

func (st *MockStorage) DeleteCluster(c *spec.StorageCluster) error

func (*MockStorage) DeleteNode

func (st *MockStorage) DeleteNode(s *spec.StorageNode) error

func (*MockStorage) Init

func (st *MockStorage) Init() error

func (*MockStorage) MakeDeployment

func (st *MockStorage) MakeDeployment(s *spec.StorageNode,
	old *v1beta1.Deployment) (*v1beta1.Deployment, error)

func (*MockStorage) Type

func (*MockStorage) UpdateCluster

func (st *MockStorage) UpdateCluster(old *spec.StorageCluster,
	new *spec.StorageCluster) error

func (*MockStorage) UpdateNode

func (st *MockStorage) UpdateNode(s *spec.StorageNode) (*spec.StorageNode, error)

Jump to

Keyboard shortcuts

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