Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing additional pod labels to deployments. #378

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ data:
{{- if .Values.config.egressDestinations }}
egressDestinations:
{{ toYaml .Values.config.egressDestinations | indent 4 }}
{{- end }}
{{- if .Values.config.additionalPodLabels }}
additionalPodLabels:
{{ toYaml .Values.config.additionalPodLabels | indent 6 }}
{{- end }}
etcd:
storage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
networking.gardener.cloud/to-private-networks: allowed
networking.resources.gardener.cloud/to-all-shoots-kube-apiserver-tcp-443: allowed
{{ include "labels" . | indent 8 }}
{{- if and .Values.deployment.labels }}
{{ toYaml .Values.deployment.labels | indent 8 }}
{{- end }}
Comment on lines +34 to +36
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if and .Values.deployment.labels }}
{{ toYaml .Values.deployment.labels | indent 8 }}
{{- end }}
{{- if and .Values.deployment.labels }}
{{ toYaml .Values.deployment.labels | indent 8 }}
{{- end }}

spec:
containers:
- name: {{ include "name" . }}
Expand Down
4 changes: 4 additions & 0 deletions charts/gardener-extension-provider-metal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ image:
replicaCount: 1
resources: {}

deployment:
labels: {}

metricsPort: 8080
healthPort: 8081

Expand Down Expand Up @@ -48,6 +51,7 @@ metrics:
enableScraping: true

config:
additionalPodLabels: {}
clientConnection:
acceptContentTypes: application/json
contentType: application/json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
networking.gardener.cloud/to-private-networks: "allowed"
networking.gardener.cloud/to-public-networks: allowed
networking.resources.gardener.cloud/to-kube-apiserver-tcp-443: "allowed"
{{- if .Values.cloudControllerManager.podLabels }}
{{ toYaml .Values.cloudControllerManager.podLabels | indent 8 }}
{{- end }}
spec:
tolerations:
- effect: NoExecute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ spec:
networking.gardener.cloud/to-shoot-apiserver: "allowed"
networking.gardener.cloud/to-runtime-apiserver: "allowed"
networking.resources.gardener.cloud/to-kube-apiserver-tcp-443: "allowed"
{{- if .Values.firewallControllerManager.podLabels }}
{{ toYaml .Values.firewallControllerManager.podLabels | indent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/internal/control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ imagePullSecret:
imagePullPolicy: IfNotPresent

firewallControllerManager:
podLabels: {}
replicas: 1
clusterID: cluster-id
seedApiURL: address-to-the-seed-apiserver
Expand All @@ -29,6 +30,7 @@ firewallControllerManager:
cloudControllerManager:
additionalParameters: []
podAnnotations: {}
podLabels: {}
replicas: 1
podNetwork: 192.168.0.0/16
projectID: project-id
Expand Down
4 changes: 2 additions & 2 deletions example/controller-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ metadata:
name: provider-metal
type: helm
providerConfig:
chart: H4sIAAAAAAAAA+0ca2/cNjKf9SsIuUXbQ6R9eO0EAnKoa7uJ7xLbsH3pHYoi0Er0rmKtqJKSH03z32/40lurlZ04fYgw4BU1MxySM8PhcKiFS30cYWrh2wRHLCCRFVNyHfhQtcKJG46ePLiMoTzb2RH/oVT/i9+T7dlkujPd3eX1k93t8ewJ2nl4090lZYlLEXpCCUnWwXW9/5OWRef87y9dm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18W1+8pt4OLKvapQl+gFf6V78fmteEMlOdVvuhtNV9bzS8bCaDReRa/BaFfG+ZO4BK5e8Jvd6oHLmNj1FPev1Ut5n9qo9L10D7qh8fp9ZSEgtSslx5evofcwL5hHVxsvAbddATbyLxgKhVFsqxVLfiJmcC6HMpShDGUoQxnKUIYylKEMZShDGcpQhjKUoQxlKEMZyt+w/B9+GrjkAHgAAA==
values:
image:
tag: v0.21.3
tag: v0.22.1
---
apiVersion: core.gardener.cloud/v1beta1
kind: ControllerRegistration
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type ControllerConfiguration struct {
// settings for the proxy server to use when communicating with the apiserver.
ClientConnection *componentbaseconfig.ClientConnectionConfiguration

// AdditionalPodLabels are additional labels attached to pods deployed by this extension controller.
AdditionalPodLabels map[string]string

// MachineImages is the list of machine images that are understood by the controller. It maps
// logical names and versions to metal-specific identifiers, i.e. AMIs.
MachineImages []MachineImage
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/config/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ type ControllerConfiguration struct {
// +optional
ClientConnection *componentbaseconfigv1alpha1.ClientConnectionConfiguration `json:"clientConnection,omitempty"`

// AdditionalPodLabels are additional labels attached to pods deployed by this extension controller.
AdditionalPodLabels map[string]string `json:"additionalPodLabels,omitempty"`

// MachineImages is the list of machine images that are understood by the controller. It maps
// logical names and versions to metal-specific identifiers, i.e. AMIs.
MachineImages []MachineImage `json:"machineImages,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/config/v1alpha1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pkg/apis/config/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pkg/apis/config/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pkg/controller/controlplane/valuesprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ func (vp *valuesProvider) GetControlPlaneChartValues(
return nil, fmt.Errorf("could not get ca from secret: %w", err)
}

ccmValues, err := getCCMChartValues(ctx, sshSecret, cpConfig, infrastructureConfig, infrastructure, cluster, checksums, scaledDown, mclient, metalControlPlane, nws, secretsReader)
ccmValues, err := getCCMChartValues(ctx, vp.controllerConfig, sshSecret, cpConfig, infrastructureConfig, infrastructure, cluster, checksums, scaledDown, mclient, metalControlPlane, nws, secretsReader)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -893,6 +893,7 @@ func (vp *valuesProvider) GetStorageClassesChartValues(_ context.Context, contro
// getCCMChartValues collects and returns the CCM chart values.
func getCCMChartValues(
ctx context.Context,
config config.ControllerConfiguration,
sshSecret *corev1.Secret,
cpConfig *apismetal.ControlPlaneConfig,
infrastructureConfig *apismetal.InfrastructureConfig,
Expand Down Expand Up @@ -1000,6 +1001,7 @@ func getCCMChartValues(
"checksum/secret-cloudprovider": checksums[v1beta1constants.SecretNameCloudProvider],
"checksum/configmap-cloud-provider-config": checksums[metal.CloudProviderConfigName],
},
"podLabels": config.AdditionalPodLabels,
"secrets": map[string]any{
"server": serverSecret.Name,
},
Expand Down Expand Up @@ -1200,6 +1202,7 @@ func (vp *valuesProvider) getFirewallControllerManagerChartValues(ctx context.Co
// This will break the firewall-only case actually only used in our test env.
// TODO: deletion of the firewall is not yet implemented.
"replicas": extensionscontroller.GetReplicas(cluster, 1),
"podLabels": vp.controllerConfig.AdditionalPodLabels,
"clusterID": string(cluster.Shoot.GetUID()),
"seedApiURL": seedApiURL,
"shootApiURL": fmt.Sprintf("https://api.%s", *cluster.Shoot.Spec.DNS.Domain),
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/worker/machine_controller_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (w *workerDelegate) GetMachineControllerManagerChartValues(ctx context.Cont
"namespace": map[string]interface{}{
"uid": namespace.UID,
},
"podLabels": w.controllerConfig.AdditionalPodLabels,
}, nil
}

Expand Down
Loading