azure

package
v0.0.0-...-d0f8ddb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMyIP

func GetMyIP() (ip *string, err error)

GetMyIP returns the IP address string of the user by talking to https://checkip.azurewebsites.net/

Types

type AzureProvider

type AzureProvider struct {

	// IPName is the resource name provided by the user if the installer doesn't want to create one.
	IpName string
	// NicName is the resource name provided by the user if the installer doesn't want to create one.
	NicName string
	// NsgName is the resource name provided by the user if the installer doesn't want to create one.
	NsgName string
	// contains filtered or unexported fields
}

AzureProvider holds azure platform specific information required for creating/deleting the windows node.

func New

func New(openShiftClient *client.OpenShift, credentialPath, subscriptionID,
	resourceTrackerDir, imageID, instanceType string) (*AzureProvider, error)

New returns azure interface for performing necessary functions related to creating or destroying an instance. It takes in kubeconfig of an existing OpenShift cluster and an azure specific credential file. The resourceTrackerDir is where the `windows-node-installer.json` file which contains IDs of created instance and security group will be created.

func (*AzureProvider) CreateWindowsVM

func (az *AzureProvider) CreateWindowsVM() (*types.Credentials, error)

CreateWindowsVM takes in imageId, instanceType and sshKey name to create Windows instance under the same resourceGroupName as the existing OpenShift TODO: If it fails during the instance creation process it has to delete the resources created untill that step.

func (*AzureProvider) DestroyWindowsVMs

func (az *AzureProvider) DestroyWindowsVMs() error

DestroyWindowsVMs destroys all the resources created by the CreateWindows method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL