Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterProfile ¶
type MasterProfile struct { // The size of the master VMs (immutable). VMSize VMSize `json:"vmSize,omitempty"` // The Azure resource ID of the worker subnet (immutable). SubnetID string `json:"subnetId,omitempty"` }
MasterProfile represents a master profile.
type NetworkProfile ¶
type NetworkProfile struct { // The CIDR used for OpenShift/Kubernetes Pods (immutable). PodCIDR string `json:"podCidr,omitempty"` // The CIDR used for OpenShift/Kubernetes Services (immutable). ServiceCIDR string `json:"serviceCidr,omitempty"` }
NetworkProfile represents a network profile.
type OpenShiftCluster ¶
type OpenShiftCluster struct { // The resource ID (immutable). ID string `json:"id,omitempty" mutable:"case"` // The resource name (immutable). Name string `json:"name,omitempty" mutable:"case"` // The resource type (immutable). Type string `json:"type,omitempty" mutable:"case"` // The resource location (immutable). Location string `json:"location,omitempty"` // The resource tags. Tags Tags `json:"tags,omitempty" mutable:"true"` // The cluster properties. Properties Properties `json:"properties,omitempty"` }
OpenShiftCluster represents an Azure Red Hat OpenShift cluster.
type OpenShiftClusterCredentials ¶
type OpenShiftClusterCredentials struct { // The password for the kubeadmin user KubeadminPassword string `json:"kubeadminPassword,omitempty"` }
OpenShiftClusterCredentials represents an OpenShift cluster's credentials
type OpenShiftClusterList ¶
type OpenShiftClusterList struct { // The list of OpenShift clusters. OpenShiftClusters []*OpenShiftCluster `json:"value"` }
OpenShiftClusterList represents a list of OpenShift clusters.
type Properties ¶
type Properties struct { // The cluster provisioning state (immutable). ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // The cluster service principal profile. ServicePrincipalProfile ServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"` // The cluster network profile. NetworkProfile NetworkProfile `json:"networkProfile,omitempty"` // The cluster master profile. MasterProfile MasterProfile `json:"masterProfile,omitempty"` // The cluster worker profiles. WorkerProfiles []WorkerProfile `json:"workerProfiles,omitempty"` // The URL to access the cluster API server (immutable). APIServerURL string `json:"apiserverUrl,omitempty"` // The URL to access the cluster console (immutable). ConsoleURL string `json:"consoleUrl,omitempty"` }
Properties represents an OpenShift cluster's properties.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState represents a provisioning state.
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateUpdating ProvisioningState = "Updating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateFailed ProvisioningState = "Failed" )
ProvisioningState constants
type ServicePrincipalProfile ¶
type ServicePrincipalProfile struct { // The client ID used for the cluster ClientID string `json:"clientId,omitempty"` // The client secret used for the cluster ClientSecret string `json:"clientSecret,omitempty"` }
ServicePrincipalProfile represents a service principal profile.
type Tags ¶
Tags represents an OpenShift cluster's tags.
func (*Tags) UnmarshalJSON ¶
UnmarshalJSON unmarshals tags. We override this to ensure that PATCH behaviour overwrites an existing tags map rather than endlessly adding to it
type WorkerProfile ¶
type WorkerProfile struct { // The worker profile name. Must be "worker" (immutable). Name string `json:"name,omitempty"` // The size of the worker VMs (immutable). VMSize VMSize `json:"vmSize,omitempty"` // The disk size of the worker VMs. Must be 128 or greater (immutable). DiskSizeGB int `json:"diskSizeGB,omitempty"` // The Azure resource ID of the worker subnet (immutable). SubnetID string `json:"subnetId,omitempty"` // The number of worker VMs. Must be between 3 and 20. Count int `json:"count,omitempty" mutable:"true"` }
WorkerProfile represents a worker profile.