Skip to content

Commit

Permalink
Allow setting ETCD storage class explicitly. (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored May 2, 2024
1 parent 4157fd8 commit 4d69c3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions control-plane/roles/gardener/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ This includes the metal-stack extension provider called [gardener-extension-prov
| gardener_extension_provider_metal_cluster_audit_enabled | | Enables the audit functionality of the GEPM |
| gardener_extension_provider_metal_audit_to_splunk_enabled | | Enables the audit to splunk feature gate of the GEPM |
| gardener_extension_provider_metal_audit_to_splunk | | Configuration for the audit to splunk feature gate of the GEPM |
| gardener_extension_provider_metal_etcd_backup_schedule | | The ETCD backup schedule for metal-stack shoot ETCDs |
| gardener_extension_provider_metal_etcd_delta_snapshot_period | | The ETCD delta snapshot period for metal-stack shoot ETCDs |
| gardener_extension_provider_metal_etcd_storage_class_name | | The storage class used for metal-stack shoot ETCDs |
| gardener_extension_provider_metal_etcd_backup_schedule | | The backup schedule for metal-stack shoot ETCDs |
| gardener_extension_provider_metal_etcd_delta_snapshot_period | | The delta snapshot period for metal-stack shoot ETCDs |
| gardener_extension_provider_metal_egress_destinations | | Sets allowed egress destinations for the `RestrictEgress` control plane feature gate of the GEPM |
| gardener_extension_provider_metal_duros_storage_enabled | | Enables the duros storage integration feature gate of the GEPM (Lightbits storage) |
| gardener_extension_provider_metal_duros_storage_config | | Configuration for the duros storage integration |
Expand Down
1 change: 1 addition & 0 deletions control-plane/roles/gardener/defaults/main/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ gardener_extension_provider_metal_audit_to_splunk:
# tlsEnabled: true
# hecCAFile: ""

gardener_extension_provider_metal_etcd_storage_class_name:
gardener_extension_provider_metal_etcd_backup_schedule: "0 */2 * * *"
gardener_extension_provider_metal_etcd_delta_snapshot_period: "5m"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ providerConfig:
{% endif %}

etcd:
{% if gardener_extension_provider_metal_etcd_storage_class_name is not none %}
storage:
className: {{ gardener_extension_provider_metal_etcd_storage_class_name }}
{% endif %}
backup:
schedule: "{{ gardener_extension_provider_metal_etcd_backup_schedule }}"
deltaSnapshotPeriod: "{{ gardener_extension_provider_metal_etcd_delta_snapshot_period }}"
Expand Down

0 comments on commit 4d69c3f

Please sign in to comment.