-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2066 from rfranzke/feature/seed-admission
Gardener Seed Admission Controller
- Loading branch information
Showing
58 changed files
with
1,983 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
charts/seed-bootstrap/templates/gardener-seed-admission-controller/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
apiVersion: {{ include "deploymentversion" . }} | ||
kind: Deployment | ||
metadata: | ||
name: gardener-seed-admission-controller | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: gardener | ||
role: seed-admission-controller | ||
spec: | ||
revisionHistoryLimit: 0 | ||
replicas: {{ .Values.gardenerSeedAdmissionController.replicas }} | ||
selector: | ||
matchLabels: | ||
app: gardener | ||
role: seed-admission-controller | ||
template: | ||
metadata: | ||
labels: | ||
app: gardener | ||
role: seed-admission-controller | ||
spec: | ||
affinity: | ||
podAntiAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchExpressions: | ||
- key: labels | ||
operator: In | ||
values: | ||
- gardener | ||
- key: role | ||
operator: In | ||
values: | ||
- seed-admission-controller | ||
topologyKey: kubernetes.io/hostname | ||
containers: | ||
- name: gardener-seed-admission-controller | ||
image: {{ index .Values.global.images "gardener-seed-admission-controller" }} | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /gardener-seed-admission-controller | ||
- --port=9443 | ||
- --tls-cert-path=/srv/gardener-seed-admission-controller/tls.crt | ||
- --tls-private-key-path=/srv/gardener-seed-admission-controller/tls.key | ||
{{- if .Values.gardenerSeedAdmissionController.resources }} | ||
resources: | ||
{{ toYaml .Values.gardenerSeedAdmissionController.resources | indent 10 }} | ||
{{- end }} | ||
volumeMounts: | ||
- mountPath: /srv/gardener-seed-admission-controller | ||
name: gardener-seed-admission-controller-tls | ||
readOnly: true | ||
serviceAccountName: gardener-seed-admission-controller | ||
volumes: | ||
- name: gardener-seed-admission-controller-tls | ||
secret: | ||
secretName: gardener-seed-admission-controller-tls |
16 changes: 16 additions & 0 deletions
16
charts/seed-bootstrap/templates/gardener-seed-admission-controller/poddisruptionbudget.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if gt (int .Values.gardenerSeedAdmissionController.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: gardener-seed-admission-controller | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: gardener | ||
role: seed-admission-controller | ||
spec: | ||
minAvailable: 1 | ||
selector: | ||
matchLabels: | ||
app: gardener | ||
role: seed-admission-controller | ||
{{- end }} |
Oops, something went wrong.