cloudconfig

package
v5.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidSecret

func IsInvalidSecret(err error) bool

func IsSecretNotFoundError

func IsSecretNotFoundError(err error) bool

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 {
	Azure                  setting.Azure
	AzureClientCredentials auth.ClientCredentialsConfig
	CtrlClient             ctrl.Client
	DockerhubToken         string
	Ignition               setting.Ignition
	Logger                 micrologger.Logger
	OIDC                   setting.OIDC
	RegistryMirrors        []string
	SSOPublicKey           string
	SubscriptionID         string
}

type IgnitionTemplateData

type IgnitionTemplateData struct {
	AzureMachinePool *capzexp.AzureMachinePool
	AzureCluster     *capz.AzureCluster
	Cluster          *capi.Cluster
	CustomObject     providerv1alpha1.AzureConfig
	Images           k8scloudconfig.Images
	MachinePool      *capiexp.MachinePool
	MasterCertFiles  []certs.File
	Versions         k8scloudconfig.Versions
	WorkerCertFiles  []certs.File
}

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)
}

type Key

type Key string

func (Key) String

func (k Key) String() string

Jump to

Keyboard shortcuts

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