Documentation
¶
Index ¶
- func AddBootstrapConfigurationFlags(set *flag.FlagSet)
- func BootstrapKubernetesClusters(ctx context.Context, organization string, ...) error
- func CreateKubeconfigSecret(ctx context.Context, data []byte, configuration *RemoteKubernetesConfiguration) error
- func CreateRemoteKubeconfig(ctx context.Context, configuration *RemoteKubernetesConfiguration) ([]byte, error)
- func CreateTLSSecret(ctx context.Context, ca *CACertificate, certificate *Certificate, ...) error
- func EnsureNamespace(ctx context.Context, namespace string, cl client.Client) error
- type BootstrapClusterConfiguration
- type CACertificate
- type CAConfiguration
- type Certificate
- type CertificateConfiguration
- type RemoteConfiguration
- type RemoteKubernetesConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapKubernetesClusters ¶
func BootstrapKubernetesClusters(ctx context.Context, organization string, configuration BootstrapClusterConfiguration) error
func CreateKubeconfigSecret ¶
func CreateKubeconfigSecret(ctx context.Context, data []byte, configuration *RemoteKubernetesConfiguration) error
func CreateRemoteKubeconfig ¶
func CreateRemoteKubeconfig(ctx context.Context, configuration *RemoteKubernetesConfiguration) ([]byte, error)
func CreateTLSSecret ¶
func CreateTLSSecret(ctx context.Context, ca *CACertificate, certificate *Certificate, configuration *RemoteKubernetesConfiguration) error
Types ¶
type BootstrapClusterConfiguration ¶
type BootstrapClusterConfiguration struct {
BootstrapTLS bool
BootstrapKubeconfigs bool
EnsureNamespace bool
OperatorNamespace string
ServiceName string
RemoteClusters []RemoteConfiguration
}
func ConfigurationFromFlags ¶
func ConfigurationFromFlags() (BootstrapClusterConfiguration, error)
type CACertificate ¶
type CACertificate struct {
// contains filtered or unexported fields
}
func GenerateCA ¶
func GenerateCA(organization, name string, configuration *CAConfiguration) (*CACertificate, error)
func LoadCA ¶
func LoadCA(certPEM, keyPEM []byte, configuration *CAConfiguration) (*CACertificate, error)
func (*CACertificate) Bytes ¶
func (c *CACertificate) Bytes() []byte
func (*CACertificate) Intermediate ¶
func (c *CACertificate) Intermediate(name string) (*CACertificate, error)
func (*CACertificate) PrivateKeyBytes ¶
func (c *CACertificate) PrivateKeyBytes() []byte
func (*CACertificate) Sign ¶
func (c *CACertificate) Sign(names ...string) (*Certificate, error)
type CAConfiguration ¶
type Certificate ¶
type Certificate struct {
// contains filtered or unexported fields
}
func (*Certificate) Bytes ¶
func (c *Certificate) Bytes() []byte
func (*Certificate) PrivateKeyBytes ¶
func (c *Certificate) PrivateKeyBytes() []byte
type RemoteConfiguration ¶
func (RemoteConfiguration) Address ¶
func (r RemoteConfiguration) Address() (string, error)
func (RemoteConfiguration) FQDN ¶
func (r RemoteConfiguration) FQDN(c BootstrapClusterConfiguration) (string, error)
Click to show internal directories.
Click to hide internal directories.