Skip to content

Commit 542da10

Browse files
committed
[castai-evictor] remove config map cluster id source
1 parent 112d652 commit 542da10

File tree

4 files changed

+1
-21
lines changed

4 files changed

+1
-21
lines changed

charts/castai-evictor/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.32.19
16+
version: 0.32.20
1717
# This is the version number of the application being deployed. This version number should be
1818
# incremented each time you make changes to the application. Versions are not expected to
1919
# follow Semantic Versioning. They should reflect the version the application is using.

charts/castai-evictor/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ Cluster utilization defragmentation tool
1818
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | `"windows"` | |
1919
| aggressiveMode | bool | `false` | Specifies whether the Evictor can behave as aggressive if true, evictor will start considering single replica pods as long as they can be scheduled somewhere else. |
2020
| apiKeySecretRef | string | `""` | Name of secret with Token to be used for authorizing evictor access to the API apiKey and apiKeySecretRef are mutually exclusive The referenced secret must provide the token in .data["API_KEY"]. |
21-
| clusterIdConfigMapKeyRef.key | string | `"CLUSTER_ID"` | key of the cluster id value in the config map |
22-
| clusterIdConfigMapKeyRef.name | string | `""` | name and of the config map with cluster id |
2321
| clusterIdSecretKeyRef.key | string | `"CLUSTER_ID"` | |
2422
| clusterIdSecretKeyRef.name | string | `""` | |
2523
| clusterVPA | object | `{"enabled":true,"pollPeriodSeconds":300,"repository":"registry.k8s.io/cpa/cpvpa","resources":{},"version":"v0.8.4"}` | Cluster proportional vertical autoscaler for the evictor deployment https://github.com/kubernetes-sigs/cluster-proportional-vertical-autoscaler. |

charts/castai-evictor/templates/deployment.yaml

-11
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,12 @@ spec:
8585
- name: K8S_CLIENT_RATE_LIMITER_BURST
8686
value: {{ .Values.kubernetesClient.rateLimiter.burst | quote }}
8787
{{- if .Values.clusterIdSecretKeyRef.name }}
88-
{{- if ne .Values.clusterIdConfigMapKeyRef.name "" }}
89-
{{- fail "clusterIdConfigMapKeyRef and clusterIdSecretKeyRef are mutually exclusive" }}
90-
{{- end }}
9188
- name: CLUSTER_ID
9289
valueFrom:
9390
secretKeyRef:
9491
name: {{ .Values.clusterIdSecretKeyRef.name }}
9592
key: {{ .Values.clusterIdSecretKeyRef.key }}
9693
{{- end }}
97-
{{- if .Values.clusterIdConfigMapKeyRef.name }}
98-
- name: CLUSTER_ID
99-
valueFrom:
100-
configMapKeyRef:
101-
name: {{ .Values.clusterIdConfigMapKeyRef.name }}
102-
key: {{ .Values.clusterIdConfigMapKeyRef.key }}
103-
optional: false
104-
{{- end }}
10594
{{- range $name, $value := .Values.additionalEnv }}
10695
- name: "{{ $name }}"
10796
value: "{{ $value }}"

charts/castai-evictor/values.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,6 @@ containerSecurityContext:
186186
drop:
187187
- ALL
188188

189-
# The referenced ConfigMap must provide the ClusterID in .data[<<.Values.clusterIdConfigMapKeyRef.key>>]
190-
clusterIdConfigMapKeyRef:
191-
# clusterIdConfigMapKeyRef.name -- name and of the config map with cluster id
192-
name: ""
193-
# clusterIdConfigMapKeyRef.key -- key of the cluster id value in the config map
194-
key: "CLUSTER_ID"
195-
196189
# The referenced Secret must provide the ClusterID in .data[<<.Values.clusterIdSecretKeyRef.key>>]
197190
clusterIdSecretKeyRef:
198191
name: ""

0 commit comments

Comments
 (0)