Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileOwnerUserName = "root" FileOwnerGroupName = "root" FilePermission = 0700 )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
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.
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 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 (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 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 (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.