fixtures

package
v0.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 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"
	DefaultImportedClusterName                = "kstone-test"
	DefaultImportedPodName                    = "etcd-test-0"
	DefaultNamespace                          = "default"
	DefaultHTTPKstoneEtcdOperatorClusterName  = "kstone-etcd-operator-http-test"
	DefaultHTTPKstoneEtcdOperatorPodName      = "kstone-etcd-operator-http-test-etcd-0"
	DefaultHTTPSKstoneEtcdOperatorClusterName = "kstone-etcd-operator-https-test"
	DefaultHTTPSKstoneEtcdOperatorPodName     = "kstone-etcd-operator-https-test-etcd-0"
)

Variables

This section is empty.

Functions

func NewEtcdCluster

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

func NewEtcdInspection

func NewEtcdInspection(name string, inspectionType kstonev1alpha2.KStoneFeature) *kstonev1alpha2.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