Skip to content

Commit

Permalink
PolicyValue -> List of Policy Settings
Browse files Browse the repository at this point in the history
Field is a jsonpath representation of a Policy resource field

Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
  • Loading branch information
sunjayBhatia committed Nov 11, 2022
1 parent 0cf3fa5 commit 20e2f70
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 8 deletions.
12 changes: 11 additions & 1 deletion apis/v1beta1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,22 @@ const (
RouteReasonBackendNotFound RouteConditionReason = "BackendNotFound"
)

type PolicySetting struct {
Field string `json:"field"`

Value string `json:"value"`

PolicyName string `json:"policyName"`
}

type RouteEffectivePolicyConfiguration struct {
PolicyType string `json:"policyType"`

SectionName SectionName `json:"sectionName"`

PolicyValue string `json:"policyValue"`
// +listType=map
// +listMapKey=field
PolicySettings []PolicySetting `json:"policySettings"`
}

// RouteParentStatus describes the status of a route with respect to an
Expand Down
24 changes: 23 additions & 1 deletion apis/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 19 additions & 3 deletions config/crd/experimental/gateway.networking.k8s.io_httproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 19 additions & 3 deletions config/crd/standard/gateway.networking.k8s.io_httproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 20e2f70

Please sign in to comment.