Skip to content

Commit

Permalink
refactor: added no lint for resource types
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-esp committed Mar 4, 2025
1 parent 46cea9d commit ec8420f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/pkg/scalable/cronjobs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/scalable/daemonsets.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/scalable/horizontalpodautoscalers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/scalable/jobs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/scalable/poddisruptionbudgets.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/scalable/prometheuses.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/scalable/rollouts.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down
3 changes: 2 additions & 1 deletion internal/pkg/scalable/scaledobjects.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand All @@ -14,7 +15,7 @@ const (
annotationKedaPausedReplicas = "autoscaling.keda.sh/paused-replicas"
)

// getScaledObjects is the getResourceFunc for Keda ScaledObjects.
// getScaledObjects is the getResourceFunc for Keda ScaledObjects. //nolint:dupl.
func getScaledObjects(namespace string, clientsets *Clientsets, ctx context.Context) ([]Workload, error) {
scaledobjects, err := clientsets.Keda.KedaV1alpha1().ScaledObjects(namespace).List(ctx, metav1.ListOptions{})
if err != nil {
Expand Down
4 changes: 3 additions & 1 deletion internal/pkg/scalable/stacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// getStacks is the getResourceFunc for Zalando Stacks.
// getStacks is the getResourceFunc for Zalando Stacks. //nolint:dupl.
//
//nolint:dupl // necessary to handle different workload types separately
func getStacks(namespace string, clientsets *Clientsets, ctx context.Context) ([]Workload, error) {
stacks, err := clientsets.Zalando.ZalandoV1().Stacks(namespace).List(ctx, metav1.ListOptions{})
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/scalable/statefulsets.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:dupl // necessary to handle different workload types separately
package scalable

import (
Expand Down

0 comments on commit ec8420f

Please sign in to comment.