Skip to content

Commit

Permalink
Merge pull request #146 from Sanskarzz/addexception
Browse files Browse the repository at this point in the history
added exception in type PostScanRequest
  • Loading branch information
David Wertenteil authored Jan 15, 2024
2 parents b49ad83 + 005d545 commit f95a9c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions httpserver/meta/v1/datastructure.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package v1

import (
"github.com/armosec/armoapi-go/armotypes"
v1 "github.com/kubescape/opa-utils/httpserver/apis/v1"
"github.com/kubescape/opa-utils/objectsenvelopes"
)
Expand Down Expand Up @@ -89,6 +90,12 @@ type PostScanRequest struct {
//
// Example: true
IsDeletedScanObject *bool `json:"isDeletedScanObject,omitempty"`
// List of exceptions to the controls
//
// Same as kubescape scan --exceptions
//
// Example: [{"controlID": "K8S_111", "exceptions": ["exception1", "exception2"]}]
Exceptions []armotypes.PostureExceptionPolicy `json:"exceptions,omitempty"`
}

// A Scan Response object
Expand Down

0 comments on commit f95a9c0

Please sign in to comment.