Skip to content

Commit ed3fb63

Browse files
committed
minor fixes
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
1 parent 0dcc8a8 commit ed3fb63

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

charts/hub-agent/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
- --resource-changes-collection-duration={{ .Values.resourceChangesCollectionDuration }}
5656
- --azure-property-checker-enabled={{ .Values.azurePropertyChecker.isEnabled }}
5757
{{- if .Values.azurePropertyChecker.isEnabled }}
58-
- --azure-property-checker-config-file={{ .Values.azurePropertyChecker.computeServiceAddressWithBasePath }}
58+
- --azure-compute-server-address-={{ .Values.azurePropertyChecker.computeServiceAddressWithBasePath }}
5959
{{- end }}
6060
ports:
6161
- name: metrics

cmd/hubagent/workload/setup.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,23 +358,22 @@ func SetupControllers(ctx context.Context, wg *sync.WaitGroup, mgr ctrl.Manager,
358358

359359
// Set up the scheduler
360360
klog.Info("Setting up scheduler")
361-
defaultProfile := profile.NewDefaultProfile()
361+
schedulerProfile := profile.NewDefaultProfile()
362362
if opts.AzurePropertyCheckerOptions.IsEnabled() {
363363
klog.Info("Azure property checker is enabled for cluster property validation")
364364
client, err := compute.NewAttributeBasedVMSizeRecommenderClient(opts.AzurePropertyCheckerOptions.ComputeServiceAddressWithBasePath(), httputil.DefaultClientForAzure)
365365
if err != nil {
366366
klog.ErrorS(err, "unable to create azure vm size recommender client")
367367
return err
368368
}
369-
370369
klog.Info("Setting up cluster affinity plugin with Azure property checker")
371370
clusterAffinityPlugin := clusteraffinity.New(clusteraffinity.WithPropertyChecker(azure.NewPropertyChecker(*client)))
372371
profileOpts := profile.Options{
373372
ClusterAffinityPlugin: &clusterAffinityPlugin,
374373
}
375-
defaultProfile = profile.NewProfile(profileOpts)
374+
schedulerProfile = profile.NewProfile(profileOpts)
376375
}
377-
defaultFramework := framework.NewFramework(defaultProfile, mgr)
376+
defaultFramework := framework.NewFramework(schedulerProfile, mgr)
378377
defaultSchedulingQueue := queue.NewSimplePlacementSchedulingQueue(
379378
queue.WithName(schedulerQueueName),
380379
)

0 commit comments

Comments
 (0)