diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 19e3aedca9cf..77599da4c280 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,6 +37,24 @@ jobs: run: hack/verify-all.sh -v env: GO111MODULE: auto + + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler/balancer + version: v1.60 + + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler/cluster-autoscaler + version: v1.60 + + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler/vertical-pod-autoscaler + version: v1.60 - name: Test working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler diff --git a/vertical-pod-autoscaler/pkg/updater/priority/update_priority_calculator.go b/vertical-pod-autoscaler/pkg/updater/priority/update_priority_calculator.go index 047782122fef..5ae8361c1d70 100644 --- a/vertical-pod-autoscaler/pkg/updater/priority/update_priority_calculator.go +++ b/vertical-pod-autoscaler/pkg/updater/priority/update_priority_calculator.go @@ -193,9 +193,9 @@ func (calc *UpdatePriorityCalculator) GetProcessedRecommendationTargets(r *vpa_t return sb.String() } -func parseVpaObservedContainers(pod *apiv1.Pod) (bool, sets.Set[string]) { +func parseVpaObservedContainers(pod *apiv1.Pod) (bool, sets.String) { observedContainers, hasObservedContainers := pod.GetAnnotations()[annotations.VpaObservedContainersLabel] - vpaContainerSet := sets.New[string]() + vpaContainerSet := sets.NewString() if hasObservedContainers { if containers, err := annotations.ParseVpaObservedContainersValue(observedContainers); err != nil { klog.ErrorS(err, "VPA annotation failed to parse", "pod", klog.KObj(pod), "annotation", observedContainers)