Documentation ¶
Index ¶
Constants ¶
View Source
const ( FileOwner = "root:root" FilePermission = 0700 GzipBase64Encoding = "gzip+base64" )
View Source
const ( // MasterCloudConfigVersion defines the version of k8scloudconfig in use. // It is used in the main stack output and S3 object paths. MasterCloudConfigVersion = "v_3_2_2" )
View Source
const ( // WorkerCloudConfigVersion defines the version of k8scloudconfig in use. // It is used in the main stack output and S3 object paths. WorkerCloudConfigVersion = "v_3_2_2" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type CloudConfig ¶
type CloudConfig struct {
// 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(customObject v1alpha1.AWSConfig, certs legacy.CompactTLSAssets, keys randomkeytpr.CompactRandomKeyAssets) (string, error)
NewMasterTemplate generates a new master cloud config template and returns it as a base64 encoded string.
func (*CloudConfig) NewWorkerTemplate ¶
func (c *CloudConfig) NewWorkerTemplate(customObject v1alpha1.AWSConfig, certs legacy.CompactTLSAssets) (string, error)
NewWorkerTemplate generates a new worker cloud config template and returns it as a base64 encoded string.
type Config ¶
type Config struct { // Dependencies. Logger micrologger.Logger OIDC OIDCConfig }
Config represents the configuration used to create a cloud config service.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig provides a default configuration to create a new cloud config service by best effort.
type MasterExtension ¶
type MasterExtension struct {
// contains filtered or unexported fields
}
func (*MasterExtension) Files ¶
func (e *MasterExtension) Files() ([]k8scloudconfig.FileAsset, error)
func (*MasterExtension) Units ¶
func (e *MasterExtension) Units() ([]k8scloudconfig.UnitAsset, error)
func (*MasterExtension) VerbatimSections ¶
func (e *MasterExtension) VerbatimSections() []k8scloudconfig.VerbatimSection
type OIDCConfig ¶
OIDCConfig represents the configuration of the OIDC authorization provider
type WorkerExtension ¶
type WorkerExtension struct {
// contains filtered or unexported fields
}
func (*WorkerExtension) Files ¶
func (e *WorkerExtension) Files() ([]k8scloudconfig.FileAsset, error)
func (*WorkerExtension) Units ¶
func (e *WorkerExtension) Units() ([]k8scloudconfig.UnitAsset, error)
func (*WorkerExtension) VerbatimSections ¶
func (e *WorkerExtension) VerbatimSections() []k8scloudconfig.VerbatimSection
Click to show internal directories.
Click to hide internal directories.