Skip to content

Commit 81dc405

Browse files
committed
[LEP-2916] feat(helm/gpud): support label reader, fix mounts (optional)
Signed-off-by: Gyuho Lee <gyuhol@nvidia.com>
1 parent aaad4ab commit 81dc405

9 files changed

Lines changed: 486 additions & 26 deletions

File tree

.github/configs/chart_schema.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Chart.yaml schema synced with chart-testing 3.14.0 (Yamale format).
2+
# Source: /opt/homebrew/etc/ct/chart_schema.yaml from ct 3.14.0.
3+
name: str()
4+
home: str(required=False)
5+
version: str()
6+
apiVersion: str()
7+
appVersion: any(str(), num(), required=False)
8+
description: str(required=False)
9+
keywords: list(str(), required=False)
10+
sources: list(str(), required=False)
11+
maintainers: list(include('maintainer'), required=False)
12+
dependencies: list(include('dependency'), required=False)
13+
icon: str(required=False)
14+
engine: str(required=False)
15+
condition: str(required=False)
16+
tags: str(required=False)
17+
deprecated: bool(required=False)
18+
kubeVersion: str(required=False)
19+
annotations: map(str(), str(), required=False)
20+
type: str(required=False)
21+
---
22+
maintainer:
23+
name: str()
24+
email: str(required=False)
25+
url: str(required=False)
26+
---
27+
dependency:
28+
name: str()
29+
version: str()
30+
repository: str(required=False)
31+
condition: str(required=False)
32+
tags: list(str(), required=False)
33+
enabled: bool(required=False)
34+
import-values: list(any(str(), include('import-value')), required=False)
35+
alias: str(required=False)
36+
---
37+
import-value:
38+
child: str()
39+
parent: str()

.github/configs/ct-lint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ target-branch: main
33
chart-dirs:
44
- "deployments/helm"
55
helm-extra-args: "--timeout 600s"
6+
chart-yaml-schema: ".github/configs/chart_schema.yaml"
67
validate-chart-schema: true
78
validate-chart-values: true
89
validate-maintainers: false

.github/workflows/helm.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
tar -xzf helm.tar.gz
3737
sudo mv linux-amd64/helm /usr/local/bin/helm
3838
39+
- name: Install lint dependencies
40+
run: |
41+
python3 -m pip install --user --upgrade yamale yamllint
42+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
43+
3944
4045
- name: Run chart-testing
4146
run: |
@@ -46,7 +51,9 @@ jobs:
4651
- name: Run kubeconform
4752
run: |
4853
helm plugin install https://github.com/melmorabity/helm-kubeconform
49-
helm kubeconform chart --verbose --summary --strict --exit-on-error
54+
# Validate the Helm chart manifests with kubeconform.
55+
# Pass the chart path explicitly; the plugin errors if given the literal string "chart".
56+
helm kubeconform deployments/helm/gpud --verbose --summary --strict --exit-on-error
5057
5158
- name: release
5259
if: github.event.pull_request.merged == true

deployments/helm/gpud/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v2
22
name: gpud
33
description: GPUd Helm chart for Kubernetes
44
type: application
5-
version: 0.8.0
6-
appVersion: "v0.8.0"
5+
version: 0.9.0
6+
appVersion: "v0.9.0"
77
icon: https://assets.nvidiagrid.net/ngc/logos/Infrastructure.png

0 commit comments

Comments
 (0)