-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement custom checks, implement resource ranges as custom check
- Loading branch information
Showing
12 changed files
with
464 additions
and
487 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CPULimitsMissing | ||
id: cpuLimitsMissing | ||
successMessage: CPU limits are set | ||
failureMessage: CPU limits should be set | ||
category: Resources | ||
target: Container | ||
containers: | ||
exclude: | ||
- initContainer | ||
schema: | ||
'$schema': http://json-schema.org/draft-07/schema | ||
type: object | ||
required: | ||
- resources | ||
properties: | ||
resources: | ||
type: object | ||
required: | ||
- limits | ||
properties: | ||
limits: | ||
type: object | ||
required: | ||
- cpu | ||
properties: | ||
cpu: | ||
type: string | ||
not: | ||
const: '' |
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,29 @@ | ||
name: CPURequestsMissing | ||
id: cpuRequestsMissing | ||
successMessage: CPU requests are set | ||
failureMessage: CPU requests should be set | ||
category: Resources | ||
target: Container | ||
containers: | ||
exclude: | ||
- initContainer | ||
schema: | ||
'$schema': http://json-schema.org/draft-07/schema | ||
type: object | ||
required: | ||
- resources | ||
properties: | ||
resources: | ||
type: object | ||
required: | ||
- requests | ||
properties: | ||
requests: | ||
type: object | ||
required: | ||
- cpu | ||
properties: | ||
cpu: | ||
type: string | ||
not: | ||
const: '' |
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,29 @@ | ||
name: MemoryLimitsMissing | ||
id: memoryLimitsMissing | ||
successMessage: Memory limits are set | ||
failureMessage: Memory limits should be set | ||
category: Resources | ||
target: Container | ||
containers: | ||
exclude: | ||
- initContainer | ||
schema: | ||
'$schema': http://json-schema.org/draft-07/schema | ||
type: object | ||
required: | ||
- resources | ||
properties: | ||
resources: | ||
type: object | ||
required: | ||
- limits | ||
properties: | ||
limits: | ||
type: object | ||
required: | ||
- memory | ||
properties: | ||
memory: | ||
type: string | ||
not: | ||
const: '' |
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,29 @@ | ||
name: MemoryRequestsMissing | ||
id: memoryRequestsMissing | ||
successMessage: Memory requests are set | ||
failureMessage: Memory requests should be set | ||
category: Resources | ||
target: Container | ||
containers: | ||
exclude: | ||
- initContainer | ||
schema: | ||
'$schema': http://json-schema.org/draft-07/schema | ||
type: object | ||
required: | ||
- resources | ||
properties: | ||
resources: | ||
type: object | ||
required: | ||
- requests | ||
properties: | ||
requests: | ||
type: object | ||
required: | ||
- memory | ||
properties: | ||
memory: | ||
type: string | ||
not: | ||
const: '' |
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
Oops, something went wrong.