Skip to content

Commit

Permalink
Add toggles for Gardener extensions. (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Sep 9, 2024
1 parent bbdc275 commit 3063806
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
6 changes: 6 additions & 0 deletions control-plane/roles/gardener/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ This includes the metal-stack extension provider called [gardener-extension-prov

| Name | Mandatory | Description |
| ------------------------------------------------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| gardener_extension_provider_gcp_enabled | | If enabled, deploys the gardener-extension-provider-metal |
| gardener_extension_os_metal_enabled | | If enabled, deploys the os-metal-extension |
| gardener_extension_networking_calico_enabled | | If enabled, deploys the gardener-networking-extension-calico |
| gardener_extension_networking_cilium_enabled | | If enabled, deploys the gardener-networking-extension-cilium |
| gardener_extension_shoot_cert_service_enabled | | If enabled, deploys the gardener-extension-shoot-cert-service |
| gardener_extension_shoot_dns_service_enabled | | If enabled, deploys the gardener-extension-shoot-dns-service |
| gardener_os_controller_repo_ref | | A repo reference for deploying the [os-metal-extension](https://github.com/metal-stack/os-metal-extension/) |
| gardener_networking_cilium_repo_ref | | A repo reference for deploying the [gardener-extension-networking-cilium](https://github.com/gardener/gardener-extension-networking-cilium) |
| gardener_extension_provider_metal_repo_ref | | A repo reference for deploying the [gardener-extension-provider-metal](https://github.com/metal-stack/gardener-extension-provider-metal) |
Expand Down
13 changes: 10 additions & 3 deletions control-plane/roles/gardener/defaults/main/extensions.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
---
gardener_os_controller_repo_ref: "{{ gardener_os_controller_image_tag }}"
gardener_extension_networking_calico_enabled: true
gardener_extension_networking_cilium_enabled: true
gardener_extension_os_metal_enabled: true
gardener_extension_provider_gcp_enabled: true
gardener_extension_provider_metal_enabled: true
gardener_extension_shoot_cert_service_enabled: true
gardener_extension_shoot_dns_service_enabled: true

gardener_extension_provider_metal_repo_ref: "{{ gardener_extension_provider_metal_image_tag }}"
gardener_networking_cilium_repo_ref: "gardener/gardener-extension-networking-cilium/{{ gardener_networking_cilium_image_tag }}"
gardener_os_controller_repo_ref: "{{ gardener_os_controller_image_tag }}"

gardener_metal_admission_replicas: 1
gardener_metal_admission_vpa: true

gardener_extension_provider_metal_repo_ref: "{{ gardener_extension_provider_metal_image_tag }}"

gardener_extension_provider_metal_cluster_audit_enabled: false
gardener_extension_provider_metal_audit_to_splunk_enabled: false
gardener_extension_provider_metal_audit_to_splunk:
Expand Down
7 changes: 7 additions & 0 deletions control-plane/roles/gardener/tasks/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
loop:
- controller-deployment.yaml
- controller-registration.yaml
when: gardener_extension_provider_metal_enabled

- name: "Register controller: provider gcp (backups only)"
k8s:
Expand All @@ -26,6 +27,7 @@
loop:
- controller-deployment.yaml
- controller-registration.yaml
when: gardener_extension_provider_gcp_enabled

- name: "Register controller: os extension provider metal"
k8s:
Expand All @@ -39,6 +41,7 @@
loop:
- controller-deployment.yaml
- controller-registration.yaml
when: gardener_extension_os_metal_enabled

- name: "Register controller: networking calico"
k8s:
Expand All @@ -52,6 +55,7 @@
loop:
- controller-deployment.yaml
- controller-registration.yaml
when: gardener_extension_networking_calico_enabled

- name: "Register controller: networking cilium"
k8s:
Expand All @@ -65,6 +69,7 @@
loop:
- controller-deployment.yaml
- controller-registration.yaml
when: gardener_extension_networking_cilium_enabled

- name: "Register controller: shoot-cert-service"
k8s:
Expand All @@ -79,6 +84,7 @@
loop:
- controller-deployment.yaml
- controller-registration.yaml
when: gardener_extension_shoot_cert_service_enabled

- name: "Register controller: shoot-dns-service"
k8s:
Expand All @@ -93,3 +99,4 @@
loop:
- controller-deployment.yaml
- controller-registration.yaml
when: gardener_extension_shoot_dns_service_enabled

0 comments on commit 3063806

Please sign in to comment.