-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:(ignoreValues): Adding flag for single-stage validation. (#18)
* feat:(ignoreValues): Adding flag for single-stage validation. The goal of this addition is to be able to enforce that cpu and/or memory requests are set, with no care as to what they are set to. Signed-off-by: José Guilherme Vanz <[email protected]> Signed-off-by: Víctor Cuadrado Juan <[email protected]>
- Loading branch information
Showing
7 changed files
with
459 additions
and
58 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
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,58 @@ | ||
{ | ||
"uid": "1299d386-525b-4032-98ae-1949f69f9cfc", | ||
"kind": { | ||
"group": "", | ||
"kind": "Pod", | ||
"version": "v1" | ||
}, | ||
"resource": { | ||
"group": "", | ||
"version": "v1", | ||
"resource": "pods" | ||
}, | ||
"requestKind": { | ||
"group": "", | ||
"version": "v1", | ||
"kind": "Pod" | ||
}, | ||
"requestResource": { | ||
"group": "", | ||
"version": "v1", | ||
"resource": "pods" | ||
}, | ||
"name": "nginx", | ||
"namespace": "default", | ||
"operation": "CREATE", | ||
"userInfo": { | ||
"username": "kubernetes-admin", | ||
"groups": [ | ||
"system:masters", | ||
"system:authenticated" | ||
] | ||
}, | ||
"object": { | ||
"apiVersion": "v1", | ||
"kind": "Pod", | ||
"metadata": { | ||
"name": "test-pod", | ||
"namespace": "default", | ||
"labels": { | ||
"cc-center": "123", | ||
"owner": "team-alpha" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"name": "pause", | ||
"image": "registry.k8s.io/pause" | ||
}, | ||
{ | ||
"name": "mycontainer", | ||
"image": "image:latest" | ||
|
||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.