Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreEtcdOptions ¶
type CoreEtcdOptions struct { // URLs contains the core etcd addresses. URLs []string // CAConfigMapName is the name of the ConfigMap in the controller namespace where CA certificates for // the core etcd are stored. CAConfigMapName string // CertSecretName is the name of the Secret in the controller namespace where Client certificate and key for // the core etcd are stored. CertSecretName string }
CoreEtcdOptions type is used to wire the core etcd information used by controller to create Deployments.
func NewCoreEtcdOptions ¶
func NewCoreEtcdOptions() *CoreEtcdOptions
NewCoreEtcdOptions returns CoreEtcdOptions struct filled with default values.
func (*CoreEtcdOptions) Validate ¶
func (c *CoreEtcdOptions) Validate() error
Validate verifies is CoreEtcdOptions struct correctly populated.
type EtcdProxyControllerOptions ¶
type EtcdProxyControllerOptions struct { // CoreEtcd contains information needed to wire up Deployments and the core etcd. CoreEtcd *CoreEtcdOptions // ControllerNamespace is name of namespace where controller is deployed. ControllerNamespace string // KubeconfigPath is used to obtain path to kubeconfig, used to create kubeclients. KubeconfigPath string // ProxyImage is name of the etcd image to be used for etcd-proxy Deployments creation. ProxyImage string }
EtcdProxyControllerOptions type is used to pass information from cli to the controller.
func NewEtcdProxyControllerOptions ¶
func NewEtcdProxyControllerOptions() *EtcdProxyControllerOptions
NewEtcdProxyControllerOptions returns EtcdProxyControllerOptions struct filled with default values.
func (*EtcdProxyControllerOptions) AddFlags ¶
func (e *EtcdProxyControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to the root command.
func (*EtcdProxyControllerOptions) ApplyTo ¶
func (e *EtcdProxyControllerOptions) ApplyTo(c *etcdproxy.EtcdProxyControllerConfig) error
ApplyTo applies provided Options struct to the provided Config struct.
func (*EtcdProxyControllerOptions) Validate ¶
func (e *EtcdProxyControllerOptions) Validate() error
Validate verifies are EtcdProxyControllerOptions and CoreEtcdOptions struct correctly populated.