mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-23 11:47:01 +00:00
Replace {group} with the full group name.
This commit is contained in:
parent
a31707ca58
commit
bec3298a19
1 changed files with 3 additions and 3 deletions
|
|
@ -151,7 +151,7 @@ if __name__ == "__main__":
|
||||||
if "schema" in version and "openAPIV3Schema" in version["schema"]:
|
if "schema" in version and "openAPIV3Schema" in version["schema"]:
|
||||||
filename = filename_format.format(
|
filename = filename_format.format(
|
||||||
kind=y["spec"]["names"]["kind"],
|
kind=y["spec"]["names"]["kind"],
|
||||||
group=y["spec"]["group"].split(".")[0],
|
group=y["spec"]["group"],
|
||||||
version=version["name"],
|
version=version["name"],
|
||||||
).lower() + ".json"
|
).lower() + ".json"
|
||||||
|
|
||||||
|
|
@ -160,7 +160,7 @@ if __name__ == "__main__":
|
||||||
elif "validation" in y["spec"] and "openAPIV3Schema" in y["spec"]["validation"]:
|
elif "validation" in y["spec"] and "openAPIV3Schema" in y["spec"]["validation"]:
|
||||||
filename = filename_format.format(
|
filename = filename_format.format(
|
||||||
kind=y["spec"]["names"]["kind"],
|
kind=y["spec"]["names"]["kind"],
|
||||||
group=y["spec"]["group"].split(".")[0],
|
group=y["spec"]["group"],
|
||||||
version=version["name"],
|
version=version["name"],
|
||||||
).lower() + ".json"
|
).lower() + ".json"
|
||||||
|
|
||||||
|
|
@ -169,7 +169,7 @@ if __name__ == "__main__":
|
||||||
elif "spec" in y and "validation" in y["spec"] and "openAPIV3Schema" in y["spec"]["validation"]:
|
elif "spec" in y and "validation" in y["spec"] and "openAPIV3Schema" in y["spec"]["validation"]:
|
||||||
filename = filename_format.format(
|
filename = filename_format.format(
|
||||||
kind=y["spec"]["names"]["kind"],
|
kind=y["spec"]["names"]["kind"],
|
||||||
group=y["spec"]["group"].split(".")[0],
|
group=y["spec"]["group"],
|
||||||
version=y["spec"]["version"],
|
version=y["spec"]["version"],
|
||||||
).lower() + ".json"
|
).lower() + ".json"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue