Skip to content

Commit

Permalink
Merge pull request #27 from anurag-rajawat/fix-ci
Browse files Browse the repository at this point in the history
fix(ci): Restructured directories to resolve CI failures
  • Loading branch information
shivaccuknox authored Jan 4, 2024
2 parents cc1f20f + a601625 commit cf09d53
Show file tree
Hide file tree
Showing 72 changed files with 31 additions and 31 deletions.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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

0 comments on commit cf09d53

Please sign in to comment.