-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INSIGHTS-156 - Fix typo and improve failure message (#1055)
* fix typo * fix failure message * fix changelog * fix missingPodDisruptionBudget validation * Update failure.empty-labels.yaml * Update failure.no-metadata.yaml * INSIGHTS-159 - use go templating instead of custom function validation (#1056) * use go templating instead of custom function validation * fix changelog
- Loading branch information
1 parent
8b236c2
commit 61e0d34
Showing
6 changed files
with
78 additions
and
5 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
22 changes: 22 additions & 0 deletions
22
test/checks/missingPodDisruptionBudget/failure.empty-labels.yaml
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,22 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: zookeeper | ||
spec: | ||
template: | ||
metadata: | ||
labels: {} # empty labels | ||
spec: | ||
containers: | ||
- name: zookeeper | ||
image: zookeeper | ||
--- | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: zookeeper-pdb | ||
spec: | ||
minAvailable: 2 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: zookeeper |
21 changes: 21 additions & 0 deletions
21
test/checks/missingPodDisruptionBudget/failure.no-labels.yaml
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,21 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: zookeeper | ||
spec: | ||
template: | ||
metadata: {} # missing labels | ||
spec: | ||
containers: | ||
- name: zookeeper | ||
image: zookeeper | ||
--- | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: zookeeper-pdb | ||
spec: | ||
minAvailable: 2 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: zookeeper |
20 changes: 20 additions & 0 deletions
20
test/checks/missingPodDisruptionBudget/failure.no-metadata.yaml
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,20 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: zookeeper | ||
spec: | ||
template: # missing metadata | ||
spec: | ||
containers: | ||
- name: zookeeper | ||
image: zookeeper | ||
--- | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: zookeeper-pdb | ||
spec: | ||
minAvailable: 2 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: zookeeper |