Skip to content

Commit

Permalink
Merge pull request #3109 from lowang-bh/helmGenYaml
Browse files Browse the repository at this point in the history
fix update-development-yaml will remove more webhooks than disabled one
  • Loading branch information
volcano-sh-bot authored Jan 18, 2024
2 parents b77067e + f9351f3 commit 0b05bb7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions installer/helm/chart/volcano/templates/webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ webhooks:
timeoutSeconds: 10
{{- end }}

---

{{- if .Values.custom.enabled_admissions | regexMatch "/queues/mutate" }}
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
Expand Down Expand Up @@ -88,9 +87,9 @@ webhooks:
timeoutSeconds: 10
{{- end }}

---

{{- if .Values.custom.enabled_admissions | regexMatch "/podgroups/mutate" }}
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
Expand Down Expand Up @@ -133,9 +132,9 @@ webhooks:
timeoutSeconds: 10
{{- end }}

---

{{- if .Values.custom.enabled_admissions | regexMatch "/jobs/mutate" }}
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
Expand Down Expand Up @@ -178,9 +177,9 @@ webhooks:
timeoutSeconds: 10
{{- end }}

---

{{- if .Values.custom.enabled_admissions | regexMatch "/jobs/validate" }}
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
Expand Down Expand Up @@ -223,9 +222,9 @@ webhooks:
timeoutSeconds: 10
{{- end }}

---

{{- if .Values.custom.enabled_admissions | regexMatch "/pods/validate" }}
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
Expand Down Expand Up @@ -267,9 +266,9 @@ webhooks:
timeoutSeconds: 10
{{- end }}

---

{{- if .Values.custom.enabled_admissions | regexMatch "/queues/validate" }}
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
Expand Down

0 comments on commit 0b05bb7

Please # to comment.