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(options *kubernetesprovisioners.ClusterOpenstackOptions) (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, options *kubernetesprovisioners.ClusterOpenstackOptions) *application.Provisioner
New returns a new initialized provisioner object.
Types ¶
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
Provisioner encapsulates control plane provisioning.
func (*Provisioner) PreDeprovision ¶ added in v0.2.54
func (p *Provisioner) PreDeprovision(ctx context.Context) error
PreDeprovision allows us to delete all load balancer resources that are in existence and free them, and their IP addresses up, as some cloud platforms will not do this for themselves.
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.