Skip to content

Commit

Permalink
Merge pull request #139 from jwcesign/main
Browse files Browse the repository at this point in the history
fix: fix csi topology scheduling
  • Loading branch information
jwcesign authored Nov 21, 2024
2 parents e95d989 + 026c329 commit b74372d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/samber/lo"
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/karpenter/pkg/apis/v1beta1"
v1 "sigs.k8s.io/karpenter/pkg/apis/v1"
"sigs.k8s.io/karpenter/pkg/operator"

alicache "github.com/cloudpilot-ai/karpenter-provider-alibabacloud/pkg/cache"
Expand All @@ -42,7 +42,7 @@ import (
)

func init() {
v1beta1.NormalizedLabels = lo.Assign(v1beta1.NormalizedLabels, map[string]string{"topology.diskplugin.csi.alibabacloud.com/zone": corev1.LabelTopologyZone})
v1.NormalizedLabels = lo.Assign(v1.NormalizedLabels, map[string]string{"topology.diskplugin.csi.alibabacloud.com/zone": corev1.LabelTopologyZone})
}

// Operator is injected into the AliCloud CloudProvider's factories
Expand Down

0 comments on commit b74372d

Please sign in to comment.