client

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResourceGroup

func CreateResourceGroup(conf *Config) (bool, error)

CreateResourceGroup creates a resource group and returns whether the resource group was actually created or not and any error encountered.

func GenerateManifest

func GenerateManifest(manifestFile string) (*v20180930preview.OpenShiftManagedCluster, error)

GenerateManifest accepts a manifest file and returns a typed OSA v20180930preview struct that can be used to request OSA creates and updates. If the provided manifest is templatized, it will be parsed appropriately.

func GenerateManifestAdmin

func GenerateManifestAdmin(manifestFile string) (*admin.OpenShiftManagedCluster, error)

GenerateManifestAdmin accepts a manifest file and returns a typed OSA admin struct that can be used to request OSA admin updates. If the provided manifest is templatized, it will be parsed appropriately.

func WriteClusterConfigToManifest

func WriteClusterConfigToManifest(oc *v20180930preview.OpenShiftManagedCluster, manifestFile string) error

WriteClusterConfigToManifest write to file

Types

type Config

type Config struct {
	SubscriptionID  string `envconfig:"AZURE_SUBSCRIPTION_ID" required:"true"`
	TenantID        string `envconfig:"AZURE_TENANT_ID" required:"true"`
	ClientID        string `envconfig:"AZURE_CLIENT_ID" required:"true"`
	ClientSecret    string `envconfig:"AZURE_CLIENT_SECRET" required:"true"`
	AADClientID     string `envconfig:"AZURE_AAD_CLIENT_ID"`
	AADClientSecret string `envconfig:"AZURE_AAD_CLIENT_SECRET"`

	Region        string `envconfig:"AZURE_REGION"`
	ResourceGroup string `envconfig:"RESOURCEGROUP"`

	NoGroupTags      bool   `envconfig:"NOGROUPTAGS"`
	ResourceGroupTTL string `envconfig:"RESOURCEGROUP_TTL"`
	Manifest         string `envconfig:"MANIFEST"`
	NoWait           bool   `envconfig:"NO_WAIT"`
}

func NewConfig

func NewConfig(log *logrus.Entry, needRegion bool) (*Config, error)

Jump to

Keyboard shortcuts

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