mirror of https://github.com/helm/helm
Set ChartDir only for directory-based charts to enable $ref resolution in JSON schemas. Archived charts (.tgz) are loaded into memory without filesystem extraction, so $ref resolution is not supported for them. This fixes the original issue where `helm template .` and `helm install .` failed to validate schemas with relative $ref references. Fixes #31260 Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>pull/31274/head
parent
dd0b8f40ba
commit
088959aae9
@ -0,0 +1,7 @@
|
|||||||
|
NAME: reftest
|
||||||
|
LAST DEPLOYED: Fri Sep 2 22:04:05 1977
|
||||||
|
NAMESPACE: default
|
||||||
|
STATUS: deployed
|
||||||
|
REVISION: 1
|
||||||
|
DESCRIPTION: Install complete
|
||||||
|
TEST SUITE: None
|
||||||
@ -0,0 +1 @@
|
|||||||
|
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
Release "reftest" has been upgraded. Happy Helming!
|
||||||
|
NAME: reftest
|
||||||
|
LAST DEPLOYED: Fri Sep 2 22:04:05 1977
|
||||||
|
NAMESPACE: default
|
||||||
|
STATUS: deployed
|
||||||
|
REVISION: 2
|
||||||
|
DESCRIPTION: Upgrade complete
|
||||||
|
TEST SUITE: None
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: chart-with-schema-ref
|
||||||
|
version: 0.1.0
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": { "$ref": "name.schema.json" }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
name: "test"
|
||||||
Loading…
Reference in new issue