-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
7,373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,338 changes: 1,338 additions & 0 deletions
1,338
projects/kubernetes/autoscaler/1-32/ATTRIBUTION.txt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
b897853eba75ab5a7768dd47c0e5901a1b9986889556d32fa83337f39006986f _output/1-32/bin/autoscaler/linux-amd64/cluster-autoscaler | ||
3695aa959f93c915a6390ba0d815df6182aedab49da2769f8d65a95735a75015 _output/1-32/bin/autoscaler/linux-arm64/cluster-autoscaler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cluster-autoscaler-1.32.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cluster-autoscaler-chart-9.45.0 |
25 changes: 25 additions & 0 deletions
25
...bernetes/autoscaler/1-32/helm/patches/0001-Set-clusterapi-as-default-cloud-provider.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 65a72e302defa7e99891798b659209f35fdb5766 Mon Sep 17 00:00:00 2001 | ||
From: Prow Bot <[email protected]> | ||
Date: Wed, 24 Jan 2024 20:35:11 +0000 | ||
Subject: [PATCH] Set clusterapi as default cloud provider | ||
|
||
--- | ||
charts/cluster-autoscaler/values.yaml | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/charts/cluster-autoscaler/values.yaml b/charts/cluster-autoscaler/values.yaml | ||
index cc1cd6633..20c2c1479 100644 | ||
--- a/charts/cluster-autoscaler/values.yaml | ||
+++ b/charts/cluster-autoscaler/values.yaml | ||
@@ -103,7 +103,7 @@ cloudConfigPath: "" | ||
# Currently only `gce`, `aws`, `azure`, `magnum` and `clusterapi` are supported. | ||
# `aws` supported for AWS. `gce` for GCE. `azure` for Azure AKS. | ||
# `magnum` for OpenStack Magnum, `clusterapi` for Cluster API. | ||
-cloudProvider: aws | ||
+cloudProvider: clusterapi | ||
|
||
# clusterAPICloudConfigPath -- Path to kubeconfig for connecting to Cluster API Management Cluster, only used if `clusterAPIMode=kubeconfig-kubeconfig or incluster-kubeconfig` | ||
clusterAPICloudConfigPath: /etc/kubernetes/mgmt-kubeconfig | ||
-- | ||
2.25.1 | ||
|
83 changes: 83 additions & 0 deletions
83
projects/kubernetes/autoscaler/1-32/helm/patches/0002-Add-image-values.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
From 07fa203fca5c2932af5834f6204c510b441fb5f9 Mon Sep 17 00:00:00 2001 | ||
From: Prow Bot <[email protected]> | ||
Date: Tue, 1 Oct 2024 13:51:45 -0700 | ||
Subject: [PATCH] Add image values | ||
|
||
--- | ||
.../templates/deployment.yaml | 12 +++++------- | ||
charts/cluster-autoscaler/values.yaml | 19 +++++++++---------- | ||
2 files changed, 14 insertions(+), 17 deletions(-) | ||
|
||
diff --git a/charts/cluster-autoscaler/templates/deployment.yaml b/charts/cluster-autoscaler/templates/deployment.yaml | ||
index 1b06186bf..0324e1181 100644 | ||
--- a/charts/cluster-autoscaler/templates/deployment.yaml | ||
+++ b/charts/cluster-autoscaler/templates/deployment.yaml | ||
@@ -37,6 +37,10 @@ spec: | ||
{{ toYaml .Values.podLabels | indent 8 }} | ||
{{- end }} | ||
spec: | ||
+ {{- with .Values.imagePullSecrets }} | ||
+ imagePullSecrets: | ||
+ {{- toYaml . | nindent 8 }} | ||
+ {{- end }} | ||
{{- if .Values.priorityClassName }} | ||
priorityClassName: "{{ .Values.priorityClassName }}" | ||
{{- end }} | ||
@@ -48,7 +52,7 @@ spec: | ||
{{- end }} | ||
containers: | ||
- name: {{ template "cluster-autoscaler.name" . }} | ||
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
+ image: "{{ .Values.sourceRegistry }}/{{ .Values.image.repository }}@{{ .Values.image.digest }}" | ||
imagePullPolicy: "{{ .Values.image.pullPolicy }}" | ||
command: | ||
- ./cluster-autoscaler | ||
@@ -329,11 +333,5 @@ spec: | ||
secret: | ||
secretName: {{ .Values.clusterAPIKubeconfigSecret }} | ||
{{- end }} | ||
- {{- end }} | ||
- {{- if .Values.image.pullSecrets }} | ||
- imagePullSecrets: | ||
- {{- range .Values.image.pullSecrets }} | ||
- - name: {{ . }} | ||
- {{- end }} | ||
{{- end }} | ||
{{- end }} | ||
diff --git a/charts/cluster-autoscaler/values.yaml b/charts/cluster-autoscaler/values.yaml | ||
index 10055a035..60a5b05a0 100644 | ||
--- a/charts/cluster-autoscaler/values.yaml | ||
+++ b/charts/cluster-autoscaler/values.yaml | ||
@@ -250,20 +250,19 @@ fullnameOverride: "" | ||
# hostNetwork -- Whether to expose network interfaces of the host machine to pods. | ||
hostNetwork: false | ||
|
||
+# sourceRegistry -- Image registry | ||
+sourceRegistry: 783794618700.dkr.ecr.us-west-2.amazonaws.com | ||
+ | ||
image: | ||
# image.repository -- Image repository | ||
- repository: registry.k8s.io/autoscaling/cluster-autoscaler | ||
- # image.tag -- Image tag | ||
- tag: v1.31.0 | ||
+ repository: kubernetes/autoscaler | ||
+ # image.digest -- Image digest | ||
+ digest: {{kubernetes/autoscaler}} | ||
# image.pullPolicy -- Image pull policy | ||
pullPolicy: IfNotPresent | ||
- ## Optionally specify an array of imagePullSecrets. | ||
- ## Secrets must be manually created in the namespace. | ||
- ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | ||
- ## | ||
- # image.pullSecrets -- Image pull secrets | ||
- pullSecrets: [] | ||
- # - myRegistrKeySecretName | ||
+ | ||
+# image pull secrets | ||
+imagePullSecrets: [] | ||
|
||
# kubeTargetVersionOverride -- Allow overriding the `.Capabilities.KubeVersion.GitVersion` check. Useful for `helm template` commands. | ||
kubeTargetVersionOverride: "" | ||
-- | ||
2.44.0 | ||
|
31 changes: 31 additions & 0 deletions
31
projects/kubernetes/autoscaler/1-32/helm/patches/0003-Authorize-MachinePool-Operations.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 435f87ce8476fbb1caf745a32350e0ed11272c89 Mon Sep 17 00:00:00 2001 | ||
From: Prow Bot <[email protected]> | ||
Date: Mon, 22 May 2023 16:56:31 -0400 | ||
Subject: [PATCH] Authorize MachinePool Operations | ||
|
||
https://github.com/kubernetes/autoscaler/pull/4676 Introduced a bug where the autoscaler runtime fails to reconcile other CAPI machine resources when its ClusterRole is not authorized to list and watch MachinePool resources. | ||
|
||
See: https://github.com/kubernetes/autoscaler/commit/17d2bd968e756d97598be3ffb333957f0cfe99bf#diff-c8813a0942bbcd464aaa04a04c2c71897d5df30b65a2db86cb81773016f24406R786 | ||
|
||
To resolve this issue, we authorize appropriate operations on MachinePool resources. | ||
--- | ||
charts/cluster-autoscaler/templates/clusterrole.yaml | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/charts/cluster-autoscaler/templates/clusterrole.yaml b/charts/cluster-autoscaler/templates/clusterrole.yaml | ||
index 356b9c08d..b797e6fea 100644 | ||
--- a/charts/cluster-autoscaler/templates/clusterrole.yaml | ||
+++ b/charts/cluster-autoscaler/templates/clusterrole.yaml | ||
@@ -154,7 +154,9 @@ rules: | ||
- cluster.x-k8s.io | ||
resources: | ||
- machinedeployments | ||
+ - machinedeployments/scale | ||
- machinepools | ||
+ - machinepools/scale | ||
- machines | ||
- machinesets | ||
verbs: | ||
-- | ||
2.25.1 | ||
|
Oops, something went wrong.