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

Update Charts #89

Merged
merged 1 commit into from
May 13, 2022
Merged
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
@@ -1,7 +1,7 @@
{{- if .Values.webhook.enabled }}

{{- if not (.Capabilities.APIVersions.Has "cert-manager.io/v1") -}}
{{- fail "cert-manager is not installed" }}
{{- fail "cert-manager/v1 CRDs not installed" }}
{{ end }}
---
apiVersion: cert-manager.io/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ spec:
ports:
- containerPort: 9443
name: webhook-server
port: 443
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{{- if .Values.webhook.enabled -}}
---
apiVersion: admissionregistration.k8s.io/v1beta1
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
annotations:
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "jira-service-desk-operator.fullname" . }}-serving-cert
creationTimestamp: null
name: {{ include "jira-service-desk-operator.fullname" . }}-mutating-webhook-configuration
webhooks:
- clientConfig:
caBundle: Cg==
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ include "jira-service-desk-operator.fullname" . }}-webhook-service
namespace: {{ .Release.Namespace }}
Expand All @@ -26,8 +27,10 @@ webhooks:
- UPDATE
resources:
- customers
- clientConfig:
caBundle: Cg==
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ include "jira-service-desk-operator.fullname" . }}-webhook-service
namespace: {{ .Release.Namespace }}
Expand All @@ -44,4 +47,5 @@ webhooks:
- UPDATE
resources:
- projects
sideEffects: None
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{{- if .Values.webhook.enabled -}}
---
apiVersion: admissionregistration.k8s.io/v1beta1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
annotations:
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "jira-service-desk-operator.fullname" . }}-serving-cert
creationTimestamp: null
name: {{ include "jira-service-desk-operator.fullname" . }}-validating-webhook-configuration
webhooks:
- clientConfig:
caBundle: Cg==
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ include "jira-service-desk-operator.fullname" . }}-webhook-service
namespace: {{ .Release.Namespace }}
Expand All @@ -26,8 +27,10 @@ webhooks:
- UPDATE
resources:
- customers
- clientConfig:
caBundle: Cg==
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ include "jira-service-desk-operator.fullname" . }}-webhook-service
namespace: {{ .Release.Namespace }}
Expand All @@ -44,6 +47,7 @@ webhooks:
- UPDATE
resources:
- projects
sideEffects: None
{{- end -}}