fixtures

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFeatureGate                = "monitor=true,consistency=true,healthy=true,request=true,backup=true,alarm=true,backupcheck=true"
	DefaultTestClusterAddr            = "etcd-test-headless.default.svc.cluster.local:2379"
	DefaultTestClusterStatefulsetYaml = "etcd_statefulset.yaml"
	DefaultTestClusterSvcYaml         = "etcd_service.yaml"
	DefaultKstoneNamespace            = "kstone"
)

Variables

This section is empty.

Functions

func NewEtcdCluster

func NewEtcdCluster(
	name string,
	replicas uint,
	clusterType kstonev1alpha1.EtcdClusterType,
	featureGate,
	clusterAddr string) *kstonev1alpha1.EtcdCluster

func NewEtcdInspection

func NewEtcdInspection(name string, inspectionType kstonev1alpha1.KStoneFeature) *kstonev1alpha1.EtcdInspection

func StatefulSetFromManifest

func StatefulSetFromManifest(fileName, ns string) (*appsv1.StatefulSet, error)

StatefulSetFromManifest returns a StatefulSet from a manifest stored in fileName in the Namespace indicated by ns.

func SvcFromManifest

func SvcFromManifest(fileName string) (*v1.Service, error)

SvcFromManifest reads a .json/yaml file and returns the service in it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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