Skip to content

Commit

Permalink
Regenerate artifacts for version 1.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Krizak <[email protected]>
  • Loading branch information
skaven81 committed Dec 20, 2023
1 parent 3a879ad commit d1851d2
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: k8sreplicalimits
displayName: Replica Limits
createdAt: "2023-10-30T21:00:00Z"
description: Requires that objects with the field `spec.replicas` (Deployments, ReplicaSets, etc.) specify a number of replicas within defined ranges.
digest: 858bf59f6c7408f2fb390a181b2f6db5e4d8fbe5eb580aa45b5601d6ae2d4064
digest: ae243682840ce6d52554ff467a90a953bd010355b0410d82380fb6a34a9cda4a
license: Apache-2.0
homeURL: https://open-policy-agent.github.io/gatekeeper-library/website/replicalimits
keywords:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ spec:
kinds:
- apiGroups: ["apps"]
kinds: ["Deployment"]
- apiGroups: ["autoscaling"]
kinds: ["Scale"]
parameters:
ranges:
- min_replicas: 3
Expand Down
32 changes: 32 additions & 0 deletions artifacthub/library/general/replicalimits/1.0.2/suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,39 @@ tests:
object: samples/replicalimits/example_allowed.yaml
assertions:
- violations: no
- name: example-scale-allowed
object: samples/replicalimits/example_scale_allowed.yaml
assertions:
- violations: no
- name: example-disallowed
object: samples/replicalimits/example_disallowed.yaml
assertions:
- violations: yes
- name: example-scale-disallowed
object: samples/replicalimits/example_scale_disallowed.yaml
assertions:
- violations: yes
- name: replica-limit-zero
template: template.yaml
constraint: samples/replicalimits_zero/constraint.yaml
cases:
- name: example-allowed
object: samples/replicalimits_zero/example_allowed.yaml
assertions:
- violations: no
- name: example-scale-allowed
object: samples/replicalimits_zero/example_scale_allowed.yaml
assertions:
- violations: no
- name: example-scale-allowed
object: samples/replicalimits_zero/example_scale_allowed2.yaml
assertions:
- violations: no
- name: example-disallowed
object: samples/replicalimits_zero/example_disallowed.yaml
assertions:
- violations: yes
- name: example-scale-disallowed
object: samples/replicalimits_zero/example_scale_disallowed.yaml
assertions:
- violations: yes
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
}
input_replica_limit(spec) {
provided := spec.replicas
provided := object.get(spec, "replicas", 0)
count(input.parameters.ranges) > 0
range := input.parameters.ranges[_]
value_within_range(range, provided)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

49 changes: 0 additions & 49 deletions artifacthub/library/general/replicalimits/1.1.0/suite.yaml

This file was deleted.

58 changes: 0 additions & 58 deletions artifacthub/library/general/replicalimits/1.1.0/template.yaml

This file was deleted.

0 comments on commit d1851d2

Please sign in to comment.