Skip to content

Commit

Permalink
fix: Resolve the conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
b0m313 committed Dec 15, 2023
2 parents 7feb25e + 1363558 commit 89aeb56
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 457 deletions.
1 change: 1 addition & 0 deletions .github/workflows/latest-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions: read-all

jobs:
release-nimbus-image:
if: github.repository == '5GSEC/nimbus'
runs-on: ubuntu-latest
steps:
- name: Checkout source code
Expand Down
7 changes: 3 additions & 4 deletions Nimbus/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ import (

// Importing third-party Kubernetes resource types
ciliumv2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2"
kubearmorhostpolicyv1 "github.com/kubearmor/KubeArmor/pkg/KubeArmorHostPolicy/api/security.kubearmor.com/v1"
kubearmorpolicyv1 "github.com/kubearmor/KubeArmor/pkg/KubeArmorPolicy/api/security.kubearmor.com/v1"
kubearmorv1 "github.com/kubearmor/KubeArmor/pkg/KubeArmorController/api/security.kubearmor.com/v1"
//+kubebuilder:scaffold:imports
)

Expand All @@ -46,9 +45,9 @@ var (
func init() {
// In init, various Kubernetes and custom resources are added to the scheme.
utilruntime.Must(clientgoscheme.AddToScheme(scheme))

utilruntime.Must(intentv1.AddToScheme(scheme))
utilruntime.Must(kubearmorpolicyv1.AddToScheme(scheme))
utilruntime.Must(kubearmorhostpolicyv1.AddToScheme(scheme))
utilruntime.Must(kubearmorv1.AddToScheme(scheme))
utilruntime.Must(ciliumv2.AddToScheme(scheme))
//+kubebuilder:scaffold:scheme
}
Expand Down

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion Nimbus/controllers/cleanup/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Cleanup(ctx context.Context, k8sClient client.Client, logger logr.Logger) e
bindingInfo := &general.BindingInfo{
Binding: &bindingCopy,
}

// Deleting network policies associated with the current SecurityIntent.
if err := npc.DeletePolicy(ctx, bindingInfo); err != nil {
logger.Error(err, "Failed to delete network policy for SecurityIntentBinding", "Name", bindingCopy.Name)
Expand Down
2 changes: 1 addition & 1 deletion Nimbus/controllers/policy/network_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ func (npc *NetworkPolicyController) DeletePolicy(ctx context.Context, bindingInf

log.Info("Deleted Network Policy", "PolicyName", bindingInfo.Binding.Name)
return nil
}
}
Loading

0 comments on commit 89aeb56

Please sign in to comment.