mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-07 14:26:54 +00:00
add {{ .Group }} variable to schema location options (#120)
This commit is contained in:
parent
9a6fff13cb
commit
5e63bc5ad7
2 changed files with 3 additions and 0 deletions
|
|
@ -61,12 +61,14 @@ func schemaPath(tpl, resourceKind, resourceAPIVersion, k8sVersion string, strict
|
|||
StrictSuffix string
|
||||
ResourceKind string
|
||||
ResourceAPIVersion string
|
||||
Group string
|
||||
KindSuffix string
|
||||
}{
|
||||
normalisedVersion,
|
||||
strictSuffix,
|
||||
strings.ToLower(resourceKind),
|
||||
groupParts[len(groupParts)-1],
|
||||
groupParts[0],
|
||||
kindSuffix,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue