certificates

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubeconfigs

func CreateKubeconfigs(cfg *kubeadmapi.InitConfiguration, kubeConfigDir string) error

CreateKubeconfigs creates kubeconfigs for all profiles.

func CreateNewBootstrapToken

func CreateNewBootstrapToken(kubeconfig string, tokenTTL time.Duration) (string, error)

CreateNewBootstrapToken creates new bootstrap token using in cluster config.

func CreatePKICertificates

func CreatePKICertificates(cfg *kubeadmapi.InitConfiguration) error

CreatePKICertificates creates base pki assets in cfg.CertDir directory.

func CreateSACertificates

func CreateSACertificates(cfg *kubeadmapi.InitConfiguration) error

CreateSACertificates creates sa certificates in cfg.CertDir directory.

func GetDiscoveryHashes

func GetDiscoveryHashes(kubeConfigFile string) ([]string, error)

GetDiscoveryHashes returns discovery hashes from a given kubeconfig file.

Types

type Service

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

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.

func NewService

func NewService(scope *actuators.Scope) *Service

NewService returns a new service given the api clients.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, spec v1alpha1.ResourceSpec) error

Delete cleans up and generated certificates, could be useful for renewal.

func (*Service) Get

func (s *Service) Get(ctx context.Context, spec v1alpha1.ResourceSpec) (interface{}, error)

Get should implement returning certs and kubeconfigs.

func (*Service) Reconcile added in v0.2.0

func (s *Service) Reconcile(ctx context.Context, spec v1alpha1.ResourceSpec) error

Reconcile Helper function so this can be unittested.

Jump to

Keyboard shortcuts

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