cloudconfig

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FileOwnerUserName  = "root"
	FileOwnerGroupName = "root"
	FilePermission     = 0700
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type CloudConfig

type CloudConfig struct {
	SSOPublicKey string
	// contains filtered or unexported fields
}

CloudConfig implements the cloud config service interface.

func New

func New(config Config) (*CloudConfig, error)

New creates a new configured cloud config service.

func (*CloudConfig) NewMasterTemplate

func (c *CloudConfig) NewMasterTemplate(ctx context.Context, customObject v1alpha1.AWSConfig, clusterCerts certs.Cluster, clusterKeys randomkeys.Cluster) (string, error)

NewMasterTemplate generates a new master cloud config template and returns it as a string.

func (*CloudConfig) NewWorkerTemplate

func (c *CloudConfig) NewWorkerTemplate(ctx context.Context, customObject v1alpha1.AWSConfig, clusterCerts certs.Cluster) (string, error)

NewWorkerTemplate generates a new worker cloud config template and returns it as a string.

type Config

type Config struct {
	Encrypter encrypter.Interface
	Logger    micrologger.Logger

	IgnitionPath              string
	ImagePullProgressDeadline string
	OIDC                      OIDCConfig
	PodInfraContainerImage    string
	RegistryDomain            string
	SSOPublicKey              string
}

Config represents the configuration used to create a cloud config service.

type Interface

type Interface interface {
	NewMasterTemplate(ctx context.Context, customObject v1alpha1.AWSConfig, clusterCerts certs.Cluster, clusterKeys randomkeys.Cluster) (string, error)
	NewWorkerTemplate(ctx context.Context, customObject v1alpha1.AWSConfig, clusterCerts certs.Cluster) (string, error)
}

type KMSClient

type KMSClient interface {
	Encrypt(*kms.EncryptInput) (*kms.EncryptOutput, error)
}

type MasterExtension

type MasterExtension struct {
	ClusterCerts     certs.Cluster
	RandomKeyTmplSet RandomKeyTmplSet
	// contains filtered or unexported fields
}

func (*MasterExtension) Files

func (*MasterExtension) Units

func (*MasterExtension) VerbatimSections

func (e *MasterExtension) VerbatimSections() []k8scloudconfig.VerbatimSection

type OIDCConfig

type OIDCConfig struct {
	ClientID      string
	IssuerURL     string
	UsernameClaim string
	GroupsClaim   string
}

OIDCConfig represents the configuration of the OIDC authorization provider

type RandomKeyTmplSet

type RandomKeyTmplSet struct {
	APIServerEncryptionKey string
}

RandomKeyTmplSet holds a collection of rendered templates for random key encryption via KMS.

type WorkerExtension

type WorkerExtension struct {
	ClusterCerts certs.Cluster
	// contains filtered or unexported fields
}

func (*WorkerExtension) Files

func (*WorkerExtension) Units

func (*WorkerExtension) VerbatimSections

func (e *WorkerExtension) VerbatimSections() []k8scloudconfig.VerbatimSection

Jump to

Keyboard shortcuts

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