Skip to content

Commit

Permalink
dissabled all linter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Disper committed Dec 5, 2024
1 parent 54904ae commit 3d10341
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ linters-settings:
# Settings per analyzer.

linters:
disable-all: true
enable:
## enabled by default
- errcheck # checking for unchecked errors, these unchecked errors can be critical bugs in some cases
- gosimple # specializes in simplifying a code
- govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- ineffassign # detects when assignments to existing variables are not used
- staticcheck # is a go vet on steroids, applying a ton of static analysis checks
- typecheck # like the front-end of a Go compiler, parses and type-checks Go code
- unused # checks for unused constants, variables, functions and types

issues:
Expand Down
1 change: 1 addition & 0 deletions pkg/gardener/shoot/extender/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func getAnnotations(runtime imv1.Runtime) map[string]string {
if isEuAccess(runtime.Spec.Shoot.PlatformRegion) {
annotations[ShootRestrictedEUAccessAnnotation] = "true"
}
annotations["disper-from-code"] = "value"

return annotations
}
Expand Down
1 change: 1 addition & 0 deletions pkg/gardener/shoot/extender/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func ExtendWithLabels(runtime imv1.Runtime, shoot *gardener.Shoot) error {
labels := map[string]string{
ShootGlobalAccountLabel: runtime.Labels[RuntimeGlobalAccountLabel],
ShootSubAccountLabel: runtime.Labels[RuntimeSubaccountLabel],
"disper-from-code": "value",
}

shoot.Labels = labels
Expand Down
8 changes: 3 additions & 5 deletions pkg/gardener/shoot/extender/tolerations.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import (
)

func ExtendWithTolerations(runtime imv1.Runtime, shoot *gardener.Shoot) error {
if runtime.Spec.Shoot.Region == "me-central2" {
shoot.Spec.Tolerations = append(shoot.Spec.Tolerations, gardener.Toleration{
Key: "ksa-assured-workload",
})
}
shoot.Spec.Tolerations = append(shoot.Spec.Tolerations, gardener.Toleration{
Key: "ksa-assured-workload",
})
return nil
}

0 comments on commit 3d10341

Please sign in to comment.