mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 05:59:22 +00:00
k8s version now a flag
This commit is contained in:
parent
3c6d3e351c
commit
81aca53a84
1 changed files with 2 additions and 3 deletions
5
main.go
5
main.go
|
|
@ -72,11 +72,10 @@ func (i *arrayFiles) Set(value string) error {
|
|||
|
||||
|
||||
func realMain() int {
|
||||
const k8sVersion = "1.18.0"
|
||||
|
||||
var files arrayFiles
|
||||
var skipKinds string
|
||||
var skipKinds, k8sVersion string
|
||||
flag.Var(&files, "file", "file to validate (can be specified multiple times)")
|
||||
flag.StringVar(&k8sVersion, "k8sversion", "1.18.0", "version of Kubernetes to test against")
|
||||
flag.StringVar(&skipKinds, "skipKinds", "", "comma-separated list of kinds to ignore")
|
||||
flag.Parse()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue