Skip to content

Commit 8fc0728

Browse files
🌱 Update Update Golang Dependencies group (patch) (#1115)
🌱 Update Golang Dependencies group to v2.120.1 | datasource | package | from | to | | ---------- | -------------- | -------- | -------- | | go | k8s.io/klog/v2 | v2.120.0 | v2.120.1 | address golangci lints Signed-off-by: kranurag7 <[email protected]> Co-authored-by: syself-bot[bot] <115953087+syself-bot[bot]@users.noreply.github.com>
1 parent 8388712 commit 8fc0728

File tree

8 files changed

+46
-19
lines changed

8 files changed

+46
-19
lines changed

api/v1beta1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ type HCloudNetworkZone string
232232

233233
// IsZero returns true if a private Network is set.
234234
func (s *HCloudNetworkSpec) IsZero() bool {
235-
if len(s.CIDRBlock) > 0 {
235+
if s.CIDRBlock != "" {
236236
return false
237237
}
238-
if len(s.SubnetCIDRBlock) > 0 {
238+
if s.SubnetCIDRBlock != "" {
239239
return false
240240
}
241241
return true

controllers/csr_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,15 @@ func (r *GuestCSRReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Mana
246246
For(&certificatesv1.CertificateSigningRequest{}).
247247
WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(ctrl.LoggerFrom(ctx), r.WatchFilterValue)).
248248
WithEventFilter(predicate.Funcs{
249-
DeleteFunc: func(e event.DeleteEvent) bool {
249+
DeleteFunc: func(_ event.DeleteEvent) bool {
250250
// We don't want to listen to delete events, as CSRs are deleted frequently without us having to do something
251251
return false
252252
},
253-
GenericFunc: func(e event.GenericEvent) bool {
253+
GenericFunc: func(_ event.GenericEvent) bool {
254254
// We don't want to listen to generic events, as CSRs are genericd frequently without us having to do something
255255
return false
256256
},
257-
UpdateFunc: func(e event.UpdateEvent) bool {
257+
UpdateFunc: func(_ event.UpdateEvent) bool {
258258
// We don't want to listen to Update events, as CSRs are Updated frequently without us having to do something
259259
return false
260260
},

controllers/hcloudmachine_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ func IgnoreHetznerClusterConditionUpdates(logger logr.Logger) predicate.Funcs {
351351
return true
352352
},
353353
// We only care about Update events, anything else should be reconciled
354-
CreateFunc: func(e event.CreateEvent) bool { return true },
355-
DeleteFunc: func(e event.DeleteEvent) bool { return true },
356-
GenericFunc: func(e event.GenericEvent) bool { return true },
354+
CreateFunc: func(_ event.CreateEvent) bool { return true },
355+
DeleteFunc: func(_ event.DeleteEvent) bool { return true },
356+
GenericFunc: func(_ event.GenericEvent) bool { return true },
357357
}
358358
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
k8s.io/apimachinery v0.28.4
2020
k8s.io/apiserver v0.28.4
2121
k8s.io/client-go v0.28.4
22-
k8s.io/klog/v2 v2.120.0
22+
k8s.io/klog/v2 v2.120.1
2323
k8s.io/kubectl v0.28.4
2424
k8s.io/utils v0.0.0-20240102154912-e7106e64919e
2525
sigs.k8s.io/cluster-api v1.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ k8s.io/cluster-bootstrap v0.28.4 h1:4MKNy1Qd9QY7pl47rSMGIORF+tm3CUaqC1M8U9bjn4Q=
752752
k8s.io/cluster-bootstrap v0.28.4/go.mod h1:/c4ro/R4yf4EtJgFgFtvnHkbDOHwubeKJXh5R1c89Bc=
753753
k8s.io/component-base v0.28.4 h1:c/iQLWPdUgI90O+T9TeECg8o7N3YJTiuz2sKxILYcYo=
754754
k8s.io/component-base v0.28.4/go.mod h1:m9hR0uvqXDybiGL2nf/3Lf0MerAfQXzkfWhUY58JUbU=
755-
k8s.io/klog/v2 v2.120.0 h1:z+q5mfovBj1fKFxiRzsa2DsJLPIVMk/KFL81LMOfK+8=
756-
k8s.io/klog/v2 v2.120.0/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
755+
k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw=
756+
k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
757757
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 h1:LyMgNKD2P8Wn1iAwQU5OhxCKlKJy0sHc+PcDwFB24dQ=
758758
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9/go.mod h1:wZK2AVp1uHCp4VamDVgBP2COHZjqD1T68Rf0CM3YjSM=
759759
k8s.io/kubectl v0.28.4 h1:gWpUXW/T7aFne+rchYeHkyB8eVDl5UZce8G4X//kjUQ=

vendor/k8s.io/klog/v2/textlogger/options.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/klog/v2/textlogger/textlogger.go

Lines changed: 13 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ k8s.io/component-base/metrics/legacyregistry
10191019
k8s.io/component-base/metrics/prometheus/feature
10201020
k8s.io/component-base/metrics/prometheusextension
10211021
k8s.io/component-base/version
1022-
# k8s.io/klog/v2 v2.120.0
1022+
# k8s.io/klog/v2 v2.120.1
10231023
## explicit; go 1.18
10241024
k8s.io/klog/v2
10251025
k8s.io/klog/v2/internal/buffer

0 commit comments

Comments
 (0)