Ver código fonte

Move Karpenter consts within the top const block

Signed-off-by: pokom <mark.poko@grafana.com>
pokom 3 anos atrás
pai
commit
28d8c8633b
1 arquivos alterados com 5 adições e 7 exclusões
  1. 5 7
      pkg/cloud/models/models.go

+ 5 - 7
pkg/cloud/models/models.go

@@ -20,9 +20,11 @@ var (
 )
 
 const (
-	AuthSecretPath          = "/var/secrets/service-key.json"
-	StorageConfigSecretPath = "/var/azure-storage-config/azure-storage-config.json"
-	DefaultShareTenancyCost = "true"
+	AuthSecretPath                 = "/var/secrets/service-key.json"
+	StorageConfigSecretPath        = "/var/azure-storage-config/azure-storage-config.json"
+	DefaultShareTenancyCost        = "true"
+	KarpenterCapacityTypeLabel     = "karpenter.sh/capacity-type"
+	KarpenterCapacitySpotTypeValue = "spot"
 )
 
 // ReservedInstanceData keeps record of resources on a node should be
@@ -299,7 +301,3 @@ type ProviderConfig interface {
 	Update(func(*CustomPricing) error) (*CustomPricing, error)
 	UpdateFromMap(map[string]string) (*CustomPricing, error)
 }
-
-const KarpenterCapacityTypeLabel = "karpenter.sh/capacity-type"
-
-const KarpenterCapacitySpotTypeValue = "spot"