mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
Update Golang CI Lint to the latest version (#113)
This change updates Golang CI Lint to the latest version and fixes new linter errors that came along with the update. These changes were split out of #112 and are required to update the Go version.
This commit is contained in:
@@ -194,6 +194,7 @@ func (r *ServiceReconciler) exposeService(ctx context.Context, req ctrl.Request,
|
||||
func (r *ServiceReconciler) reconcileNBResource(nbResource *netbirdiov1.NBResource, req ctrl.Request, svc corev1.Service, routingPeer netbirdiov1.NBRoutingPeer, logger logr.Logger) error {
|
||||
groups := []string{fmt.Sprintf("%s-%s-%s", r.ClusterName, req.Namespace, req.Name)}
|
||||
if v, ok := svc.Annotations[serviceGroupsAnnotation]; ok {
|
||||
//nolint:prealloc
|
||||
groups = nil
|
||||
for _, g := range strings.Split(v, ",") {
|
||||
groups = append(groups, strings.TrimSpace(g))
|
||||
|
||||
Reference in New Issue
Block a user