Skip to content

Commit c04e9df

Browse files
authored
Default network features as standard for aks extension
1 parent ae76503 commit c04e9df

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

operator/controllers/configurator/storage_drivers/anf.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import (
2121
)
2222

2323
const (
24-
MountOptionNconnect = "4"
24+
MountOptionNconnect = "4"
25+
NetworkFeaturesStandard = "Standard"
2526
)
2627

2728
type ANF struct {

operator/controllers/configurator/storage_drivers/yaml_factory.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func getANFTBCYaml(anf *ANF, vPools, nasType string) string {
2626
tbcYaml = strings.ReplaceAll(tbcYaml, "{SUBNET}", anf.Subnet)
2727
tbcYaml = strings.ReplaceAll(tbcYaml, "{NAS_TYPE}", nasType)
2828
tbcYaml = strings.ReplaceAll(tbcYaml, "{V_POOLS}", vPools)
29+
tbcYaml = strings.ReplaceAll(tbcYaml, "{NETWORK_FEATURES}", NetworkFeaturesStandard)
2930
tbcYaml = yaml.ReplaceMultilineTag(tbcYaml, "CUSTOMER_ENCRYPTION_KEYS", constructEncryptionKeys(anf.CustomerEncryptionKeys))
3031
tbcYaml = strings.ReplaceAll(tbcYaml, "{SUPPORTED_TOPOLOGIES}",
3132
constructANFSupportedTopologies(anf.Location, anf.AvailabilityZones))
@@ -54,6 +55,7 @@ spec:
5455
virtualNetwork: {VIRTUAL_NETWORK}
5556
subnet: {SUBNET}
5657
subscriptionID: {SUBSCRIPTION_ID}
58+
networkFeatures: {NETWORK_FEATURES}
5759
tenantID: {TENANT_ID}
5860
location: {LOCATION}
5961
{CLIENT_CREDENTIALS}

0 commit comments

Comments
 (0)