Skip to content

Commit

Permalink
fix-alloy-vpa-value-usage (#46)
Browse files Browse the repository at this point in the history
* fix-alloy-vpa-value-usage

* Update helm/alloy/values.yaml
  • Loading branch information
QuentinBisson authored Sep 3, 2024
1 parent e4e68c1 commit 2d91891
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix incorrect value path in vertical pod autoscaler.

## [0.5.0] - 2024-09-02

### Added
Expand Down
4 changes: 1 addition & 3 deletions helm/alloy/templates/vertical-pod-autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
{{- include "alloy.labels" . | nindent 4 }}
app.kubernetes.io/component: availability
spec:
{{- with .Values.verticalPodAutoscaler.vertical }}
{{- with .Values.verticalPodAutoscaler }}
{{- with .recommenders }}
recommenders:
{{- toYaml . | nindent 4 }}
Expand All @@ -18,10 +18,8 @@ spec:
resourcePolicy:
{{- with .containerPolicies }}
containerPolicies:
{{- range . }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
{{- with .updatePolicy }}
updatePolicy:
Expand Down
115 changes: 115 additions & 0 deletions helm/alloy/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,52 @@
"extraSecretEnv": {
"type": "array"
},
"mounts": {
"type": "object",
"properties": {
"extra": {
"type": "array",
"items": {
"type": "object",
"properties": {
"mountPath": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
}
}
},
"resources": {
"type": "object",
"properties": {
"limits": {
"type": "object",
"properties": {
"cpu": {
"type": "string"
},
"memory": {
"type": "string"
}
}
},
"requests": {
"type": "object",
"properties": {
"cpu": {
"type": "string"
},
"memory": {
"type": "string"
}
}
}
}
},
"securityContext": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -110,6 +156,30 @@
}
}
},
"controller": {
"type": "object",
"properties": {
"volumes": {
"type": "object",
"properties": {
"extra": {
"type": "array",
"items": {
"type": "object",
"properties": {
"emptyDir": {
"type": "object"
},
"name": {
"type": "string"
}
}
}
}
}
}
}
},
"enabled": {
"type": "boolean"
},
Expand Down Expand Up @@ -173,6 +243,51 @@
"type": "string"
}
}
},
"verticalPodAutoscaler": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"recommenders": {
"type": "array"
},
"resourcePolicy": {
"type": "object",
"properties": {
"containerPolicies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"containerName": {
"type": "string"
},
"controlledResources": {
"type": "array",
"items": {
"type": "string"
}
},
"controlledValues": {
"type": "string"
},
"maxAllowed": {
"type": "object"
},
"minAllowed": {
"type": "object"
}
}
}
}
}
},
"updatePolicy": {
"type": "null"
}
}
}
}
}

0 comments on commit 2d91891

Please sign in to comment.