Skip to content

Commit

Permalink
Feature Gates: Remove CronJobTimeZone. (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko authored Jul 19, 2024
1 parent 6ebbfb2 commit cd4b075
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

This release removes the `CronJobTimeZone` feature gate as it becomes stable and is included in Kubernetes v1.29.

For Kubernetes <v1.29, you will need to re-enable it using the respective values.

### Removed

- Feature Gates: Remove `CronJobTimeZone`. ([#267](https://github.com/giantswarm/cluster/pull/267))

## [0.35.0] - 2024-07-08

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ cluster:
apiAudiences:
templateName: awsApiServerApiAudiences # name of the Helm template that renders api-audiences value
featureGates:
- enabled: true
name: CronJobTimeZone
- name: StatefulSetAutoDeletePVC
enabled: true
serviceAccountIssuer:
clusterDomainPrefix: irsa # which sets service-account-issuer to irsa.<cluster name>.<base domain>
```
Expand Down
2 changes: 0 additions & 2 deletions helm/cluster/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,6 @@ providerIntegration:
apiAudiences:
templateName: "cluster.test.kubeadmControlPlane.kubeadmConfigSpec.clusterConfiguration.apiServer.apiAudiences"
featureGates:
- name: CronJobTimeZone
enabled: true
- name: DownwardAPIHugePages
enabled: false
serviceAccountIssuer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ extraVolumes:
{{- end }}

{{- define "cluster.internal.controlPlane.kubeadm.clusterConfiguration.controllerManager.featureGates" }}
{{- $defaultFeatureGates := list (dict "name" "CronJobTimeZone" "enabled" true) }}
{{- $providerFeatureGates := $.Values.providerIntegration.controlPlane.kubeadmConfig.clusterConfiguration.controllerManager.featureGates | default list }}
{{- $internalFeatureGates := $.Values.internal.advancedConfiguration.controlPlane.controllerManager.featureGates | default list }}
{{- $mergedFeatureGates := dict }}
{{- range (concat $defaultFeatureGates $providerFeatureGates $internalFeatureGates) }}
{{- range (concat $providerFeatureGates $internalFeatureGates) }}
{{- $_ := set $mergedFeatureGates (trim .name) .enabled }}
{{- end }}
{{- $featureGates := list }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
extraArgs:
authorization-always-allow-paths: "/healthz,/readyz,/livez,/metrics"
bind-address: 0.0.0.0
feature-gates: CronJobTimeZone=true
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ nodeRegistration:
cgroup-driver: cgroupfs
{{- end }}
cloud-provider: external
feature-gates: CronJobTimeZone=true
healthz-bind-address: 0.0.0.0
node-ip: {{ printf "${%s}" $.Values.providerIntegration.environmentVariables.ipv4 }}
node-labels: ip={{ printf "${%s}" $.Values.providerIntegration.environmentVariables.ipv4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ nodeRegistration:
cgroup-driver: cgroupfs
{{- end }}
cloud-provider: external
feature-gates: CronJobTimeZone=true
node-ip: {{ printf "${%s}" $.Values.providerIntegration.environmentVariables.ipv4 }}
node-labels: ip={{ printf "${%s}" $.Values.providerIntegration.environmentVariables.ipv4 }}
name: {{ printf "${%s}" $.Values.providerIntegration.environmentVariables.hostName }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ nodeRegistration:
{{- if $.Values.providerIntegration.controlPlane.kubeadmConfig.clusterConfiguration.apiServer.cloudConfig }}
cloud-config: {{ $.Values.providerIntegration.controlPlane.kubeadmConfig.clusterConfiguration.apiServer.cloudConfig }}
{{- end }}
feature-gates: CronJobTimeZone=true
healthz-bind-address: 0.0.0.0
node-ip: {{ printf "${%s}" $.Values.providerIntegration.environmentVariables.ipv4 }}
node-labels: ip={{ printf "${%s}" $.Values.providerIntegration.environmentVariables.ipv4 }},role=worker,giantswarm.io/machine-pool={{ include "cluster.resource.name" $ }}-{{ $nodePool.name }},{{- join "," $nodePool.config.customNodeLabels }}
Expand Down

0 comments on commit cd4b075

Please sign in to comment.