Skip to content

Commit

Permalink
Use same application for skipper
Browse files Browse the repository at this point in the history
add initial deletion

remove condition for webhook to work always with ingress at least

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
  • Loading branch information
MustafaSaber committed Aug 16, 2023
1 parent af66845 commit ac7b3a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: ValidatingWebhookConfiguration
metadata:
name: "skipper-admitter.teapot.zalan.do"
labels:
application: skipper-admission-webhook
application: skipper-ingress
component: webhook
webhooks:
{{ if eq .Cluster.ConfigItems.routegroups_validation "enabled" }}
- name: "routegroup-admitter.teapot.zalan.do"
Expand Down
4 changes: 3 additions & 1 deletion cluster/manifests/deletions.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# everything defined under here will be deleted before applying the manifests
pre_apply:
{{ if ne .Cluster.ConfigItems.routegroups_validation "enabled" }}
- name: "skipper-admitter.teapot.zalan.do"
kind: ValidatingWebhookConfiguration
{{ if ne .Cluster.ConfigItems.routegroups_validation "enabled" }}
- name: "routegroup-admitter.teapot.zalan.do"
kind: ValidatingWebhookConfiguration
{{ end }}
- name: cronjob-monitor
namespace: kube-system
Expand Down
6 changes: 2 additions & 4 deletions cluster/node-pools/master-default/userdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ write_files:
- mountPath: /etc/kubernetes/admission-controller-kubeconfig
name: admission-controller-kubeconfig
readOnly: true
{{- if or (eq .Cluster.ConfigItems.routegroups_validation "provisioned") (eq .Cluster.ConfigItems.routegroups_validation "enabled") }}
- name: routegroups-admission-webhook
- name: skipper-admission-webhook
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/skipper:v0.17.1
args:
- webhook
Expand Down Expand Up @@ -270,7 +269,6 @@ write_files:
- mountPath: /etc/kubernetes/ssl
name: ssl-certs-kubernetes
readOnly: true
{{- end}}
- image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/k8s-authnz-webhook:master-127
name: webhook
ports:
Expand Down Expand Up @@ -491,7 +489,7 @@ write_files:
-> disableAccessLog()
-> setPath("/metrics")
-> "http://127.0.0.1:8081";
routegroups_admission_webhook: Path("/routegroups-admission-webhook")
skipper_admission_webhook: Path("/skipper-admission-webhook")
-> disableAccessLog()
-> setPath("/metrics")
-> "https://127.0.0.1:9085";
Expand Down

0 comments on commit ac7b3a8

Please sign in to comment.