Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Infras = infras{ { Name: "basic-cluster", ResourceGroup: uniqueResourceGroup(), Location: getLocation(), Suffix: uuid.New().String(), }, { Name: "private-cluster", ResourceGroup: uniqueResourceGroup(), Location: getLocation(), Suffix: uuid.New().String(), McOpts: []clients.McOpt{clients.PrivateClusterOpt}, }, { Name: "osm-cluster", ResourceGroup: uniqueResourceGroup(), Location: getLocation(), Suffix: uuid.New().String(), McOpts: []clients.McOpt{clients.OsmClusterOpt, clients.VmCountOpt(8)}, }, }
Infras is a list of infrastructure configurations the e2e tests will run against
Functions ¶
func Deploy ¶
func Deploy(p []Provisioned) error
Types ¶
type Identifier ¶
type Identifier interface {
GetId() string
}
type LoadableProvisioned ¶
type LoadableProvisioned struct {
Name string
Cluster azure.Resource
ClusterLocation, ClusterDnsServiceIp, ClusterPrincipalId, ClusterClientId, ClusterOidcUrl string
ClusterOptions map[string]struct{}
ManagedIdentity azure.Resource
ManagedIdentityClientId string
ManagedIdentityPrincipalId string
ManagedIdentityZone withLoadableCert[LoadableZone]
ManagedIdentityPrivateZone withLoadableCert[azure.Resource]
ContainerRegistry azure.Resource
Zones []withLoadableCert[LoadableZone]
PrivateZones []withLoadableCert[azure.Resource]
KeyVault azure.Resource
ResourceGroup arm.ResourceID // rg id is a little weird and can't be correctly parsed by azure.Resource so we have to use arm.ResourceID
SubscriptionId string
TenantId string
E2eImage string
OperatorImage string
}
LoadableProvisioned is a struct that can be used to load a Provisioned struct from a file. Ensure that all fields are exported so that they can properly be serialized/deserialized.
func ToLoadable ¶
func ToLoadable(p []Provisioned) ([]LoadableProvisioned, error)
func (LoadableProvisioned) Provisioned ¶
func (l LoadableProvisioned) Provisioned() (Provisioned, error)
type LoadableZone ¶
type PrivateZone ¶
type PrivateZone interface {
GetDnsZone(ctx context.Context) (*armprivatedns.PrivateZone, error)
LinkVnet(ctx context.Context, linkName, vnetId string) error
GetName() string
Identifier
}
type Provisioned ¶
type Provisioned struct {
Name string
Cluster cluster
ContainerRegistry containerRegistry
ManagedIdentity managedIdentity
ManagedIdentityZone WithCert[Zone]
ManagedIdentityPrivateZone WithCert[PrivateZone]
Zones []WithCert[Zone]
PrivateZones []WithCert[PrivateZone]
KeyVault keyVault
ResourceGroup resourceGroup
SubscriptionId string
TenantId string
E2eImage string
OperatorImage string
}
func ToProvisioned ¶
func ToProvisioned(l []LoadableProvisioned) ([]Provisioned, error)
func (Provisioned) Loadable ¶
func (p Provisioned) Loadable() (LoadableProvisioned, error)
Click to show internal directories.
Click to hide internal directories.