This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
/
types.go
65 lines (57 loc) · 1.76 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package cloudconfig
import (
providerv1alpha1 "github.com/giantswarm/apiextensions/v6/pkg/apis/provider/v1alpha1"
"github.com/giantswarm/certs/v4/pkg/certs"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
capz "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
capzexp "sigs.k8s.io/cluster-api-provider-azure/exp/api/v1beta1"
capi "sigs.k8s.io/cluster-api/api/v1beta1"
capiexp "sigs.k8s.io/cluster-api/exp/api/v1beta1"
)
type templateData struct {
azureCNIFileParams
calicoAzureFileParams
cloudProviderConfFileParams
certificateDecrypterUnitParams
ingressLBFileParams
}
type azureCNIFileParams struct {
VnetCIDR string
}
type calicoAzureFileParams struct {
Cluster providerv1alpha1.Cluster
CalicoCIDR string
}
type cloudProviderConfFileParams struct {
AADClientID string
AADClientSecret string
EnvironmentName string
Location string
PrimaryScaleSetName string
ResourceGroup string
RouteTableName string
SecurityGroupName string
SubnetName string
SubscriptionID string
TenantID string
VnetName string
UseManagedIdentityExtension bool
}
type certificateDecrypterUnitParams struct {
CertsPaths []string
}
type ingressLBFileParams struct {
ClusterDNSDomain string
}
type IgnitionTemplateData struct {
AzureMachinePool *capzexp.AzureMachinePool
AzureCluster *capz.AzureCluster
Cluster *capi.Cluster
CustomObject providerv1alpha1.AzureConfig
EncryptionConf []byte
Images k8scloudconfig.Images
MachinePool *capiexp.MachinePool
MasterCertFiles []certs.File
Versions k8scloudconfig.Versions
WorkerCertFiles []certs.File
}