From 388cd88bf38d702f93a8ec691a50f05f001d6fb9 Mon Sep 17 00:00:00 2001 From: rmedina97 Date: Fri, 18 Apr 2025 14:17:48 +0000 Subject: [PATCH 1/2] Bump lint to go v1.24 e golang-lint 1.64.2 --- .github/workflows/lint.yaml | 25 ++++++++++--------- .golangci.yml | 19 ++++++++------ .../v1alpha1/discovery_status.go | 2 +- .../advertisement/v1alpha1/discovery_types.go | 2 +- .../v1alpha1/groupversion_info.go | 2 +- .../v1alpha1/peeringcandidate_types.go | 2 +- apis/network/v1alpha1/groupversion_info.go | 2 +- apis/network/v1alpha1/knowncluster_status.go | 2 +- apis/network/v1alpha1/knowncluster_types.go | 2 +- apis/nodecore/v1alpha1/allocation_status.go | 2 +- apis/nodecore/v1alpha1/allocation_types.go | 2 +- apis/nodecore/v1alpha1/common.go | 2 +- apis/nodecore/v1alpha1/flavor_types.go | 2 +- apis/nodecore/v1alpha1/flavor_types_common.go | 2 +- apis/nodecore/v1alpha1/flavor_webhook.go | 2 +- apis/nodecore/v1alpha1/groupversion_info.go | 2 +- .../v1alpha1/k8slice_configuration.go | 2 +- apis/nodecore/v1alpha1/k8slice_flavor.go | 2 +- apis/nodecore/v1alpha1/k8slice_selector.go | 2 +- apis/nodecore/v1alpha1/network_intent.go | 2 +- apis/nodecore/v1alpha1/selector.go | 2 +- apis/nodecore/v1alpha1/sensor_flavor.go | 2 +- apis/nodecore/v1alpha1/service_blueprint.go | 2 +- .../v1alpha1/service_blueprint_webhook.go | 2 +- .../v1alpha1/service_configuration.go | 2 +- apis/nodecore/v1alpha1/service_flavor.go | 2 +- apis/nodecore/v1alpha1/service_selector.go | 2 +- apis/nodecore/v1alpha1/solver_status.go | 2 +- apis/nodecore/v1alpha1/solver_types.go | 2 +- apis/nodecore/v1alpha1/solver_webhook.go | 2 +- apis/nodecore/v1alpha1/vm_flavor.go | 2 +- apis/reservation/v1alpha1/contract_types.go | 2 +- apis/reservation/v1alpha1/contract_webhook.go | 2 +- .../reservation/v1alpha1/groupversion_info.go | 2 +- .../v1alpha1/reservation_status.go | 2 +- .../reservation/v1alpha1/reservation_types.go | 2 +- .../v1alpha1/reservation_webhook.go | 2 +- .../reservation/v1alpha1/transaction_types.go | 2 +- .../v1alpha1/transaction_webhook.go | 2 +- cmd/local-resource-manager/doc.go | 2 +- cmd/local-resource-manager/main.go | 2 +- cmd/network-manager/doc.go | 2 +- cmd/network-manager/main.go | 2 +- cmd/rear-controller/doc.go | 2 +- cmd/rear-controller/main.go | 2 +- cmd/rear-manager/doc.go | 2 +- cmd/rear-manager/main.go | 2 +- go.mod | 2 +- pkg/local-resource-manager/doc.go | 2 +- pkg/local-resource-manager/node_controller.go | 2 +- pkg/local-resource-manager/node_services.go | 2 +- .../serviceblueprint_controller.go | 2 +- pkg/network-manager/doc.go | 2 +- pkg/rear-controller/contract-manager/doc.go | 2 +- .../contract-manager/models.go | 2 +- .../reservation_controller.go | 2 +- .../discovery-manager/discovery_controller.go | 2 +- pkg/rear-controller/discovery-manager/doc.go | 2 +- .../discovery-manager/peeringcandidate_wh.go | 3 +-- pkg/rear-controller/doc.go | 2 +- pkg/rear-controller/gateway/client.go | 2 +- pkg/rear-controller/gateway/doc.go | 2 +- pkg/rear-controller/gateway/gateway.go | 2 +- pkg/rear-controller/gateway/provider.go | 2 +- pkg/rear-controller/gateway/routes.go | 2 +- pkg/rear-controller/gateway/services.go | 2 +- pkg/rear-controller/gateway/utils.go | 2 +- pkg/rear-controller/grpc/doc.go | 2 +- .../grpc/liqo-resource-manager.go | 2 +- pkg/rear-controller/grpc/service.go | 2 +- pkg/rear-manager/allocation_controller.go | 2 +- pkg/rear-manager/allocation_wh.go | 2 +- pkg/rear-manager/doc.go | 2 +- pkg/rear-manager/solver_controller.go | 5 +++- pkg/utils/common/common.go | 2 +- pkg/utils/common/doc.go | 2 +- pkg/utils/consts/consts.go | 2 +- pkg/utils/consts/doc.go | 2 +- pkg/utils/flags/doc.go | 2 +- pkg/utils/flags/flags.go | 2 +- pkg/utils/getters/doc.go | 2 +- pkg/utils/getters/getters.go | 2 +- pkg/utils/models/doc.go | 2 +- pkg/utils/models/filters.go | 2 +- .../flavor-k8slice-configuration-models.go | 2 +- pkg/utils/models/flavor-k8slice-models.go | 2 +- pkg/utils/models/flavor-sensor-models.go | 2 +- .../flavor-service-configuration-models.go | 2 +- pkg/utils/models/flavor-service-models.go | 2 +- pkg/utils/models/flavor-vm-models.go | 2 +- pkg/utils/models/gateway.go | 2 +- pkg/utils/models/local-resource-manager.go | 2 +- pkg/utils/models/models.go | 2 +- pkg/utils/models/network-identity-models.go | 2 +- pkg/utils/models/reservation.go | 2 +- pkg/utils/namings/doc.go | 2 +- pkg/utils/namings/namings.go | 2 +- pkg/utils/parseutil/doc.go | 2 +- pkg/utils/parseutil/parseutil.go | 2 +- pkg/utils/resourceforge/doc.go | 2 +- pkg/utils/resourceforge/forge.go | 2 +- pkg/utils/services/doc.go | 2 +- pkg/utils/services/flavours_services.go | 2 +- pkg/utils/tools/doc.go | 2 +- pkg/utils/tools/tools.go | 2 +- pkg/virtual-fabric-manager/doc.go | 2 +- pkg/virtual-fabric-manager/services.go | 2 +- 107 files changed, 132 insertions(+), 126 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6a5faab8..c4af56b6 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -10,21 +10,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.sha }} - repository: ${{github.event.pull_request.head.repo.full_name}} + #ref: ${{ github.event.pull_request.head.sha }} + #repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Setup Go uses: actions/setup-go@v4 with: - go-version: "1.23" + go-version: "1.24" cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v3.7.0 with: only-new-issues: true - version: v1.60 + version: v1.64.2 args: --timeout=900s gomodtidy: @@ -35,14 +35,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: "${{ github.event.pull_request.head.sha }}" - repository: ${{github.event.pull_request.head.repo.full_name}} + #ref: "${{ github.event.pull_request.head.sha }}" + #repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Setup Go uses: actions/setup-go@v4 with: - go-version: "1.21" + go-version: "1.24" - name: Execute go mod tidy and check the outcome working-directory: ./ @@ -54,7 +54,8 @@ jobs: - name: Issue a comment in case the of failure uses: peter-evans/create-or-update-comment@v3 with: - token: ${{ secrets.CI_TOKEN }} + #token: ${{ secrets.CI_TOKEN }} + token: "dummy" issue-number: ${{ github.event.pull_request.number }} body: | The `go.mod` and/or `go.sum` files appear not to be correctly tidied. @@ -71,8 +72,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: "${{ github.event.pull_request.head.sha }}" - repository: ${{github.event.pull_request.head.repo.full_name}} + #ref: "${{ github.event.pull_request.head.sha }}" + #repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Run Shellcheck uses: ludeeus/action-shellcheck@2.0.0 @@ -87,8 +88,8 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: - ref: "${{ github.event.pull_request.head.sha }}" - repository: ${{github.event.pull_request.head.repo.full_name}} + #ref: "${{ github.event.pull_request.head.sha }}" + #repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Lint markdown files uses: avto-dev/markdown-lint@v1 diff --git a/.golangci.yml b/.golangci.yml index bd600575..582ac9e3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,10 +1,5 @@ run: timeout: 10m - skip-files: - - "zz_generated.*.go" - - "consts.go" - skip-dirs: - - "pkg/client" linters-settings: exhaustive: @@ -45,7 +40,7 @@ linters-settings: - prefix(github.com/fluidos-project/node) # Groups all imports with the specified Prefix. goconst: min-len: 2 - min-occurrences: 2 + min-occurrences: 3 gocritic: enabled-tags: - diagnostic @@ -59,7 +54,7 @@ linters-settings: goimports: local-prefixes: github.com/fluidos-project/node govet: - check-shadowing: true + shadow: true misspell: locale: US ignore-words: @@ -72,6 +67,8 @@ linters-settings: require-specific: true # require nolint directives to be specific about which linter is being skipped dupl: threshold: 300 + gocyclo: + min-complexity: 34 linters: disable-all: true @@ -84,7 +81,7 @@ linters: - errcheck - errorlint - exhaustive - - exportloopref + - copyloopvar # - funlen # - gochecknoglobals # - gochecknoinits @@ -129,6 +126,12 @@ linters: issues: #fix: true + exclude-files: + - "zz_generated.*.go" + - "consts.go" + exclude-dirs: + - "pkg/client" + max-issues-per-linter: 0 max-same-issues: 0 diff --git a/apis/advertisement/v1alpha1/discovery_status.go b/apis/advertisement/v1alpha1/discovery_status.go index 18edfcef..cdf1fce9 100644 --- a/apis/advertisement/v1alpha1/discovery_status.go +++ b/apis/advertisement/v1alpha1/discovery_status.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/advertisement/v1alpha1/discovery_types.go b/apis/advertisement/v1alpha1/discovery_types.go index b2990554..b0ece082 100644 --- a/apis/advertisement/v1alpha1/discovery_types.go +++ b/apis/advertisement/v1alpha1/discovery_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/advertisement/v1alpha1/groupversion_info.go b/apis/advertisement/v1alpha1/groupversion_info.go index ff5eddca..67d93250 100644 --- a/apis/advertisement/v1alpha1/groupversion_info.go +++ b/apis/advertisement/v1alpha1/groupversion_info.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/advertisement/v1alpha1/peeringcandidate_types.go b/apis/advertisement/v1alpha1/peeringcandidate_types.go index 857693a6..59d5bbe0 100644 --- a/apis/advertisement/v1alpha1/peeringcandidate_types.go +++ b/apis/advertisement/v1alpha1/peeringcandidate_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/network/v1alpha1/groupversion_info.go b/apis/network/v1alpha1/groupversion_info.go index aa7f3311..650454cb 100644 --- a/apis/network/v1alpha1/groupversion_info.go +++ b/apis/network/v1alpha1/groupversion_info.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/network/v1alpha1/knowncluster_status.go b/apis/network/v1alpha1/knowncluster_status.go index 9c4d323d..f70740e0 100644 --- a/apis/network/v1alpha1/knowncluster_status.go +++ b/apis/network/v1alpha1/knowncluster_status.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/network/v1alpha1/knowncluster_types.go b/apis/network/v1alpha1/knowncluster_types.go index b976f7f6..ca3d2720 100644 --- a/apis/network/v1alpha1/knowncluster_types.go +++ b/apis/network/v1alpha1/knowncluster_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/allocation_status.go b/apis/nodecore/v1alpha1/allocation_status.go index 578fc4a5..d23f34b2 100644 --- a/apis/nodecore/v1alpha1/allocation_status.go +++ b/apis/nodecore/v1alpha1/allocation_status.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/allocation_types.go b/apis/nodecore/v1alpha1/allocation_types.go index 5fec563b..b4a76b3b 100644 --- a/apis/nodecore/v1alpha1/allocation_types.go +++ b/apis/nodecore/v1alpha1/allocation_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/common.go b/apis/nodecore/v1alpha1/common.go index 4f54f321..a73f9e1d 100644 --- a/apis/nodecore/v1alpha1/common.go +++ b/apis/nodecore/v1alpha1/common.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/flavor_types.go b/apis/nodecore/v1alpha1/flavor_types.go index 5a8a1eaa..5c69f218 100644 --- a/apis/nodecore/v1alpha1/flavor_types.go +++ b/apis/nodecore/v1alpha1/flavor_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/flavor_types_common.go b/apis/nodecore/v1alpha1/flavor_types_common.go index f9f1bdb0..f33233b1 100644 --- a/apis/nodecore/v1alpha1/flavor_types_common.go +++ b/apis/nodecore/v1alpha1/flavor_types_common.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/flavor_webhook.go b/apis/nodecore/v1alpha1/flavor_webhook.go index e3a7a4ca..4067e842 100644 --- a/apis/nodecore/v1alpha1/flavor_webhook.go +++ b/apis/nodecore/v1alpha1/flavor_webhook.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/groupversion_info.go b/apis/nodecore/v1alpha1/groupversion_info.go index b551dfd9..f1e61845 100644 --- a/apis/nodecore/v1alpha1/groupversion_info.go +++ b/apis/nodecore/v1alpha1/groupversion_info.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/k8slice_configuration.go b/apis/nodecore/v1alpha1/k8slice_configuration.go index aa0e6467..b51f22b5 100644 --- a/apis/nodecore/v1alpha1/k8slice_configuration.go +++ b/apis/nodecore/v1alpha1/k8slice_configuration.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/k8slice_flavor.go b/apis/nodecore/v1alpha1/k8slice_flavor.go index 98da38e2..d2ae483d 100644 --- a/apis/nodecore/v1alpha1/k8slice_flavor.go +++ b/apis/nodecore/v1alpha1/k8slice_flavor.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/k8slice_selector.go b/apis/nodecore/v1alpha1/k8slice_selector.go index f181d054..04b50c54 100644 --- a/apis/nodecore/v1alpha1/k8slice_selector.go +++ b/apis/nodecore/v1alpha1/k8slice_selector.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/network_intent.go b/apis/nodecore/v1alpha1/network_intent.go index f1b61377..1a119a0d 100644 --- a/apis/nodecore/v1alpha1/network_intent.go +++ b/apis/nodecore/v1alpha1/network_intent.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/selector.go b/apis/nodecore/v1alpha1/selector.go index 9a7e3100..c807754b 100644 --- a/apis/nodecore/v1alpha1/selector.go +++ b/apis/nodecore/v1alpha1/selector.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/sensor_flavor.go b/apis/nodecore/v1alpha1/sensor_flavor.go index cfe9052b..cb892563 100644 --- a/apis/nodecore/v1alpha1/sensor_flavor.go +++ b/apis/nodecore/v1alpha1/sensor_flavor.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/service_blueprint.go b/apis/nodecore/v1alpha1/service_blueprint.go index 58c6cb8d..33edd496 100644 --- a/apis/nodecore/v1alpha1/service_blueprint.go +++ b/apis/nodecore/v1alpha1/service_blueprint.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/service_blueprint_webhook.go b/apis/nodecore/v1alpha1/service_blueprint_webhook.go index 0d5930e4..c91daa75 100644 --- a/apis/nodecore/v1alpha1/service_blueprint_webhook.go +++ b/apis/nodecore/v1alpha1/service_blueprint_webhook.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/service_configuration.go b/apis/nodecore/v1alpha1/service_configuration.go index a1b15fb2..63d2b376 100644 --- a/apis/nodecore/v1alpha1/service_configuration.go +++ b/apis/nodecore/v1alpha1/service_configuration.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/service_flavor.go b/apis/nodecore/v1alpha1/service_flavor.go index 4e67761e..ced0e071 100644 --- a/apis/nodecore/v1alpha1/service_flavor.go +++ b/apis/nodecore/v1alpha1/service_flavor.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/service_selector.go b/apis/nodecore/v1alpha1/service_selector.go index 7314d28c..dce9aa45 100644 --- a/apis/nodecore/v1alpha1/service_selector.go +++ b/apis/nodecore/v1alpha1/service_selector.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/solver_status.go b/apis/nodecore/v1alpha1/solver_status.go index 3c92f2e9..df987ed4 100644 --- a/apis/nodecore/v1alpha1/solver_status.go +++ b/apis/nodecore/v1alpha1/solver_status.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/solver_types.go b/apis/nodecore/v1alpha1/solver_types.go index 5c828228..83f3ffe5 100644 --- a/apis/nodecore/v1alpha1/solver_types.go +++ b/apis/nodecore/v1alpha1/solver_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/solver_webhook.go b/apis/nodecore/v1alpha1/solver_webhook.go index 5ca436ae..e4018685 100644 --- a/apis/nodecore/v1alpha1/solver_webhook.go +++ b/apis/nodecore/v1alpha1/solver_webhook.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/nodecore/v1alpha1/vm_flavor.go b/apis/nodecore/v1alpha1/vm_flavor.go index a3b3c47b..b2c5b407 100644 --- a/apis/nodecore/v1alpha1/vm_flavor.go +++ b/apis/nodecore/v1alpha1/vm_flavor.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/contract_types.go b/apis/reservation/v1alpha1/contract_types.go index 25eef9d6..df12c27e 100644 --- a/apis/reservation/v1alpha1/contract_types.go +++ b/apis/reservation/v1alpha1/contract_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/contract_webhook.go b/apis/reservation/v1alpha1/contract_webhook.go index 1aba310d..1f168908 100644 --- a/apis/reservation/v1alpha1/contract_webhook.go +++ b/apis/reservation/v1alpha1/contract_webhook.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/groupversion_info.go b/apis/reservation/v1alpha1/groupversion_info.go index 4f4df629..247c4fe9 100644 --- a/apis/reservation/v1alpha1/groupversion_info.go +++ b/apis/reservation/v1alpha1/groupversion_info.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/reservation_status.go b/apis/reservation/v1alpha1/reservation_status.go index 023e27da..3c997b25 100644 --- a/apis/reservation/v1alpha1/reservation_status.go +++ b/apis/reservation/v1alpha1/reservation_status.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/reservation_types.go b/apis/reservation/v1alpha1/reservation_types.go index 3492816c..3e930495 100644 --- a/apis/reservation/v1alpha1/reservation_types.go +++ b/apis/reservation/v1alpha1/reservation_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/reservation_webhook.go b/apis/reservation/v1alpha1/reservation_webhook.go index 9602af09..a608b7d8 100644 --- a/apis/reservation/v1alpha1/reservation_webhook.go +++ b/apis/reservation/v1alpha1/reservation_webhook.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/transaction_types.go b/apis/reservation/v1alpha1/transaction_types.go index c515316b..1a0a1b97 100644 --- a/apis/reservation/v1alpha1/transaction_types.go +++ b/apis/reservation/v1alpha1/transaction_types.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/reservation/v1alpha1/transaction_webhook.go b/apis/reservation/v1alpha1/transaction_webhook.go index 7d139892..c9478095 100644 --- a/apis/reservation/v1alpha1/transaction_webhook.go +++ b/apis/reservation/v1alpha1/transaction_webhook.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/local-resource-manager/doc.go b/cmd/local-resource-manager/doc.go index fc657dbf..16d3ddb3 100644 --- a/cmd/local-resource-manager/doc.go +++ b/cmd/local-resource-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/local-resource-manager/main.go b/cmd/local-resource-manager/main.go index 21ff641a..076f1d5e 100644 --- a/cmd/local-resource-manager/main.go +++ b/cmd/local-resource-manager/main.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/network-manager/doc.go b/cmd/network-manager/doc.go index c5e3f0b3..3ab7b861 100644 --- a/cmd/network-manager/doc.go +++ b/cmd/network-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/network-manager/main.go b/cmd/network-manager/main.go index c8f38956..5d0f04ca 100644 --- a/cmd/network-manager/main.go +++ b/cmd/network-manager/main.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/rear-controller/doc.go b/cmd/rear-controller/doc.go index 92bec81b..dafced29 100644 --- a/cmd/rear-controller/doc.go +++ b/cmd/rear-controller/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/rear-controller/main.go b/cmd/rear-controller/main.go index e5f10c31..3baf399b 100644 --- a/cmd/rear-controller/main.go +++ b/cmd/rear-controller/main.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/rear-manager/doc.go b/cmd/rear-manager/doc.go index 1a42002a..cc9c11af 100644 --- a/cmd/rear-manager/doc.go +++ b/cmd/rear-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cmd/rear-manager/main.go b/cmd/rear-manager/main.go index 2867a3a8..cfa9677b 100644 --- a/cmd/rear-manager/main.go +++ b/cmd/rear-manager/main.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/go.mod b/go.mod index b046032f..f167d30e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/fluidos-project/node //node -go 1.21.0 +go 1.24.0 require ( github.com/gorilla/mux v1.8.0 diff --git a/pkg/local-resource-manager/doc.go b/pkg/local-resource-manager/doc.go index aec290d2..bcbd846f 100644 --- a/pkg/local-resource-manager/doc.go +++ b/pkg/local-resource-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/local-resource-manager/node_controller.go b/pkg/local-resource-manager/node_controller.go index 679c376a..359972b0 100644 --- a/pkg/local-resource-manager/node_controller.go +++ b/pkg/local-resource-manager/node_controller.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/local-resource-manager/node_services.go b/pkg/local-resource-manager/node_services.go index bffa5adb..0042071f 100644 --- a/pkg/local-resource-manager/node_services.go +++ b/pkg/local-resource-manager/node_services.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/local-resource-manager/serviceblueprint_controller.go b/pkg/local-resource-manager/serviceblueprint_controller.go index 57110021..0b653753 100644 --- a/pkg/local-resource-manager/serviceblueprint_controller.go +++ b/pkg/local-resource-manager/serviceblueprint_controller.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/network-manager/doc.go b/pkg/network-manager/doc.go index 8560764f..e96df4a0 100644 --- a/pkg/network-manager/doc.go +++ b/pkg/network-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/contract-manager/doc.go b/pkg/rear-controller/contract-manager/doc.go index 77efbe7c..2559a52f 100644 --- a/pkg/rear-controller/contract-manager/doc.go +++ b/pkg/rear-controller/contract-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/contract-manager/models.go b/pkg/rear-controller/contract-manager/models.go index 1f845d8a..c2cd0f47 100644 --- a/pkg/rear-controller/contract-manager/models.go +++ b/pkg/rear-controller/contract-manager/models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/contract-manager/reservation_controller.go b/pkg/rear-controller/contract-manager/reservation_controller.go index 692c4de7..8338caca 100644 --- a/pkg/rear-controller/contract-manager/reservation_controller.go +++ b/pkg/rear-controller/contract-manager/reservation_controller.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/discovery-manager/discovery_controller.go b/pkg/rear-controller/discovery-manager/discovery_controller.go index 1a04f38e..ea6ec8c7 100644 --- a/pkg/rear-controller/discovery-manager/discovery_controller.go +++ b/pkg/rear-controller/discovery-manager/discovery_controller.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/discovery-manager/doc.go b/pkg/rear-controller/discovery-manager/doc.go index 8b3736ab..998b4e3e 100644 --- a/pkg/rear-controller/discovery-manager/doc.go +++ b/pkg/rear-controller/discovery-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/discovery-manager/peeringcandidate_wh.go b/pkg/rear-controller/discovery-manager/peeringcandidate_wh.go index f532d575..45f361fd 100644 --- a/pkg/rear-controller/discovery-manager/peeringcandidate_wh.go +++ b/pkg/rear-controller/discovery-manager/peeringcandidate_wh.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -114,7 +114,6 @@ func (v *PCValidator) HandleUpdate(_ context.Context, req admission.Request) adm return admission.Denied("Peering candidate can be updated if Available flag is changed from false to true") } - //nolint:lll // This is a long line return admission.Allowed("") } diff --git a/pkg/rear-controller/doc.go b/pkg/rear-controller/doc.go index 296aefa6..3a099fdd 100644 --- a/pkg/rear-controller/doc.go +++ b/pkg/rear-controller/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/gateway/client.go b/pkg/rear-controller/gateway/client.go index a53b841c..654b38d2 100644 --- a/pkg/rear-controller/gateway/client.go +++ b/pkg/rear-controller/gateway/client.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/gateway/doc.go b/pkg/rear-controller/gateway/doc.go index 43dc13a0..e936d0a2 100644 --- a/pkg/rear-controller/gateway/doc.go +++ b/pkg/rear-controller/gateway/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/gateway/gateway.go b/pkg/rear-controller/gateway/gateway.go index 14555029..5c002ee9 100644 --- a/pkg/rear-controller/gateway/gateway.go +++ b/pkg/rear-controller/gateway/gateway.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/gateway/provider.go b/pkg/rear-controller/gateway/provider.go index 2db70922..0b6c2b73 100644 --- a/pkg/rear-controller/gateway/provider.go +++ b/pkg/rear-controller/gateway/provider.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/gateway/routes.go b/pkg/rear-controller/gateway/routes.go index fa9d8ae9..6d9bccc0 100644 --- a/pkg/rear-controller/gateway/routes.go +++ b/pkg/rear-controller/gateway/routes.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/gateway/services.go b/pkg/rear-controller/gateway/services.go index a9586ad9..aeb937d8 100644 --- a/pkg/rear-controller/gateway/services.go +++ b/pkg/rear-controller/gateway/services.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/gateway/utils.go b/pkg/rear-controller/gateway/utils.go index 802a220a..da3a2418 100644 --- a/pkg/rear-controller/gateway/utils.go +++ b/pkg/rear-controller/gateway/utils.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/grpc/doc.go b/pkg/rear-controller/grpc/doc.go index 8b3f7d20..9c175c59 100644 --- a/pkg/rear-controller/grpc/doc.go +++ b/pkg/rear-controller/grpc/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/grpc/liqo-resource-manager.go b/pkg/rear-controller/grpc/liqo-resource-manager.go index 6e47f581..22e53fdf 100644 --- a/pkg/rear-controller/grpc/liqo-resource-manager.go +++ b/pkg/rear-controller/grpc/liqo-resource-manager.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-controller/grpc/service.go b/pkg/rear-controller/grpc/service.go index aea733cd..d6cc5ed1 100644 --- a/pkg/rear-controller/grpc/service.go +++ b/pkg/rear-controller/grpc/service.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-manager/allocation_controller.go b/pkg/rear-manager/allocation_controller.go index c67083e2..9aa6b522 100644 --- a/pkg/rear-manager/allocation_controller.go +++ b/pkg/rear-manager/allocation_controller.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-manager/allocation_wh.go b/pkg/rear-manager/allocation_wh.go index d0147275..15185700 100644 --- a/pkg/rear-manager/allocation_wh.go +++ b/pkg/rear-manager/allocation_wh.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-manager/doc.go b/pkg/rear-manager/doc.go index e861d7da..2bdfb899 100644 --- a/pkg/rear-manager/doc.go +++ b/pkg/rear-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/rear-manager/solver_controller.go b/pkg/rear-manager/solver_controller.go index d16bbfb3..5bdc1608 100644 --- a/pkg/rear-manager/solver_controller.go +++ b/pkg/rear-manager/solver_controller.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -223,6 +223,7 @@ func checkInitialStatus(solver *nodecorev1alpha1.Solver) bool { return false } +//nolint:unparam // result is required by the function func (r *SolverReconciler) handleFindCandidate(ctx context.Context, req ctrl.Request, solver *nodecorev1alpha1.Solver) (ctrl.Result, error) { findCandidateStatus := solver.Status.FindCandidate switch findCandidateStatus { @@ -349,6 +350,7 @@ func (r *SolverReconciler) getContractByPeeringCandidate(ctx context.Context, pc return contract, nil } +//nolint:unparam // result is required by the function func (r *SolverReconciler) handleReserveAndBuy(ctx context.Context, req ctrl.Request, solver *nodecorev1alpha1.Solver) (ctrl.Result, error) { reserveAndBuyStatus := solver.Status.ReserveAndBuy switch reserveAndBuyStatus { @@ -559,6 +561,7 @@ func contains(slice []string, s string) bool { return false } +//nolint:unparam // result is required by the function func (r *SolverReconciler) handlePeering( ctx context.Context, req ctrl.Request, diff --git a/pkg/utils/common/common.go b/pkg/utils/common/common.go index c9af726d..8e667edf 100644 --- a/pkg/utils/common/common.go +++ b/pkg/utils/common/common.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/common/doc.go b/pkg/utils/common/doc.go index 2a7dc30a..2d7ce90d 100644 --- a/pkg/utils/common/doc.go +++ b/pkg/utils/common/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/consts/consts.go b/pkg/utils/consts/consts.go index cc4a84bc..fe06f124 100644 --- a/pkg/utils/consts/consts.go +++ b/pkg/utils/consts/consts.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/consts/doc.go b/pkg/utils/consts/doc.go index 6e5022ee..a797cb24 100644 --- a/pkg/utils/consts/doc.go +++ b/pkg/utils/consts/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/flags/doc.go b/pkg/utils/flags/doc.go index a5fa486c..6d23267d 100644 --- a/pkg/utils/flags/doc.go +++ b/pkg/utils/flags/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/flags/flags.go b/pkg/utils/flags/flags.go index b8decf6d..3c013ba2 100644 --- a/pkg/utils/flags/flags.go +++ b/pkg/utils/flags/flags.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/getters/doc.go b/pkg/utils/getters/doc.go index df1053f4..11c08fef 100644 --- a/pkg/utils/getters/doc.go +++ b/pkg/utils/getters/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/getters/getters.go b/pkg/utils/getters/getters.go index 70bbcdba..2f5a6a00 100644 --- a/pkg/utils/getters/getters.go +++ b/pkg/utils/getters/getters.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/doc.go b/pkg/utils/models/doc.go index 899f6397..df7ba093 100644 --- a/pkg/utils/models/doc.go +++ b/pkg/utils/models/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/filters.go b/pkg/utils/models/filters.go index 87dfb4d8..61504b53 100644 --- a/pkg/utils/models/filters.go +++ b/pkg/utils/models/filters.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/flavor-k8slice-configuration-models.go b/pkg/utils/models/flavor-k8slice-configuration-models.go index ea390283..2ff97ed3 100644 --- a/pkg/utils/models/flavor-k8slice-configuration-models.go +++ b/pkg/utils/models/flavor-k8slice-configuration-models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/flavor-k8slice-models.go b/pkg/utils/models/flavor-k8slice-models.go index 164fc48d..cf8b4d3b 100644 --- a/pkg/utils/models/flavor-k8slice-models.go +++ b/pkg/utils/models/flavor-k8slice-models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/flavor-sensor-models.go b/pkg/utils/models/flavor-sensor-models.go index b6fb89f5..49942690 100644 --- a/pkg/utils/models/flavor-sensor-models.go +++ b/pkg/utils/models/flavor-sensor-models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/flavor-service-configuration-models.go b/pkg/utils/models/flavor-service-configuration-models.go index aab94d93..8765ae94 100644 --- a/pkg/utils/models/flavor-service-configuration-models.go +++ b/pkg/utils/models/flavor-service-configuration-models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/flavor-service-models.go b/pkg/utils/models/flavor-service-models.go index 8ae45e99..5dff13f3 100644 --- a/pkg/utils/models/flavor-service-models.go +++ b/pkg/utils/models/flavor-service-models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/flavor-vm-models.go b/pkg/utils/models/flavor-vm-models.go index a4bde867..4afce48e 100644 --- a/pkg/utils/models/flavor-vm-models.go +++ b/pkg/utils/models/flavor-vm-models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/gateway.go b/pkg/utils/models/gateway.go index 97b210a8..cac9babe 100644 --- a/pkg/utils/models/gateway.go +++ b/pkg/utils/models/gateway.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/local-resource-manager.go b/pkg/utils/models/local-resource-manager.go index 240bbc00..d7484bac 100644 --- a/pkg/utils/models/local-resource-manager.go +++ b/pkg/utils/models/local-resource-manager.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/models.go b/pkg/utils/models/models.go index a1089999..a9ed1f56 100644 --- a/pkg/utils/models/models.go +++ b/pkg/utils/models/models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/network-identity-models.go b/pkg/utils/models/network-identity-models.go index 04c6d366..49d9f639 100644 --- a/pkg/utils/models/network-identity-models.go +++ b/pkg/utils/models/network-identity-models.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/models/reservation.go b/pkg/utils/models/reservation.go index fa876164..bf87b04a 100644 --- a/pkg/utils/models/reservation.go +++ b/pkg/utils/models/reservation.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/namings/doc.go b/pkg/utils/namings/doc.go index 7d847b53..7f500a7a 100644 --- a/pkg/utils/namings/doc.go +++ b/pkg/utils/namings/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/namings/namings.go b/pkg/utils/namings/namings.go index 7f74cc54..605960b0 100644 --- a/pkg/utils/namings/namings.go +++ b/pkg/utils/namings/namings.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/parseutil/doc.go b/pkg/utils/parseutil/doc.go index f1670f09..8d0b8661 100644 --- a/pkg/utils/parseutil/doc.go +++ b/pkg/utils/parseutil/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/parseutil/parseutil.go b/pkg/utils/parseutil/parseutil.go index f190c1ac..85310e5d 100644 --- a/pkg/utils/parseutil/parseutil.go +++ b/pkg/utils/parseutil/parseutil.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/resourceforge/doc.go b/pkg/utils/resourceforge/doc.go index 378eb9c7..527bacd6 100644 --- a/pkg/utils/resourceforge/doc.go +++ b/pkg/utils/resourceforge/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/resourceforge/forge.go b/pkg/utils/resourceforge/forge.go index 9ed7cfb8..d4b85904 100644 --- a/pkg/utils/resourceforge/forge.go +++ b/pkg/utils/resourceforge/forge.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/services/doc.go b/pkg/utils/services/doc.go index 43a3d3e7..acbe4e02 100644 --- a/pkg/utils/services/doc.go +++ b/pkg/utils/services/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/services/flavours_services.go b/pkg/utils/services/flavours_services.go index 95ac0191..4c13d900 100644 --- a/pkg/utils/services/flavours_services.go +++ b/pkg/utils/services/flavours_services.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/tools/doc.go b/pkg/utils/tools/doc.go index 3813092d..2020a65b 100644 --- a/pkg/utils/tools/doc.go +++ b/pkg/utils/tools/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/utils/tools/tools.go b/pkg/utils/tools/tools.go index cbec3b0c..5817cb29 100644 --- a/pkg/utils/tools/tools.go +++ b/pkg/utils/tools/tools.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/virtual-fabric-manager/doc.go b/pkg/virtual-fabric-manager/doc.go index 329c4d41..b547191b 100644 --- a/pkg/virtual-fabric-manager/doc.go +++ b/pkg/virtual-fabric-manager/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/virtual-fabric-manager/services.go b/pkg/virtual-fabric-manager/services.go index 8ea21525..7326b739 100644 --- a/pkg/virtual-fabric-manager/services.go +++ b/pkg/virtual-fabric-manager/services.go @@ -1,4 +1,4 @@ -// Copyright 2022-2024 FLUIDOS Project +// Copyright 2022-2025 FLUIDOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 2b6729fc2704e397f3ef9dfee91f5c5f44d8c044 Mon Sep 17 00:00:00 2001 From: rmedina97 Date: Fri, 18 Apr 2025 14:35:13 +0000 Subject: [PATCH 2/2] Fix: lint from local testing to remote testing --- .github/workflows/lint.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c4af56b6..fd719106 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -10,8 +10,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - #ref: ${{ github.event.pull_request.head.sha }} - #repository: ${{github.event.pull_request.head.repo.full_name}} + ref: ${{ github.event.pull_request.head.sha }} + repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Setup Go @@ -35,8 +35,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - #ref: "${{ github.event.pull_request.head.sha }}" - #repository: ${{github.event.pull_request.head.repo.full_name}} + ref: "${{ github.event.pull_request.head.sha }}" + repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Setup Go @@ -54,8 +54,7 @@ jobs: - name: Issue a comment in case the of failure uses: peter-evans/create-or-update-comment@v3 with: - #token: ${{ secrets.CI_TOKEN }} - token: "dummy" + token: ${{ secrets.CI_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | The `go.mod` and/or `go.sum` files appear not to be correctly tidied. @@ -72,8 +71,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - #ref: "${{ github.event.pull_request.head.sha }}" - #repository: ${{github.event.pull_request.head.repo.full_name}} + ref: "${{ github.event.pull_request.head.sha }}" + repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Run Shellcheck uses: ludeeus/action-shellcheck@2.0.0 @@ -88,8 +87,8 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: - #ref: "${{ github.event.pull_request.head.sha }}" - #repository: ${{github.event.pull_request.head.repo.full_name}} + ref: "${{ github.event.pull_request.head.sha }}" + repository: ${{github.event.pull_request.head.repo.full_name}} persist-credentials: false - name: Lint markdown files uses: avto-dev/markdown-lint@v1