mirror of https://github.com/helm/helm
Solve #12798 | checking sub-charts with properly scoped values
Signed-off-by: tomasz.ziolkowski <tomasz.ziolkowski@allegro.pl>pull/13155/head
parent
b3b6479e4c
commit
f8a836360b
@ -0,0 +1,17 @@
|
|||||||
|
==> Linting testdata/testcharts/issue-12798-alias (scope: root)
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
|
||||||
|
short:
|
||||||
|
- (root): sample is required
|
||||||
|
|
||||||
|
|
||||||
|
==> Linting testdata/testcharts/issue-12798-alias/charts/child (scope: short)
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[ERROR] values.yaml: - (root): sample is required
|
||||||
|
|
||||||
|
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
|
||||||
|
child:
|
||||||
|
- (root): sample is required
|
||||||
|
|
||||||
|
|
||||||
|
Error: 2 chart(s) linted, 2 chart(s) failed
|
@ -0,0 +1,17 @@
|
|||||||
|
==> Linting testdata/testcharts/issue-12798-global (scope: root)
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
|
||||||
|
child:
|
||||||
|
- global: sample is required
|
||||||
|
|
||||||
|
|
||||||
|
==> Linting testdata/testcharts/issue-12798-global/charts/child (scope: child)
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[ERROR] values.yaml: - (root): global is required
|
||||||
|
|
||||||
|
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
|
||||||
|
child:
|
||||||
|
- (root): global is required
|
||||||
|
|
||||||
|
|
||||||
|
Error: 2 chart(s) linted, 2 chart(s) failed
|
@ -0,0 +1,17 @@
|
|||||||
|
==> Linting testdata/testcharts/issue-12798 (scope: root)
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
|
||||||
|
child:
|
||||||
|
- (root): sample is required
|
||||||
|
|
||||||
|
|
||||||
|
==> Linting testdata/testcharts/issue-12798/charts/child (scope: child)
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[ERROR] values.yaml: - (root): sample is required
|
||||||
|
|
||||||
|
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
|
||||||
|
child:
|
||||||
|
- (root): sample is required
|
||||||
|
|
||||||
|
|
||||||
|
Error: 2 chart(s) linted, 2 chart(s) failed
|
@ -1,4 +1,4 @@
|
|||||||
==> Linting testdata/testcharts/chart-with-deprecated-api
|
==> Linting testdata/testcharts/chart-with-deprecated-api (scope: root)
|
||||||
[INFO] Chart.yaml: icon is recommended
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
|
||||||
1 chart(s) linted, 0 chart(s) failed
|
1 chart(s) linted, 0 chart(s) failed
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
==> Linting testdata/testcharts/chart-with-bad-subcharts (scope: root)
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[ERROR] templates/: error unpacking bad-subchart in chart-with-bad-subcharts: validation: chart.metadata.name is required
|
||||||
|
[ERROR] : unable to load chart
|
||||||
|
error unpacking bad-subchart in chart-with-bad-subcharts: validation: chart.metadata.name is required
|
||||||
|
|
||||||
|
Error: 1 chart(s) linted, 1 chart(s) failed
|
@ -0,0 +1 @@
|
|||||||
|
Error: invalid call, expected path to a single chart, got: [first second third]
|
@ -0,0 +1 @@
|
|||||||
|
Error: invalid call, expected path to a single chart, got: [first second]
|
@ -1,8 +1,8 @@
|
|||||||
==> Linting testdata/testcharts/chart-bad-requirements
|
==> Linting testdata/testcharts/chart-bad-requirements (scope: root)
|
||||||
[ERROR] Chart.yaml: unable to parse YAML
|
[ERROR] Chart.yaml: unable to parse YAML
|
||||||
error converting YAML to JSON: yaml: line 6: did not find expected '-' indicator
|
error converting YAML to JSON: yaml: line 6: did not find expected '-' indicator
|
||||||
[ERROR] templates/: cannot load Chart.yaml: error converting YAML to JSON: yaml: line 6: did not find expected '-' indicator
|
[ERROR] templates/: cannot load Chart.yaml: error converting YAML to JSON: yaml: line 6: did not find expected '-' indicator
|
||||||
[ERROR] : unable to load chart
|
[ERROR] : unable to load chart
|
||||||
cannot load Chart.yaml: error converting YAML to JSON: yaml: line 6: did not find expected '-' indicator
|
cannot load Chart.yaml: error converting YAML to JSON: yaml: line 6: did not find expected '-' indicator
|
||||||
|
|
||||||
Error: 2 chart(s) linted, 1 chart(s) failed
|
Error: 1 chart(s) linted, 1 chart(s) failed
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
dependencies:
|
||||||
|
- name: good-subchart
|
||||||
|
version: 0.0.1
|
||||||
|
- name: bad-subchart
|
||||||
|
version: 0.0.1
|
@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: umbrella
|
||||||
|
description: An umbrella Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: 0.1.0
|
||||||
|
dependencies:
|
||||||
|
- name: child
|
||||||
|
alias: short
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: child
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: 0.1.0
|
@ -0,0 +1 @@
|
|||||||
|
# This file is intentionally blank
|
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "Values",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"sample": {
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"sample"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
# This file is intentionally blank
|
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "Values",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"firstname": {
|
||||||
|
"description": "First name",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"lastname": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"firstname",
|
||||||
|
"lastname"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
firstname: "John"
|
||||||
|
lastname: "Doe"
|
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: umbrella
|
||||||
|
description: An umbrella Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: 0.1.0
|
||||||
|
dependencies:
|
||||||
|
- name: child
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: child
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: 0.1.0
|
@ -0,0 +1 @@
|
|||||||
|
# This file is intentionally blank
|
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "Values",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"global": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"sample": {
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"sample"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"global"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
# This file is intentionally blank
|
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "Values",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"firstname": {
|
||||||
|
"description": "First name",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"lastname": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"firstname",
|
||||||
|
"lastname"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
firstname: "John"
|
||||||
|
lastname: "Doe"
|
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: umbrella
|
||||||
|
description: An umbrella Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: 0.1.0
|
||||||
|
dependencies:
|
||||||
|
- name: child
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: child
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: 0.1.0
|
@ -0,0 +1 @@
|
|||||||
|
# This file is intentionally blank
|
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "Values",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"sample": {
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"sample"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
# This file is intentionally blank
|
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "Values",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"firstname": {
|
||||||
|
"description": "First name",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"lastname": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"firstname",
|
||||||
|
"lastname"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
firstname: "John"
|
||||||
|
lastname: "Doe"
|
Loading…
Reference in new issue