Skip to content

Commit

Permalink
feat(helmfile): add inherit for releases (#4066)
Browse files Browse the repository at this point in the history
* feat(helmfile): add inherit for releases

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: LoricAndre <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 11, 2024
1 parent 099fe2d commit 6b6a375
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/schemas/json/helmfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,25 @@
"type": "string"
}
},
"inherit": {
"type": "array",
"description": "Inherit from one or more release templates",
"items": {
"type": "object",
"properties": {
"template": {
"type": "string"
},
"except": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["template"]
}
},
"set": {
"type": "array",
"items": {
Expand Down Expand Up @@ -354,7 +373,15 @@
"default": false
}
},
"required": ["name", "chart"]
"required": ["name"],
"oneOf": [
{
"required": ["chart"]
},
{
"required": ["inherit"]
}
]
},
"helmfile": {
"anyOf": [
Expand Down
8 changes: 8 additions & 0 deletions src/test/helmfile/helmfile-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@
}
],
"wait": true
},
{
"inherit": [
{
"template": "default"
}
],
"name": "grafana"
}
],
"repositories": [
Expand Down

0 comments on commit 6b6a375

Please sign in to comment.