Documentation
¶
Index ¶
- Constants
- func ToInternal(oc *OpenShiftManagedCluster, old *api.OpenShiftManagedCluster) (*api.OpenShiftManagedCluster, error)
- type AADIdentityProvider
- type AgentPoolProfile
- type AgentPoolProfileRole
- type AuthProfile
- type IdentityProvider
- type MasterPoolProfile
- type NetworkProfile
- type OSType
- type OpenShiftManagedCluster
- type Properties
- type ProvisioningState
- type ResourcePurchasePlan
- type RouterProfile
- type VMSize
Constants ¶
const (
// APIVersion is the version of this API
APIVersion = "2018-09-30-preview"
)
Variables ¶
This section is empty.
Functions ¶
func ToInternal ¶
func ToInternal(oc *OpenShiftManagedCluster, old *api.OpenShiftManagedCluster) (*api.OpenShiftManagedCluster, error)
ToInternal converts from a v20180930preview.OpenShiftManagedCluster to an internal.OpenShiftManagedCluster. If old is non-nil, it is going to be used as the base for the internal output where the external request is merged on top of.
Types ¶
type AADIdentityProvider ¶
type AADIdentityProvider struct {
Kind *string `json:"kind,omitempty"`
ClientID *string `json:"clientId,omitempty"`
Secret *string `json:"secret,omitempty"`
TenantID *string `json:"tenantId,omitempty"`
// CustomerAdminGroupID group memberships will get synced into the OpenShift group "osa-customer-admins"
CustomerAdminGroupID *string `json:"customerAdminGroupId,omitempty"`
}
AADIdentityProvider defines Identity provider for MS AAD. It is based on OpenID IdentityProvider.
type AgentPoolProfile ¶
type AgentPoolProfile struct {
Name *string `json:"name,omitempty"`
Count *int64 `json:"count,omitempty"`
VMSize *VMSize `json:"vmSize,omitempty"`
SubnetCIDR *string `json:"subnetCidr,omitempty"`
OSType *OSType `json:"osType,omitempty"`
Role *AgentPoolProfileRole `json:"role,omitempty"`
}
AgentPoolProfile represents configuration of OpenShift cluster VMs.
type AgentPoolProfileRole ¶
type AgentPoolProfileRole string
AgentPoolProfileRole represents the role of the AgentPoolProfile.
const ( // AgentPoolProfileRoleCompute is the compute role. AgentPoolProfileRoleCompute AgentPoolProfileRole = "compute" // AgentPoolProfileRoleInfra is the infra role. AgentPoolProfileRoleInfra AgentPoolProfileRole = "infra" )
type AuthProfile ¶
type AuthProfile struct {
IdentityProviders []IdentityProvider `json:"identityProviders,omitempty"`
}
AuthProfile defines all possible authentication profiles for the OpenShift cluster.
type IdentityProvider ¶
type IdentityProvider struct {
Name *string `json:"name,omitempty"`
Provider interface{} `json:"provider,omitempty"`
}
IdentityProvider is heavily cut down equivalent to IdentityProvider in the upstream.
func (*IdentityProvider) UnmarshalJSON ¶
func (ip *IdentityProvider) UnmarshalJSON(b []byte) error
type MasterPoolProfile ¶
type MasterPoolProfile struct {
Count *int64 `json:"count,omitempty"`
VMSize *VMSize `json:"vmSize,omitempty"`
SubnetCIDR *string `json:"subnetCidr,omitempty"`
}
MasterPoolProfile contains configuration for OpenShift master VMs.
type NetworkProfile ¶
type NetworkProfile struct {
// VnetCIDR (in): the CIDR with which the OSA cluster's Vnet is configured
VnetCIDR *string `json:"vnetCidr,omitempty"`
// VnetID (out): the ID of the Vnet created for the OSA cluster
VnetID *string `json:"vnetId,omitempty"`
// PeerVnetID (in, optional): ID of a Vnet with which the OSA cluster Vnet should be peered.
// If specified, this should match
// `^/subscriptions/[^/]+
// /resourceGroups/[^/]+
// /providers/Microsoft.Network
// /virtualNetworks/[^/]+$`
PeerVnetID *string `json:"peerVnetId,omitempty"`
}
NetworkProfile contains configuration for OpenShift networking.
type OpenShiftManagedCluster ¶
type OpenShiftManagedCluster struct {
autorest.Response `json:"-"`
Plan *ResourcePurchasePlan `json:"plan,omitempty"`
Properties *Properties `json:"properties,omitempty"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags map[string]*string `json:"tags"`
}
OpenShiftManagedCluster complies with the ARM model of resource definition in a JSON template.
func FromInternal ¶
func FromInternal(cs *api.OpenShiftManagedCluster) *OpenShiftManagedCluster
FromInternal converts from an internal.OpenShiftManagedCluster to a v20180930preview.OpenShiftManagedCluster.
type Properties ¶
type Properties struct {
// ProvisioningState (out): current state of the OSA resource.
ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
// OpenShiftVersion (in): OpenShift version to be created/updated, e.g.
// `v3.11`.
OpenShiftVersion *string `json:"openShiftVersion,omitempty"`
// ClusterVersion (out): RP version at which cluster was last
// created/updated
ClusterVersion *string `json:"clusterVersion,omitempty"`
// PublicHostname (out): public hostname of OpenShift API server.
PublicHostname *string `json:"publicHostname,omitempty"`
// FQDN (out): Auto-allocated internal FQDN for OpenShift API server.
FQDN *string `json:"fqdn,omitempty"`
// NetworkProfile (in): Configuration for OpenShift networking.
NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
// RouterProfiles (in,optional/out): Configuration for OpenShift router(s).
RouterProfiles []RouterProfile `json:"routerProfiles,omitempty"`
// MasterPoolProfile (in): Configuration for OpenShift master VMs.
MasterPoolProfile *MasterPoolProfile `json:"masterPoolProfile,omitempty"`
// AgentPoolProfiles (in): configuration of OpenShift cluster VMs.
AgentPoolProfiles []AgentPoolProfile `json:"agentPoolProfiles,omitempty"`
// AuthProfile (in): configures OpenShift authentication
AuthProfile *AuthProfile `json:"authProfile,omitempty"`
}
Properties represents the cluster definition.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState represents the current state of the OSA resource.
const ( // Creating means the OSA resource is being created. Creating ProvisioningState = "Creating" // Updating means the existing OSA resource is being updated. Updating ProvisioningState = "Updating" // AdminUpdating means the existing OSA resource is being updated with admin privileges. AdminUpdating ProvisioningState = "AdminUpdating" // Failed means the OSA resource is in failed state. Failed ProvisioningState = "Failed" // Succeeded means the last create/update succeeded. Succeeded ProvisioningState = "Succeeded" // Deleting means the OSA resource is being deleted. Deleting ProvisioningState = "Deleting" // Migrating means the OSA resource is being migrated from one subscription // or resource group to another. Migrating ProvisioningState = "Migrating" // Upgrading means the existing OSA resource is being upgraded. Upgrading ProvisioningState = "Upgrading" )
type ResourcePurchasePlan ¶
type ResourcePurchasePlan struct {
Name *string `json:"name,omitempty"`
Product *string `json:"product,omitempty"`
PromotionCode *string `json:"promotionCode,omitempty"`
Publisher *string `json:"publisher,omitempty"`
}
ResourcePurchasePlan defines the resource plan as required by ARM for billing purposes.
type RouterProfile ¶
type RouterProfile struct {
Name *string `json:"name,omitempty"`
// PublicSubdomain (out): DNS subdomain for OpenShift router. The OpenShift
// master is configured with the PublicSubdomain of the "default"
// RouterProfile.
PublicSubdomain *string `json:"publicSubdomain,omitempty"`
// FQDN (out): Auto-allocated internal FQDN for the OpenShift router.
FQDN *string `json:"fqdn,omitempty"`
}
RouterProfile represents an OpenShift router.
type VMSize ¶
type VMSize string
VMSize represents supported VMSizes
const ( // General purpose VMs StandardD2sV3 VMSize = "Standard_D2s_v3" StandardD4sV3 VMSize = "Standard_D4s_v3" StandardD8sV3 VMSize = "Standard_D8s_v3" StandardD16sV3 VMSize = "Standard_D16s_v3" StandardD32sV3 VMSize = "Standard_D32s_v3" // Memory optimized VMs StandardE4sV3 VMSize = "Standard_E4s_v3" StandardE8sV3 VMSize = "Standard_E8s_v3" StandardE16sV3 VMSize = "Standard_E16s_v3" StandardE32sV3 VMSize = "Standard_E32s_v3" // Compute optimized VMs StandardF8sV2 VMSize = "Standard_F8s_v2" StandardF16sV2 VMSize = "Standard_F16s_v2" StandardF32sV2 VMSize = "Standard_F32s_v2" )
VMSizes. Keep in sync with MaxDataDisksPerVM()