Skip to content

Commit

Permalink
helm: add helm linter github action
Browse files Browse the repository at this point in the history
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
fmuyassarov committed Jun 26, 2023
1 parent b4308f1 commit 022bbcb
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/helm-lint.yaml
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/
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"
}
}
}
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"
}
}
}

0 comments on commit 022bbcb

Please sign in to comment.