Skip to content

Commit

Permalink
Merge pull request #3935 from jenkins-x/newcasrepo
Browse files Browse the repository at this point in the history
feat: add maintained cluster autoscaler helm chart
  • Loading branch information
jenkins-x-bot committed Sep 2, 2024
2 parents ef1b1a9 + 8ccb237 commit 5902c19
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/autoscaler/cluster-autoscaler/defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gitUrl: https://github.com/kubernetes/autoscaler/tree/master/charts/cluster-autoscaler
namespace: kube-system
version: 9.37.0
15 changes: 15 additions & 0 deletions charts/autoscaler/cluster-autoscaler/values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if eq .Values.jxRequirements.cluster.provider "eks" }}
autoDiscovery:
enabled: true
clusterName: {{ .Values.jxRequirements.cluster.clusterName }}
awsRegion: {{ .Values.jxRequirements.cluster.region }}
{{- end }}

rbac:
create: true
{{- if and (hasKey .Values.jxRequirements.cluster "project") (hasKey .Values.jxRequirements.cluster "clusterName") (eq .Values.jxRequirements.cluster.provider "eks") }}
serviceAccount:
name: cluster-autoscaler
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.jxRequirements.cluster.project }}:role/{{ .Values.jxRequirements.cluster.clusterName }}-cluster-autoscaler-cluster-autoscaler
{{- end }}
5 changes: 4 additions & 1 deletion charts/repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ repositories:
- https://argoproj.github.io/argo-helm
- prefix: wave-k8s
urls:
- https://wave-k8s.github.io/wave/
- https://wave-k8s.github.io/wave/
- prefix: autoscaler
urls:
- https://kubernetes.github.io/autoscaler

0 comments on commit 5902c19

Please sign in to comment.