kvm-operator: github.com/giantswarm/kvm-operator/service/controller/v25/cloudconfig Index | Files | Directories

package cloudconfig

import "github.com/giantswarm/kvm-operator/service/controller/v25/cloudconfig"


Package Files

cloud_config.go error.go master_template.go worker_template.go


const (
    FileOwnerUserName  = "root"
    FileOwnerGroupName = "root"
    FilePermission     = 0700

    IscsiInitiatorNameFilePath    = "/etc/iscsi/initiatorname.iscsi"
    IscsiInitiatorFilePermissions = 0644

    IscsiConfigFilePath        = "/etc/iscsi/iscsid.conf"
    IscsiConfigFilePermissions = 0644
    IscsiConfigFileContent     = "" /* 152 byte string literal not displayed */


func IsInvalidConfig Uses

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound Uses

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

type CloudConfig Uses

type CloudConfig struct {
    // contains filtered or unexported fields

CloudConfig implements the cloud config service interface.

func New Uses

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

New creates a new configured cloud config service.

func (*CloudConfig) NewMasterTemplate Uses

func (c *CloudConfig) NewMasterTemplate(customObject v1alpha1.KVMConfig, certs certs.Cluster, node v1alpha1.ClusterNode, randomKeys randomkeys.Cluster, nodeIndex int) (string, error)

NewMasterTemplate generates a new worker cloud config template and returns it as a base64 encoded string.

func (*CloudConfig) NewWorkerTemplate Uses

func (c *CloudConfig) NewWorkerTemplate(customObject v1alpha1.KVMConfig, certs certs.Cluster, node v1alpha1.ClusterNode, nodeIndex int) (string, error)

NewWorkerTemplate generates a new worker cloud config template and returns it as a base64 encoded string.

type Config Uses

type Config struct {
    // Dependencies.
    Logger micrologger.Logger

    IgnitionPath string
    OIDC         OIDCConfig
    SSOPublicKey string

Config represents the configuration used to create a cloud config service.

func DefaultConfig Uses

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new cloud config service by best effort.

type OIDCConfig Uses

type OIDCConfig struct {
    ClientID      string
    IssuerURL     string
    UsernameClaim string
    GroupsClaim   string

OIDCConfig represents the configuration of the OIDC authorization provider



Package cloudconfig imports 8 packages (graph) and is imported by 4 packages. Updated 2019-10-30. Refresh now. Tools for package owners.