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 }
OIDCWebhookTestEnvironment represents a testing environment that runs oidc-webhook-authenticator server.
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 ¶
func (e *OIDCWebhookTestEnvironment) Start() (*rest.Config, error)
Start starts the underlying envtest.Environment and the OIDC Webhook Server.
func (*OIDCWebhookTestEnvironment) Stop ¶
func (e *OIDCWebhookTestEnvironment) Stop() error
Stop stops the underlying envtest.Environment and the OIDC Webhook Server.