Skip to content

Commit

Permalink
feat: added kyverno, karmor, netpol policy creation, deletion, and up…
Browse files Browse the repository at this point in the history
…dation logic

Signed-off-by: VedRatan <[email protected]>
  • Loading branch information
VedRatan committed Aug 24, 2024
1 parent 6520bfa commit bddc225
Show file tree
Hide file tree
Showing 4 changed files with 272 additions and 53 deletions.
4 changes: 4 additions & 0 deletions pkg/adapter/nimbus-kyverno/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func Run(ctx context.Context) {
deletedKpCh := make(chan common.Request)
go watcher.WatchKps(ctx, updatedKpCh, deletedKpCh)


for {
select {
case <-ctx.Done():
Expand Down Expand Up @@ -431,6 +432,9 @@ func createTriggerForKp(ctx context.Context, nameNamespace common.Request) {
ObjectMeta: metav1.ObjectMeta{
Name: nameNamespace.Name + "-trigger-configmap",
Namespace: nameNamespace.Namespace,
Labels: map[string]string {
"trigger" : "configmap",
},
},
Data: map[string]string{
"data": "dummy",
Expand Down
Loading

0 comments on commit bddc225

Please sign in to comment.