cloudconfig

package
v8.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 19 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 Config

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

	APIExtraArgs              []string
	CalicoCIDR                int
	CalicoMTU                 int
	CalicoSubnet              string
	ClusterIPRange            string
	DockerDaemonCIDR          string
	IgnitionPath              string
	ImagePullProgressDeadline string
	KubeletExtraArgs          []string
	ClusterDomain             string
	NetworkSetupDockerImage   string
	PodInfraContainerImage    string
	RegistryDomain            string
	SSHUserList               string
	SSOPublicKey              string
}

func (Config) Validate

func (c Config) Validate() error

type Interface

type Interface interface {
	Render(ctx context.Context, cr infrastructurev1alpha2.AWSCluster, clusterCerts certs.Cluster, clusterKeys randomkeys.Cluster, labels string) ([]byte, error)
}

type MasterExtension

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

func (*MasterExtension) Files

func (*MasterExtension) Units

func (*MasterExtension) VerbatimSections

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

type RandomKeyTmplSet

type RandomKeyTmplSet struct {
	APIServerEncryptionKey string
}

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

type TCCP

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

func NewTCCP

func NewTCCP(config TCCPConfig) (*TCCP, error)

func (*TCCP) Render

func (t *TCCP) Render(ctx context.Context, cr infrastructurev1alpha2.AWSCluster, clusterCerts certs.Cluster, clusterKeys randomkeys.Cluster, labels string) ([]byte, error)

type TCCPConfig

type TCCPConfig struct {
	Config Config
}

type TCNP

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

func NewTCNP

func NewTCNP(config TCNPConfig) (*TCNP, error)

func (*TCNP) Render

func (t *TCNP) Render(ctx context.Context, cr infrastructurev1alpha2.AWSCluster, clusterCerts certs.Cluster, clusterKeys randomkeys.Cluster, labels string) ([]byte, error)

type TCNPConfig

type TCNPConfig struct {
	Config Config
}

type WorkerExtension

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

func (*WorkerExtension) Files

func (*WorkerExtension) Units

func (*WorkerExtension) VerbatimSections

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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