Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureResourceGroup ¶
EnsureResourceGroup creates a resource group and returns whether the resource group was actually created or not and any error encountered.
func GenerateManifest ¶
GenerateManifest accepts a manifest file and returns a OSA struct of the type requested by the caller. If the provided manifest is templatized, it will be parsed appropriately.
func WriteClusterConfigToManifest ¶
func WriteClusterConfigToManifest(oc *v20190430.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"`
AADGroupAdminsID string `envconfig:"AZURE_AAD_GROUP_ADMINS_ID"`
DeployVersion string `envconfig:"DEPLOY_VERSION" required:"true"`
RunningUnderTest string `envconfig:"RUNNING_UNDER_TEST"`
Region string `envconfig:"AZURE_REGION"`
Regions string `envconfig:"AZURE_REGIONS"`
ResourceGroup string `envconfig:"RESOURCEGROUP" required:"true"`
ResourceGroupTTL string `envconfig:"RESOURCEGROUP_TTL"`
Manifest string `envconfig:"MANIFEST"`
NoWait bool `envconfig:"NO_WAIT"`
}
Click to show internal directories.
Click to hide internal directories.