Skip to content

Commit 58c232d

Browse files
author
Ashish Nair
committed
fix: Updated the config name to EnableHomeAZ
1 parent 0ded5a3 commit 58c232d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cns/configuration/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type CNSConfig struct {
3535
EnableSubnetScarcity bool
3636
EnableSwiftV2 bool
3737
InitializeFromCNI bool
38-
EnableHomeAz bool
38+
EnableHomeAZ bool
3939
KeyVaultSettings KeyVaultSettings
4040
MSISettings MSISettings
4141
ManageEndpointState bool

cns/service/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ func main() {
670670
homeAzMonitor := restserver.NewHomeAzMonitor(nmaClient, time.Duration(cnsconfig.AZRSettings.PopulateHomeAzCacheRetryIntervalSecs)*time.Second)
671671
// homeAz monitor is required when there is a direct channel between DNC and CNS OR when homeAz feature is enabled in CNS for AKS-Swift
672672
// This will prevent the monitor from unnecessarily calling NMA APIs for other scenarios such as AKS-swift, swiftv2 when disabled.
673-
if cnsconfig.ChannelMode == cns.Direct || cnsconfig.EnableHomeAz {
673+
if cnsconfig.ChannelMode == cns.Direct || cnsconfig.EnableHomeAZ {
674674
homeAzMonitor.Start()
675675
defer homeAzMonitor.Stop()
676676
}
@@ -1304,7 +1304,7 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
13041304
directscopedcli := nncctrl.NewScopedClient(directnnccli, types.NamespacedName{Namespace: "kube-system", Name: nodeName})
13051305

13061306
// Create the base NNC CRD if HomeAz is enabled
1307-
if cnsconfig.EnableHomeAz {
1307+
if cnsconfig.EnableHomeAZ {
13081308
homeAzResponse := httpRestServiceImplementation.GetHomeAz(ctx)
13091309
az := homeAzResponse.HomeAzResponse.HomeAz
13101310
logger.Printf("[Azure CNS] HomeAz: %d", az)

0 commit comments

Comments
 (0)