Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrCloudConfiguration is returned when the cloud configuration is not // correctly formatted. ErrCloudConfiguration = errors.New("invalid cloud configuration") )
Functions ¶
func GenerateCloudConfig ¶
func GenerateCloudConfig(cluster *unikornv1.KubernetesCluster) (string, error)
GenerateCloudConfig does the horrific translation between the myriad ways that OpenStack deems necessary to authenticate to the cloud configuration format. See: https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/openstack-cloud-controller-manager/using-openstack-cloud-controller-manager.md#config-openstack-cloud-controller-manager
func New ¶
func New(getApplication application.GetterFunc) *application.Provisioner
New returns a new initialized provisioner object.
Types ¶
type Provisioner ¶
type Provisioner struct{}
Provisioner encapsulates control plane provisioning.
func (*Provisioner) Values ¶
func (p *Provisioner) Values(ctx context.Context, _ *string) (interface{}, error)
Generate implements the application.Generator interface. Note there is an option, to just pass through the clouds.yaml file, however the chart doesn't allow it to be exposed so we need to translate between formats.