Skip to content

Commit

Permalink
Merge pull request #26 from gardener/enhancement/podpriority
Browse files Browse the repository at this point in the history
add priority class for extension pods
  • Loading branch information
rfranzke authored Oct 23, 2020
2 parents a27cf84 + ed7d424 commit 95ad482
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
10 changes: 10 additions & 0 deletions charts/gardener-extension-os-ubuntu/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
{{- define "deploymentversion" -}}
apps/v1
{{- end -}}

{{- define "priorityclassversion" -}}
{{- if semverCompare ">= 1.14-0" .Capabilities.KubeVersion.GitVersion -}}
scheduling.k8s.io/v1
{{- else if semverCompare ">= 1.11-0" .Capabilities.KubeVersion.GitVersion -}}
scheduling.k8s.io/v1beta1
{{- else -}}
scheduling.k8s.io/v1alpha1
{{- end -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
app.kubernetes.io/name: gardener-extension-os-ubuntu
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
priorityClassName: gardener-extension-os-ubuntu
serviceAccountName: gardener-extension-os-ubuntu
containers:
- name: gardener-extension-os-ubuntu
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: {{ include "priorityclassversion" . }}
kind: PriorityClass
metadata:
name: gardener-extension-os-ubuntu
value: 1000000000
globalDefault: false
description: "Priority class for the Gardener extension: os-ubuntu."
2 changes: 1 addition & 1 deletion example/controller-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
deployment:
type: helm
providerConfig:
chart: H4sIAAAAAAAAA+1a/2/iOhLfn/NXzPH0pN1TkwAt7R2nk45HeW/R9dGqdPu0Op1WJjHBr8HO2Q4s27f3t9/YSSClXUq/HNXu5iMEiWPPjGc89syQiMiQcipd+lFTrpjgrlBuOkq5Tv1Xz4M64qjVsr+I9V973dg/aDRbzcND095o7Tf2X0HrmfhvRKo0kQCvpBB6U7/7n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fRMwvs9j4YRcHsmdSZKll2F1aGOWVNL0gFlnorPhv0zXIJ0nZB1Ee2yh7bBPYY5ttr3zkTmdbe4wZJzF7n5NAAz0qCEdU22uMeYq9mZlMw96li7ssxUWjmwI2GpuSKBpIqlX1/jbEcaAhWaG+ZGkvPnLBE5LmrNApBkFr5AsaN0dXvrMJav6+OFTDjRGanWVyN/Mpy7XiztYntiLanfTrR2zAlf9a1QwlLGLpcsG2TBD22rQ/e02Hykbmcz2r0TmK4Upy+DmrGg9tz28Ke/r/Ipsm+YTdMBLYFf8fHq77/4N2q67/3Qusff93rXp8y+W/h16f/zXsqf/TlNz+O+Cd+n+0rv/N46M6/r8XWI9PGuh6hQrI5nFgu1FYB+yrGfa4FGGv6EzlDY2EixtqT0NRloJxmTDeWtTerju4MO0bhxemcS9jksduRUXWDstbfhEhDm4YWRtfnT3Yqv/TvPp4138A2F3/2/j+v9Osv/+/F8gPLPJTrOJTii7QzIsCaVR/sT2Kf3lZfhW5zIX9qhJpEnXB+gyjeWnliON0fC70pflUGJXSWWZj8OGj41QK+4aZtZOHLnSw8ZMF/7Jc6GweOXTh3//56nS2hhpqqKGGGmqooYYaaqihhhpqqKGGGmqooYYadsGfGFNj0wBQAAA=
values:
image:
tag: v1.9.0-dev

0 comments on commit 95ad482

Please sign in to comment.