Skip to content

Commit

Permalink
Merge pull request #4222 from harshagv/priority-configmap-annotation
Browse files Browse the repository at this point in the history
allow adding annotations for priority-expander configmap
  • Loading branch information
k8s-ci-robot authored Aug 6, 2021
2 parents ca49c2c + 2dd92cb commit d86a875
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ name: cluster-autoscaler
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 9.10.3
version: 9.10.4
1 change: 1 addition & 0 deletions charts/cluster-autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ Though enough for the majority of installations, the default PodSecurityPolicy _
| podDisruptionBudget | object | `{"maxUnavailable":1}` | Pod disruption budget. |
| podLabels | object | `{}` | Labels to add to each pod. |
| priorityClassName | string | `""` | priorityClassName |
| priorityConfigMapAnnotations | object | `{}` | Annotations to add to `cluster-autoscaler-priority-expander` ConfigMap. |
| prometheusRule.additionalLabels | object | `{}` | Additional labels to be set in metadata. |
| prometheusRule.enabled | bool | `false` | If true, creates a Prometheus Operator PrometheusRule. |
| prometheusRule.interval | string | `nil` | How often rules in the group are evaluated (falls back to `global.evaluation_interval` if not set). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
name: cluster-autoscaler-priority-expander
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
{{- if .Values.priorityConfigMapAnnotations }}
annotations:
{{ toYaml .Values.priorityConfigMapAnnotations | indent 4 }}
{{- end }}
data:
priorities: |-
{{ .Values.expanderPriorities | indent 4 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/cluster-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ dnsPolicy: ClusterFirst
# See: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/expander/priority/readme.md
expanderPriorities: {}

# priorityConfigMapAnnotations -- Annotations to add to `cluster-autoscaler-priority-expander` ConfigMap.
priorityConfigMapAnnotations: {}
# key1: "value1"
# key2: "value2"

# extraArgs -- Additional container arguments.
# Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler
# parameters and their default values.
Expand Down

0 comments on commit d86a875

Please sign in to comment.