Documentation
¶
Index ¶
- func CreateResourceGroup(conf *Config) (bool, error)
- func GenerateManifest(manifestFile string) (*v20180930preview.OpenShiftManagedCluster, error)
- func GenerateManifestAdmin(manifestFile string) (*admin.OpenShiftManagedCluster, error)
- func WriteClusterConfigToManifest(oc *v20180930preview.OpenShiftManagedCluster, manifestFile string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResourceGroup ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.