2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-03-22 11:03:15 -04:00
|
|
|
package azure
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2022-11-09 08:43:48 -05:00
|
|
|
"encoding/json"
|
2022-03-22 11:03:15 -04:00
|
|
|
"fmt"
|
|
|
|
"net/http"
|
|
|
|
"regexp"
|
|
|
|
|
|
|
|
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
|
2022-06-10 07:18:30 -04:00
|
|
|
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights"
|
2022-07-27 16:02:33 -04:00
|
|
|
armcomputev2 "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v2"
|
2022-03-22 11:03:15 -04:00
|
|
|
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
|
|
|
|
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
|
2022-10-24 10:58:21 -04:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/cloud"
|
2022-11-09 08:43:48 -05:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/cloud/azureshared"
|
2022-09-21 07:47:57 -04:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/cloud/metadata"
|
2022-03-22 11:03:15 -04:00
|
|
|
)
|
|
|
|
|
2022-05-24 04:04:42 -04:00
|
|
|
var (
|
2022-08-29 05:54:30 -04:00
|
|
|
publicIPAddressRegexp = regexp.MustCompile(`/subscriptions/[^/]+/resourceGroups/[^/]+/providers/Microsoft.Network/publicIPAddresses/(?P<IPname>[^/]+)`)
|
|
|
|
keyPathRegexp = regexp.MustCompile(`^\/home\/([^\/]+)\/\.ssh\/authorized_keys$`)
|
2022-05-24 04:04:42 -04:00
|
|
|
)
|
|
|
|
|
2022-03-22 11:03:15 -04:00
|
|
|
// Metadata implements azure metadata APIs.
|
|
|
|
type Metadata struct {
|
|
|
|
imdsAPI
|
2022-05-24 04:04:42 -04:00
|
|
|
virtualNetworksAPI
|
|
|
|
securityGroupsAPI
|
2022-03-22 11:03:15 -04:00
|
|
|
networkInterfacesAPI
|
2022-05-24 04:04:42 -04:00
|
|
|
publicIPAddressesAPI
|
2022-03-22 11:03:15 -04:00
|
|
|
scaleSetsAPI
|
2022-05-24 04:04:42 -04:00
|
|
|
loadBalancerAPI
|
2022-03-22 11:03:15 -04:00
|
|
|
virtualMachineScaleSetVMsAPI
|
|
|
|
tagsAPI
|
2022-06-10 07:18:30 -04:00
|
|
|
applicationInsightsAPI
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewMetadata creates a new Metadata.
|
|
|
|
func NewMetadata(ctx context.Context) (*Metadata, error) {
|
|
|
|
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
// The default http client may use a system-wide proxy and it is recommended to disable the proxy explicitly:
|
|
|
|
// https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service?tabs=linux#proxies
|
|
|
|
// See also: https://github.com/microsoft/azureimds/blob/master/imdssample.go#L10
|
|
|
|
imdsAPI := imdsClient{
|
|
|
|
client: &http.Client{Transport: &http.Transport{Proxy: nil}},
|
|
|
|
}
|
2022-08-29 05:54:30 -04:00
|
|
|
subscriptionID, err := imdsAPI.SubscriptionID(ctx)
|
2022-03-22 11:03:15 -04:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2022-07-27 16:02:33 -04:00
|
|
|
virtualNetworksAPI, err := armnetwork.NewVirtualNetworksClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
networkInterfacesAPI, err := armnetwork.NewInterfacesClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
publicIPAddressesAPI, err := armnetwork.NewPublicIPAddressesClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
securityGroupsAPI, err := armnetwork.NewSecurityGroupsClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
scaleSetsAPI, err := armcomputev2.NewVirtualMachineScaleSetsClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
loadBalancerAPI, err := armnetwork.NewLoadBalancersClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
virtualMachineScaleSetVMsAPI, err := armcomputev2.NewVirtualMachineScaleSetVMsClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
tagsAPI, err := armresources.NewTagsClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
applicationInsightsAPI, err := armapplicationinsights.NewComponentsClient(subscriptionID, cred, nil)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2022-03-22 11:03:15 -04:00
|
|
|
|
|
|
|
return &Metadata{
|
|
|
|
imdsAPI: &imdsAPI,
|
2022-07-27 16:02:33 -04:00
|
|
|
networkInterfacesAPI: networkInterfacesAPI,
|
2022-10-24 18:49:58 -04:00
|
|
|
virtualNetworksAPI: virtualNetworksAPI,
|
2022-07-27 16:02:33 -04:00
|
|
|
securityGroupsAPI: securityGroupsAPI,
|
|
|
|
publicIPAddressesAPI: publicIPAddressesAPI,
|
|
|
|
loadBalancerAPI: loadBalancerAPI,
|
|
|
|
scaleSetsAPI: scaleSetsAPI,
|
|
|
|
virtualMachineScaleSetVMsAPI: virtualMachineScaleSetVMsAPI,
|
|
|
|
tagsAPI: tagsAPI,
|
|
|
|
applicationInsightsAPI: applicationInsightsAPI,
|
2022-03-22 11:03:15 -04:00
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// List retrieves all instances belonging to the current constellation.
|
2022-06-28 10:08:05 -04:00
|
|
|
func (m *Metadata) List(ctx context.Context) ([]metadata.InstanceMetadata, error) {
|
2022-08-29 05:54:30 -04:00
|
|
|
resourceGroup, err := m.imdsAPI.ResourceGroup(ctx)
|
2022-03-22 11:03:15 -04:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
scaleSetInstances, err := m.listScaleSetVMs(ctx, resourceGroup)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2022-06-28 10:08:05 -04:00
|
|
|
return scaleSetInstances, nil
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Self retrieves the current instance.
|
2022-06-28 10:08:05 -04:00
|
|
|
func (m *Metadata) Self(ctx context.Context) (metadata.InstanceMetadata, error) {
|
2022-03-22 11:03:15 -04:00
|
|
|
providerID, err := m.providerID(ctx)
|
|
|
|
if err != nil {
|
2022-06-28 10:08:05 -04:00
|
|
|
return metadata.InstanceMetadata{}, err
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|
|
|
|
return m.GetInstance(ctx, providerID)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetInstance retrieves an instance using its providerID.
|
2022-06-28 10:08:05 -04:00
|
|
|
func (m *Metadata) GetInstance(ctx context.Context, providerID string) (metadata.InstanceMetadata, error) {
|
2022-03-22 11:03:15 -04:00
|
|
|
instance, scaleSetErr := m.getScaleSetVM(ctx, providerID)
|
|
|
|
if scaleSetErr == nil {
|
|
|
|
return instance, nil
|
|
|
|
}
|
2022-06-28 10:08:05 -04:00
|
|
|
return metadata.InstanceMetadata{}, fmt.Errorf("retrieving instance given providerID %v: %w", providerID, scaleSetErr)
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|
|
|
|
|
2022-05-24 04:04:42 -04:00
|
|
|
// GetNetworkSecurityGroupName returns the security group name of the resource group.
|
|
|
|
func (m *Metadata) GetNetworkSecurityGroupName(ctx context.Context) (string, error) {
|
2022-08-29 05:54:30 -04:00
|
|
|
resourceGroup, err := m.imdsAPI.ResourceGroup(ctx)
|
2022-05-24 04:04:42 -04:00
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
|
|
|
|
nsg, err := m.getNetworkSecurityGroup(ctx, resourceGroup)
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
if nsg == nil || nsg.Name == nil {
|
|
|
|
return "", fmt.Errorf("could not dereference network security group name")
|
|
|
|
}
|
|
|
|
return *nsg.Name, nil
|
|
|
|
}
|
|
|
|
|
2022-10-24 18:49:58 -04:00
|
|
|
// getSubnetworkCIDR retrieves the subnetwork CIDR from cloud provider metadata.
|
|
|
|
func (m *Metadata) getSubnetworkCIDR(ctx context.Context) (string, error) {
|
2022-08-29 05:54:30 -04:00
|
|
|
resourceGroup, err := m.imdsAPI.ResourceGroup(ctx)
|
2022-05-24 04:04:42 -04:00
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
virtualNetwork, err := m.getVirtualNetwork(ctx, resourceGroup)
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
if virtualNetwork == nil || virtualNetwork.Properties == nil || len(virtualNetwork.Properties.Subnets) == 0 ||
|
|
|
|
virtualNetwork.Properties.Subnets[0].Properties == nil || virtualNetwork.Properties.Subnets[0].Properties.AddressPrefix == nil {
|
|
|
|
return "", fmt.Errorf("could not retrieve subnetwork CIDR from virtual network %v", virtualNetwork)
|
|
|
|
}
|
|
|
|
|
|
|
|
return *virtualNetwork.Properties.Subnets[0].Properties.AddressPrefix, nil
|
|
|
|
}
|
|
|
|
|
2022-07-29 10:30:24 -04:00
|
|
|
// UID retrieves the UID of the constellation.
|
|
|
|
func (m *Metadata) UID(ctx context.Context) (string, error) {
|
2022-08-29 05:54:30 -04:00
|
|
|
return m.imdsAPI.UID(ctx)
|
2022-07-29 10:30:24 -04:00
|
|
|
}
|
|
|
|
|
2022-05-24 04:04:42 -04:00
|
|
|
// getLoadBalancer retrieves the load balancer from cloud provider metadata.
|
|
|
|
func (m *Metadata) getLoadBalancer(ctx context.Context) (*armnetwork.LoadBalancer, error) {
|
2022-08-29 05:54:30 -04:00
|
|
|
resourceGroup, err := m.imdsAPI.ResourceGroup(ctx)
|
2022-05-24 04:04:42 -04:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2022-08-29 05:54:30 -04:00
|
|
|
|
2022-07-27 16:02:33 -04:00
|
|
|
pager := m.loadBalancerAPI.NewListPager(resourceGroup, nil)
|
2022-05-24 04:04:42 -04:00
|
|
|
|
2022-07-27 16:02:33 -04:00
|
|
|
for pager.More() {
|
|
|
|
page, err := pager.NextPage(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("retrieving loadbalancer page: %w", err)
|
|
|
|
}
|
|
|
|
for _, lb := range page.Value {
|
2022-05-24 04:04:42 -04:00
|
|
|
if lb != nil && lb.Properties != nil {
|
|
|
|
return lb, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("could not get any load balancer")
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetLoadBalancerName returns the load balancer name of the resource group.
|
|
|
|
func (m *Metadata) GetLoadBalancerName(ctx context.Context) (string, error) {
|
|
|
|
lb, err := m.getLoadBalancer(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
if lb == nil || lb.Name == nil {
|
|
|
|
return "", fmt.Errorf("could not dereference load balancer name")
|
|
|
|
}
|
|
|
|
return *lb.Name, nil
|
|
|
|
}
|
|
|
|
|
2022-08-01 10:51:34 -04:00
|
|
|
// GetLoadBalancerEndpoint retrieves the first load balancer IP from cloud provider metadata.
|
|
|
|
//
|
|
|
|
// The returned string is an IP address without a port, but the method name needs to satisfy the
|
|
|
|
// metadata interface.
|
|
|
|
func (m *Metadata) GetLoadBalancerEndpoint(ctx context.Context) (string, error) {
|
2022-05-24 04:04:42 -04:00
|
|
|
lb, err := m.getLoadBalancer(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
if lb == nil || lb.Properties == nil {
|
|
|
|
return "", fmt.Errorf("could not dereference load balancer IP configuration")
|
|
|
|
}
|
|
|
|
|
|
|
|
var pubIPID string
|
|
|
|
for _, fipConf := range lb.Properties.FrontendIPConfigurations {
|
|
|
|
if fipConf == nil || fipConf.Properties == nil || fipConf.Properties.PublicIPAddress == nil || fipConf.Properties.PublicIPAddress.ID == nil {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
pubIPID = *fipConf.Properties.PublicIPAddress.ID
|
|
|
|
break
|
|
|
|
}
|
|
|
|
|
|
|
|
if pubIPID == "" {
|
|
|
|
return "", fmt.Errorf("could not find public IP address reference in load balancer")
|
|
|
|
}
|
|
|
|
|
|
|
|
matches := publicIPAddressRegexp.FindStringSubmatch(pubIPID)
|
|
|
|
if len(matches) != 2 {
|
|
|
|
return "", fmt.Errorf("could not find public IP address name in load balancer: %v", pubIPID)
|
|
|
|
}
|
|
|
|
pubIPName := matches[1]
|
|
|
|
|
2022-08-29 05:54:30 -04:00
|
|
|
resourceGroup, err := m.imdsAPI.ResourceGroup(ctx)
|
2022-05-24 04:04:42 -04:00
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
2022-08-29 05:54:30 -04:00
|
|
|
|
2022-05-24 04:04:42 -04:00
|
|
|
resp, err := m.publicIPAddressesAPI.Get(ctx, resourceGroup, pubIPName, nil)
|
|
|
|
if err != nil {
|
|
|
|
return "", fmt.Errorf("could not retrieve public IP address: %w", err)
|
|
|
|
}
|
|
|
|
if resp.Properties == nil || resp.Properties.IPAddress == nil {
|
|
|
|
return "", fmt.Errorf("could not resolve public IP address reference for load balancer")
|
|
|
|
}
|
|
|
|
return *resp.Properties.IPAddress, nil
|
|
|
|
}
|
|
|
|
|
2022-11-09 08:43:48 -05:00
|
|
|
// GetCCMConfig returns the configuration needed for the CCM on Azure.
|
|
|
|
func (m *Metadata) GetCCMConfig(ctx context.Context, providerID string, cloudServiceAccountURI string) ([]byte, error) {
|
|
|
|
subscriptionID, resourceGroup, err := azureshared.BasicsFromProviderID(providerID)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
creds, err := azureshared.ApplicationCredentialsFromURI(cloudServiceAccountURI)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
vmType := "standard"
|
|
|
|
if _, _, _, _, err := azureshared.ScaleSetInformationFromProviderID(providerID); err == nil {
|
|
|
|
vmType = "vmss"
|
|
|
|
}
|
|
|
|
|
|
|
|
securityGroupName, err := m.GetNetworkSecurityGroupName(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
loadBalancerName, err := m.GetLoadBalancerName(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
config := cloudConfig{
|
|
|
|
Cloud: "AzurePublicCloud",
|
|
|
|
TenantID: creds.TenantID,
|
|
|
|
SubscriptionID: subscriptionID,
|
|
|
|
ResourceGroup: resourceGroup,
|
|
|
|
LoadBalancerSku: "standard",
|
|
|
|
SecurityGroupName: securityGroupName,
|
|
|
|
LoadBalancerName: loadBalancerName,
|
|
|
|
UseInstanceMetadata: true,
|
|
|
|
VMType: vmType,
|
|
|
|
Location: creds.Location,
|
|
|
|
AADClientID: creds.AppClientID,
|
|
|
|
AADClientSecret: creds.ClientSecretValue,
|
|
|
|
}
|
|
|
|
|
|
|
|
return json.Marshal(config)
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// providerID retrieves the current instances providerID.
|
|
|
|
func (m *Metadata) providerID(ctx context.Context) (string, error) {
|
2022-08-29 05:54:30 -04:00
|
|
|
providerID, err := m.imdsAPI.ProviderID(ctx)
|
2022-03-22 11:03:15 -04:00
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
2022-08-29 05:54:30 -04:00
|
|
|
return "azure://" + providerID, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Metadata) getAppInsights(ctx context.Context) (*armapplicationinsights.Component, error) {
|
|
|
|
resourceGroup, err := m.imdsAPI.ResourceGroup(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
uid, err := m.UID(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
pager := m.applicationInsightsAPI.NewListByResourceGroupPager(resourceGroup, nil)
|
|
|
|
|
|
|
|
for pager.More() {
|
|
|
|
nextResult, err := pager.NextPage(ctx)
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("retrieving application insights page: %w", err)
|
|
|
|
}
|
|
|
|
for _, component := range nextResult.Value {
|
|
|
|
if component == nil || component.Tags == nil {
|
|
|
|
continue
|
|
|
|
}
|
2022-10-06 06:14:41 -04:00
|
|
|
|
2022-10-24 10:58:21 -04:00
|
|
|
tag, ok := component.Tags[cloud.TagUID]
|
2022-10-06 06:14:41 -04:00
|
|
|
if !ok || tag == nil {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
if *tag == uid {
|
2022-08-29 05:54:30 -04:00
|
|
|
return component, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil, fmt.Errorf("could not find correctly tagged application insights")
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// extractInstanceTags converts azure tags into metadata key-value pairs.
|
|
|
|
func extractInstanceTags(tags map[string]*string) map[string]string {
|
|
|
|
metadataMap := map[string]string{}
|
|
|
|
for key, value := range tags {
|
|
|
|
if value == nil {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
metadataMap[key] = *value
|
|
|
|
}
|
|
|
|
return metadataMap
|
|
|
|
}
|
|
|
|
|
|
|
|
// extractSSHKeys extracts SSH public keys from azure instance OS Profile.
|
2022-07-27 16:02:33 -04:00
|
|
|
func extractSSHKeys(sshConfig armcomputev2.SSHConfiguration) map[string][]string {
|
2022-03-22 11:03:15 -04:00
|
|
|
sshKeys := map[string][]string{}
|
|
|
|
for _, key := range sshConfig.PublicKeys {
|
|
|
|
if key == nil || key.Path == nil || key.KeyData == nil {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
matches := keyPathRegexp.FindStringSubmatch(*key.Path)
|
|
|
|
if len(matches) != 2 {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
sshKeys[matches[1]] = append(sshKeys[matches[1]], *key.KeyData)
|
|
|
|
}
|
|
|
|
return sshKeys
|
|
|
|
}
|
2022-11-09 08:43:48 -05:00
|
|
|
|
|
|
|
type cloudConfig struct {
|
|
|
|
Cloud string `json:"cloud,omitempty"`
|
|
|
|
TenantID string `json:"tenantId,omitempty"`
|
|
|
|
SubscriptionID string `json:"subscriptionId,omitempty"`
|
|
|
|
ResourceGroup string `json:"resourceGroup,omitempty"`
|
|
|
|
Location string `json:"location,omitempty"`
|
|
|
|
SubnetName string `json:"subnetName,omitempty"`
|
|
|
|
SecurityGroupName string `json:"securityGroupName,omitempty"`
|
|
|
|
SecurityGroupResourceGroup string `json:"securityGroupResourceGroup,omitempty"`
|
|
|
|
LoadBalancerName string `json:"loadBalancerName,omitempty"`
|
|
|
|
LoadBalancerSku string `json:"loadBalancerSku,omitempty"`
|
|
|
|
VNetName string `json:"vnetName,omitempty"`
|
|
|
|
VNetResourceGroup string `json:"vnetResourceGroup,omitempty"`
|
|
|
|
CloudProviderBackoff bool `json:"cloudProviderBackoff,omitempty"`
|
|
|
|
UseInstanceMetadata bool `json:"useInstanceMetadata,omitempty"`
|
|
|
|
VMType string `json:"vmType,omitempty"`
|
|
|
|
AADClientID string `json:"aadClientId,omitempty"`
|
|
|
|
AADClientSecret string `json:"aadClientSecret,omitempty"`
|
|
|
|
}
|