Skip to content

Commit

Permalink
examples/gatekeeper: fix yamllint warnings
Browse files Browse the repository at this point in the history
Fix `comments-indentation` warnings from yamllint by re-ordering
the comments to make the expected indent unambiguous.

Signed-off-by: James Peach <[email protected]>
  • Loading branch information
jpeach committed Aug 27, 2020
1 parent f9c2b84 commit 0e3aa97
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ metadata:
app: contour
spec:
match:
kinds:
- apiGroups: ["projectcontour.io"]
kinds: ["HTTPProxy"]


# namespaces optionally defines the list of namespaces
# for which this Constraint should be enforced.
# namespaces:
# - namespace-1
# - namespace-2
# excludedNamespaces optionally defines the list of

# excludedNamespaces optionally defines the list of
# namespaces for which this Constraint should *not*
# be enforced.
# excludedNamespaces:
# - namespace-3
# - namespace-4

kinds:
- apiGroups: ["projectcontour.io"]
kinds: ["HTTPProxy"]

parameters:
field: idle
max: 5m
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@ metadata:
app: contour
spec:
match:
kinds:
- apiGroups: ["projectcontour.io"]
kinds: ["HTTPProxy"]


# namespaces optionally defines the list of namespaces
# for which this Constraint should be enforced.
# namespaces:
# - namespace-1
# - namespace-2
# excludedNamespaces optionally defines the list of

# excludedNamespaces optionally defines the list of
# namespaces for which this Constraint should *not*
# be enforced.
# excludedNamespaces:
# - namespace-3
# - namespace-4

kinds:
- apiGroups: ["projectcontour.io"]
kinds: ["HTTPProxy"]

parameters:
field: response
max: 2m
13 changes: 7 additions & 6 deletions examples/gatekeeper/policies/02-constraint-retry-count-range.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ metadata:
app: contour
spec:
match:
kinds:
- apiGroups: ["projectcontour.io"]
kinds: ["HTTPProxy"]


# namespaces optionally defines the list of namespaces
# for which this Constraint should be enforced.
# namespaces:
# - namespace-1
# - namespace-2
# excludedNamespaces optionally defines the list of

# excludedNamespaces optionally defines the list of
# namespaces for which this Constraint should *not*
# be enforced.
# excludedNamespaces:
# - namespace-3
# - namespace-4

kinds:
- apiGroups: ["projectcontour.io"]
kinds: ["HTTPProxy"]

parameters:
max: 5

0 comments on commit 0e3aa97

Please sign in to comment.