-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-policy-schema-mounts
# Conflicts: # charts/kubechecks/Chart.yaml
- Loading branch information
Showing
10 changed files
with
281 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
name: kubechecks | ||
description: A Helm chart for kubechecks | ||
version: 0.3.0 | ||
appVersion: "1.0.9" | ||
version: 0.3.1 | ||
appVersion: "1.0.10" | ||
type: application | ||
maintainers: | ||
- name: zapier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
suite: autoscaling tests | ||
|
||
templates: | ||
- hpa.yaml | ||
|
||
tests: | ||
- it: can have v2beta1 | ||
set: | ||
autoscaling: | ||
create: true | ||
targetCPUUtilizationPercentage: 10 | ||
targetMemoryUtilizationPercentage: 15 | ||
capabilities: | ||
apiVersions: | ||
- autoscaling/v2beta1 | ||
asserts: | ||
- equal: | ||
path: apiVersion | ||
value: autoscaling/v2beta1 | ||
- equal: | ||
path: spec.metrics[0] | ||
value: | ||
type: Resource | ||
resource: | ||
name: cpu | ||
targetAverageUtilization: 10 | ||
- equal: | ||
path: spec.metrics[1] | ||
value: | ||
type: Resource | ||
resource: | ||
name: memory | ||
targetAverageUtilization: 15 | ||
|
||
- it: can have v2beta2 | ||
set: | ||
autoscaling: | ||
create: true | ||
targetCPUUtilizationPercentage: 10 | ||
targetMemoryUtilizationPercentage: 15 | ||
capabilities: | ||
apiVersions: | ||
- autoscaling/v2beta2 | ||
asserts: | ||
- equal: | ||
path: apiVersion | ||
value: autoscaling/v2beta2 | ||
- equal: | ||
path: spec.metrics[0] | ||
value: | ||
type: Resource | ||
resource: | ||
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: 10 | ||
- equal: | ||
path: spec.metrics[1] | ||
value: | ||
type: Resource | ||
resource: | ||
name: memory | ||
target: | ||
type: Utilization | ||
averageUtilization: 15 | ||
|
||
- it: can have v2 | ||
set: | ||
autoscaling: | ||
create: true | ||
targetCPUUtilizationPercentage: 10 | ||
targetMemoryUtilizationPercentage: 15 | ||
capabilities: | ||
apiVersions: | ||
- autoscaling/v2 | ||
asserts: | ||
- equal: | ||
path: apiVersion | ||
value: autoscaling/v2 | ||
- equal: | ||
path: spec.metrics[0] | ||
value: | ||
type: Resource | ||
resource: | ||
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: 10 | ||
- equal: | ||
path: spec.metrics[1] | ||
value: | ||
type: Resource | ||
resource: | ||
name: memory | ||
target: | ||
type: Utilization | ||
averageUtilization: 15 | ||
|
||
- it: prefers v2 | ||
set: | ||
autoscaling: | ||
create: true | ||
capabilities: | ||
apiVersions: | ||
- autoscaling/v2beta1 | ||
- autoscaling/v2beta2 | ||
- autoscaling/v2 | ||
asserts: | ||
- equal: | ||
path: apiVersion | ||
value: autoscaling/v2 | ||
- it: renders nothing with no support | ||
set: | ||
autoscaling: | ||
create: true | ||
capabilities: | ||
apiVersions: | ||
- autoscaling/vFake | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: server has no support for autoscaling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.