Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): Restructured directories to resolve CI failures #27

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*.dll
*.so
*.dylib
bin/*
bin
Dockerfile.cross

# Test binary, build with `go test -c`
Expand Down
4 changes: 2 additions & 2 deletions nimbus-operator/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ RUN go mod download

# Copy the go source
COPY cmd/main.go cmd/main.go
COPY pkg/api/ pkg/api/
COPY pkg/controllers/ pkg/controllers/
COPY api/ api/
COPY pkg/ pkg/

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions nimbus-operator/cmd/main.go → cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"

// Importing custom API types and controllers
v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
nimbuspolicy "github.com/5GSEC/nimbus/nimbus-operator/pkg/exporter/nimbuspolicy"
securityintent "github.com/5GSEC/nimbus/nimbus-operator/pkg/receiver/securityintent"
securityintentbinding "github.com/5GSEC/nimbus/nimbus-operator/pkg/receiver/securityintentbinding"
watcher "github.com/5GSEC/nimbus/nimbus-operator/pkg/receiver/watcher"
v1 "github.com/5GSEC/nimbus/api/v1"
"github.com/5GSEC/nimbus/pkg/exporter/nimbuspolicy"
"github.com/5GSEC/nimbus/pkg/receiver/securityintent"
"github.com/5GSEC/nimbus/pkg/receiver/securityintentbinding"
"github.com/5GSEC/nimbus/pkg/receiver/watcher"

// Importing third-party Kubernetes resource types
ciliumv2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion nimbus-operator/go.mod → go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/5GSEC/nimbus/nimbus-operator
module github.com/5GSEC/nimbus

go 1.20

Expand Down
File renamed without changes.
File renamed without changes.
Binary file removed nimbus-operator/bin/controller-gen
Binary file not shown.
Binary file removed nimbus-operator/bin/golangci-lint
Binary file not shown.
Binary file removed nimbus-operator/bin/k8s/1.28.0-linux-amd64/etcd
Binary file not shown.
Binary file removed nimbus-operator/bin/k8s/1.28.0-linux-amd64/kubectl
Binary file not shown.
Binary file removed nimbus-operator/bin/kustomize
Binary file not shown.
Binary file removed nimbus-operator/bin/manager
Binary file not shown.
Binary file removed nimbus-operator/bin/setup-envtest
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"fmt"
"net/http"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
)

// HttpNimbusExporter struct defines the HTTP client and the URL for exporting Nimbus policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
"github.com/5GSEC/nimbus/nimbus-operator/pkg/exporter/httpexporter"
watcher "github.com/5GSEC/nimbus/nimbus-operator/pkg/receiver/watcher"
v1 "github.com/5GSEC/nimbus/api/v1"
"github.com/5GSEC/nimbus/pkg/exporter/httpexporter"
"github.com/5GSEC/nimbus/pkg/receiver/watcher"
)

// NimbusPolicyReconciler reconciles a NimbusPolicy object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
//+kubebuilder:scaffold:imports
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"sync"
Expand All @@ -28,7 +28,7 @@ func main() {
}

// Read the request body
body, err := ioutil.ReadAll(r.Body)
body, err := io.ReadAll(r.Body)
if err != nil {
http.Error(w, "Error reading request body", http.StatusInternalServerError)
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package intentbinder
import (
"context"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/google/cel-go/checker/decls"
ctrl "sigs.k8s.io/controller-runtime"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
intentbinder "github.com/5GSEC/nimbus/nimbus-operator/pkg/processor/intentbinder"
v1 "github.com/5GSEC/nimbus/api/v1"
"github.com/5GSEC/nimbus/pkg/processor/intentbinder"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
watcher "github.com/5GSEC/nimbus/nimbus-operator/pkg/receiver/watcher"
v1 "github.com/5GSEC/nimbus/api/v1"
"github.com/5GSEC/nimbus/pkg/receiver/watcher"
)

type SecurityIntentReconciler struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
//+kubebuilder:scaffold:imports
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
"github.com/5GSEC/nimbus/nimbus-operator/pkg/processor/intentbinder"
"github.com/5GSEC/nimbus/nimbus-operator/pkg/processor/nimbuspolicybuilder"
watcher "github.com/5GSEC/nimbus/nimbus-operator/pkg/receiver/watcher"
v1 "github.com/5GSEC/nimbus/api/v1"
"github.com/5GSEC/nimbus/pkg/processor/intentbinder"
"github.com/5GSEC/nimbus/pkg/processor/nimbuspolicybuilder"
"github.com/5GSEC/nimbus/pkg/receiver/watcher"
)

// SecurityIntentBindingReconciler reconciles a SecurityIntentBinding object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
//+kubebuilder:scaffold:imports
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
"k8s.io/apimachinery/pkg/api/errors"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"fmt"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
"k8s.io/apimachinery/pkg/api/errors"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

v1 "github.com/5GSEC/nimbus/nimbus-operator/pkg/api/v1"
v1 "github.com/5GSEC/nimbus/api/v1"
"k8s.io/apimachinery/pkg/api/errors"
)

Expand Down
Loading