Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan committed Mar 14, 2024
1 parent 7a6bfd9 commit d4dc499
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion pkg/adapter/nimbus-kyverno/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func createOrUpdateKcp(ctx context.Context, cnpName string) {
logger.Error(err, "failed to create KyvernoClusterPolicy", "KyvernoClusterPolicy.Name", kcp.Name)
return
}
logger.Info("KyvernoPolicy created", "KyvernoClusterPolicy.Name", kcp.Name)
logger.Info("KyvernoClusterPolicy created", "KyvernoClusterPolicy.Name", kcp.Name)
}
} else {
kcp.ObjectMeta.ResourceVersion = existingKcp.ObjectMeta.ResourceVersion
Expand Down
5 changes: 0 additions & 5 deletions pkg/adapter/nimbus-kyverno/processor/kcpbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
package processor

import (
// "encoding/json"

"strings"

v1 "github.com/5GSEC/nimbus/api/v1"
"github.com/5GSEC/nimbus/pkg/adapter/idpool"

// "github.com/5GSEC/nimbus/pkg/adapter/nimbus-kyverno/utils"
"github.com/go-logr/logr"
kyvernov1 "github.com/kyverno/kyverno/api/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
5 changes: 0 additions & 5 deletions pkg/adapter/nimbus-kyverno/processor/kpbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@
package processor

import (
// "encoding/json"

"strings"

"github.com/go-logr/logr"
kyvernov1 "github.com/kyverno/kyverno/api/kyverno/v1"
"k8s.io/pod-security-admission/api"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

v1 "github.com/5GSEC/nimbus/api/v1"
"github.com/5GSEC/nimbus/pkg/adapter/idpool"
)
Expand Down

0 comments on commit d4dc499

Please sign in to comment.