package testing

import "k8s.io/apiserver/pkg/storage/etcd3/testing"

Index

Functions

func AddPrefix

func AddPrefix(in string) string

AddPrefix adds the ETCD_PREFIX to the provided key

func PathPrefix

func PathPrefix() string

PathPrefix returns the prefix set via the ETCD_PREFIX environment variable (if any).

Types

type EtcdTestServer

type EtcdTestServer struct {
	V3Client *kubernetes.Client
}

EtcdTestServer encapsulates the datastructures needed to start local instance for testing

func NewUnsecuredEtcd3TestClientServer

func NewUnsecuredEtcd3TestClientServer(t testing.TB) (*EtcdTestServer, *storagebackend.Config)

NewUnsecuredEtcd3TestClientServer creates a new client and server for testing

func (*EtcdTestServer) Terminate

func (e *EtcdTestServer) Terminate(t testing.TB)

Source Files

test_server.go utils.go

Directories

PathSynopsis
pkg/storage/etcd3/testing/testingcert
Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
37 minutes ago

Tools for package owners.