mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
Set Go toolchain to v1.26.1 and apply modernizations (#138)
This change makes sure that we use the latest Go version when building and applies some modernization fixes.
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ func main() {
|
||||
|
||||
defaultLabelsMap := make(map[string]string)
|
||||
if defaultLabels != "" {
|
||||
for _, s := range strings.Split(defaultLabels, ",") {
|
||||
for s := range strings.SplitSeq(defaultLabels, ",") {
|
||||
kv := strings.Split(s, "=")
|
||||
if len(kv) != 2 {
|
||||
panic(fmt.Errorf("invalid label format: %s", s))
|
||||
|
||||
Reference in New Issue
Block a user