cloudconfig

package
v4.0.0-2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertFilePermission          = 0400
	CloudProviderFilePermission = 0640
	FileOwnerUserName           = "root"
	FileOwnerGroupName          = "root"
	FileOwnerGroupIDNobody      = 65534
	FilePermission              = 0700
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type CloudConfig

type CloudConfig struct {
	OIDC setting.OIDC
	// contains filtered or unexported fields
}

func New

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

func (CloudConfig) NewMasterTemplate

func (c CloudConfig) NewMasterTemplate(ctx context.Context, data IgnitionTemplateData, encrypter encrypter.Interface) (string, error)

NewMasterCloudConfig generates a new master cloudconfig and returns it as a base64 encoded string.

func (CloudConfig) NewWorkerTemplate

func (c CloudConfig) NewWorkerTemplate(ctx context.Context, data IgnitionTemplateData, encrypter encrypter.Interface) (string, error)

NewWorkerCloudConfig generates a new worker cloudconfig and returns it as a base64 encoded string.

type Config

type Config struct {
	CertsSearcher      certs.Interface
	Logger             micrologger.Logger
	RandomkeysSearcher randomkeys.Interface

	Azure setting.Azure
	// TODO(pk) remove as soon as we sort calico in Azure provider.
	AzureConfig  client.AzureClientSetConfig
	AzureNetwork network.Subnets
	Ignition     setting.Ignition
	OIDC         setting.OIDC
	SSOPublicKey string
}

type IgnitionTemplateData

type IgnitionTemplateData struct {
	CustomObject providerv1alpha1.AzureConfig
	ClusterCerts certs.Cluster
	ClusterKeys  randomkeys.Cluster
	Images       v_6_0_0.Images
}

type Interface

type Interface interface {
	NewMasterTemplate(ctx context.Context, data IgnitionTemplateData, encrypter encrypter.Interface) (string, error)
	NewWorkerTemplate(ctx context.Context, data IgnitionTemplateData, encrypter encrypter.Interface) (string, error)
}

Jump to

Keyboard shortcuts

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