From b0d38fb46eafbd62de7e18f8c69e24ab87833ea0 Mon Sep 17 00:00:00 2001 From: Huaqing Mo Date: Wed, 1 Nov 2023 14:05:28 +0800 Subject: [PATCH] Add comment --- pkg/util/labels/helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/util/labels/helpers.go b/pkg/util/labels/helpers.go index 7ff9e099..ce8cb283 100644 --- a/pkg/util/labels/helpers.go +++ b/pkg/util/labels/helpers.go @@ -27,6 +27,8 @@ import ( ) const ( + // ClusterAutoscalerCAPIGPULabel is the label added to nodes with GPU resource, which will be used by clusterAutoscaler-CAPI. + // ref: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/clusterapi/README.md#special-note-on-gpu-instances ClusterAutoscalerCAPIGPULabel = "cluster-api/accelerator" )