Documentation ¶
Index ¶
Constants ¶
View Source
const (
ConfigMapDataKey = "config.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( port int, dynamicCertProvider dynamiccert.Private, impersonationProxySignerCA dynamiccert.Public, ) (func(stopCh <-chan struct{}) error, error)
Types ¶
type Config ¶
type Config struct { // Enable or disable the impersonation proxy. Optional. Defaults to ModeAuto. Mode Mode `json:"mode,omitempty"` // Used when creating TLS certificates and for clients to discover the endpoint. Optional. When not specified, if the // impersonation proxy is started, then it will automatically create a LoadBalancer Service and use its ingress as the // endpoint. // // When specified, it may be a hostname or IP address, optionally with a port number, of the impersonation proxy // for clients to use from outside the cluster. E.g. myhost.mycompany.com:8443. Clients should assume that they should // connect via HTTPS to this service. Endpoint string `json:"endpoint,omitempty"` }
func (*Config) HasEndpoint ¶
type FactoryFunc ¶
type FactoryFunc func( port int, dynamicCertProvider dynamiccert.Private, impersonationProxySignerCA dynamiccert.Public, ) (func(stopCh <-chan struct{}) error, error)
FactoryFunc is a function which can create an impersonator server. It returns a function which will start the impersonator server. That start function takes a stopCh which can be used to stop the server. Once a server has been stopped, don't start it again using the start function. Instead, call the factory function again to get a new start function.
Click to show internal directories.
Click to hide internal directories.