-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a simple github action which runs helm lint for balloons and topology-aware plugins. Signed-off-by: Feruzjon Muyassarov <[email protected]>
- Loading branch information
1 parent
b4308f1
commit 022bbcb
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: helm linter | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'deployment/helm/**' | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.11.2 | ||
|
||
- name: Run balloons linter | ||
run: helm lint deployment/helm/resource-management-policies/balloons | ||
|
||
- name: Run topology-aware linter | ||
run: helm lint deployment/helm/resource-management-policies/topology-aware/ |
48 changes: 48 additions & 0 deletions
48
deployment/helm/resource-management-policies/balloons/values.scheme.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"required": [ | ||
"image", | ||
"hostPort", | ||
"resources" | ||
], | ||
"properties": { | ||
"image": { | ||
"type": "object", | ||
"required": [ | ||
"name", | ||
"tag", | ||
"pullPolicy" | ||
], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"tag": { | ||
"type": "string" | ||
}, | ||
"pullPolicy": { | ||
"type": "string", | ||
"enum": ["Never", "Always", "IfNotPresent"] | ||
} | ||
} | ||
}, | ||
"resources": { | ||
"type": "object", | ||
"required": [ | ||
"memory", | ||
"cpu" | ||
], | ||
"properties": { | ||
"memory": { | ||
"type": "string" | ||
}, | ||
"cpu": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"hostPort": { | ||
"type": "integer" | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
deployment/helm/resource-management-policies/topology-aware/values.scheme.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"required": [ | ||
"image", | ||
"hostPort", | ||
"resources" | ||
], | ||
"properties": { | ||
"image": { | ||
"type": "object", | ||
"required": [ | ||
"name", | ||
"tag", | ||
"pullPolicy" | ||
], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"tag": { | ||
"type": "string" | ||
}, | ||
"pullPolicy": { | ||
"type": "string", | ||
"enum": ["Never", "Always", "IfNotPresent"] | ||
} | ||
} | ||
}, | ||
"resources": { | ||
"type": "object", | ||
"required": [ | ||
"memory", | ||
"cpu" | ||
], | ||
"properties": { | ||
"memory": { | ||
"type": "string" | ||
}, | ||
"cpu": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"hostPort": { | ||
"type": "integer" | ||
} | ||
} | ||
} |