env

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatorConfig

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

AggregatorConfig is able to configure the kube-aggregator (kube-apiserver aggregation layer) by provisioning the front-proxy certs and setting the corresponding flags on the kube-apiserver.

func (AggregatorConfig) ConfigureAPIServerArgs

func (a AggregatorConfig) ConfigureAPIServerArgs(certDir string, args *envtest.Arguments) error

ConfigureAPIServerArgs generates the needed certs, writes them to the given directory and configures args to point to the generated certs.

type OIDCWebhookTestEnvironment

type OIDCWebhookTestEnvironment struct {
	*envtest.Environment

	// OIDCOut, OIDCErr specify where the OIDC Webhook Authenticator should write its StdOut, StdErr to.
	// If not specified, the output will be discarded.
	OIDCOut io.Writer
	OIDCErr io.Writer

	// APIServerOut, APIServerErr specify where the kube-apiserver should write its StdOut, StdErr to.
	// If not specified, the output will be discarded.
	APIServerOut io.Writer
	APIServerErr io.Writer
	// contains filtered or unexported fields
}

func (*OIDCWebhookTestEnvironment) OIDCClientCert

func (e *OIDCWebhookTestEnvironment) OIDCClientCert() *utils.Certificate

OIDCClientCert returns a client certificate that can be used to communicate with the OIDC Webhook Server.

func (*OIDCWebhookTestEnvironment) OIDCServerCA

func (e *OIDCWebhookTestEnvironment) OIDCServerCA() []byte

OIDCServerCA returns the PEM encoded certificate authority for the OIDC Webhook Server.

func (*OIDCWebhookTestEnvironment) Start

Start starts the underlying envtest.Environment and the OIDC Webhook Server.

func (*OIDCWebhookTestEnvironment) Stop

Stop stops the underlying envtest.Environment and the OIDC Webhook Server.

Jump to

Keyboard shortcuts

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