Skip to content

Commit

Permalink
Revert "Adding the new seams"
Browse files Browse the repository at this point in the history
This reverts commit c3fa020.
  • Loading branch information
alexsnaps committed Oct 15, 2024
1 parent 5a229aa commit 1b3f4dc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions api/v1beta2/auth_config_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,13 @@ type PatternExpression struct {
Value string `json:"value,omitempty"`
}

type CelExpression struct {
Expression string `json:"expression,omitempty"`
}

type CelPredicate struct {
Predicate string `json:"predicate,omitempty"`
}

// +kubebuilder:validation:Enum:=eq;neq;incl;excl;matches
type PatternExpressionOperator string

type PatternExpressionOrRef struct {
PatternExpression `json:",omitempty"`
PatternRef `json:",omitempty"`
CelPredicate `json:",omitempty"`

// A list of pattern expressions to be evaluated as a logical AND.
All []UnstructuredPatternExpressionOrRef `json:"all,omitempty"`
// A list of pattern expressions to be evaluated as a logical OR.
Expand Down Expand Up @@ -207,8 +199,6 @@ type ValueOrSelector struct {
// Any pattern supported by https://pkg.go.dev/github.com/tidwall/gjson can be used.
// The following Authorino custom modifiers are supported: @extract:{sep:" ",pos:0}, @replace{old:"",new:""}, @case:upper|lower, @base64:encode|decode and @strip.
Selector string `json:"selector,omitempty"`

Expression CelExpression `json:",omitempty"`
}

type CommonEvaluatorSpec struct {
Expand Down

0 comments on commit 1b3f4dc

Please sign in to comment.