Documentation ¶
Index ¶
- Variables
- func LoadAcr(id azure.Resource) *acr
- func LoadAks(id azure.Resource, dnsServiceIp, location, principalId, clientId string, ...) *aks
- func LoadPrivateZone(id azure.Resource) *privateZone
- func LoadRg(id arm.ResourceID) *rg
- func LoadZone(id azure.Resource, nameservers []string) *zone
- func NewAcr(ctx context.Context, subscriptionId, resourceGroup, name, location string) (*acr, error)
- func NewAks(ctx context.Context, subscriptionId, resourceGroup, name, location string, ...) (*aks, error)
- func NewNginxDeployment() *appsv1.Deployment
- func NewNginxService() *corev1.Service
- func NewPrivateZone(ctx context.Context, subscriptionId, resourceGroup, name string, ...) (*privateZone, error)
- func NewResourceGroup(ctx context.Context, subscriptionId, name, location string, rgOpts ...RgOpt) (*rg, error)
- func NewRoleAssignment(ctx context.Context, subscriptionId, scope, principalId string, role Role) (*roleAssignment, error)
- func NewZone(ctx context.Context, subscriptionId, resourceGroup, name string, ...) (*zone, error)
- func WithPreferSystemNodes(spec *corev1.PodSpec) *corev1.PodSpec
- type McOpt
- type PrivateZoneOpt
- type RgOpt
- type Role
- type ZoneOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DnsContributorRole = Role{ Name: "DNS Zone Contributor", Id: "/subscriptions/%s/providers/Microsoft.Authorization/roleDefinitions/befefa01-2a29-4197-83a8-272ff33ce314", } PrivateDnsContributorRole = Role{ Name: "Private DNS Zone Contributor", Id: "/subscriptions/%s/providers/Microsoft.Authorization/roleDefinitions/b12aa53e-6015-4669-85d0-8515ebb3ae7f", } AcrPullRole = Role{ Name: "AcrPull", Id: "/subscriptions/%s/providers/Microsoft.Authorization/roleDefinitions/7f951dda-4ed3-4680-a7ca-43fe172d538d", } )
View Source
var OsmClusterOpt = McOpt{ Name: "osm cluster", // contains filtered or unexported fields }
View Source
var PrivateClusterOpt = McOpt{ Name: "private cluster", // contains filtered or unexported fields }
PrivateClusterOpt specifies that the cluster should be private
Functions ¶
func LoadPrivateZone ¶
func LoadRg ¶
func LoadRg(id arm.ResourceID) *rg
func NewNginxDeployment ¶
func NewNginxDeployment() *appsv1.Deployment
returns manifest for a basic nginx deployment
func NewPrivateZone ¶
func NewPrivateZone(ctx context.Context, subscriptionId, resourceGroup, name string, opts ...PrivateZoneOpt) (*privateZone, error)
func NewResourceGroup ¶
func NewRoleAssignment ¶
Types ¶
type McOpt ¶
type McOpt struct { Name string // contains filtered or unexported fields }
McOpt specifies what kind of managed cluster to create
type PrivateZoneOpt ¶
type PrivateZoneOpt func(z *armprivatedns.PrivateZone) error
PrivateZoneOpt specifies what kind of private zone to create
Click to show internal directories.
Click to hide internal directories.