From 2ea60ef0106b2a59540cea4c7a79dec7705e2e62 Mon Sep 17 00:00:00 2001 From: sohan Date: Wed, 17 Jul 2024 13:51:16 +0600 Subject: [PATCH] added new arg in webhook deployment and operator deployment Signed-off-by: sohan --- .../templates/operator/deployment.yaml | 18 ++++++++++++------ .../templates/webhook/deployment.yaml | 10 ++++++++-- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/charts/inbox-agent/templates/operator/deployment.yaml b/charts/inbox-agent/templates/operator/deployment.yaml index 54ade6d..0086a92 100644 --- a/charts/inbox-agent/templates/operator/deployment.yaml +++ b/charts/inbox-agent/templates/operator/deployment.yaml @@ -57,12 +57,18 @@ spec: securityContext: {{- toYaml .Values.operator.securityContext | nindent 10 }} args: - - operator - - --v={{ .Values.logLevel }} - - --secure-port=8443 - - --audit-log-path=- - - --tls-cert-file=/var/serving-cert/tls.crt - - --tls-private-key-file=/var/serving-cert/tls.key + - operator + - --v={{ .Values.logLevel }} + - --secure-port=8443 + - --audit-log-path=- + - --tls-cert-file=/var/serving-cert/tls.crt + - --tls-private-key-file=/var/serving-cert/tls.key + {{- if .Values.inboxServer.jmapEndpoint }} + - --jmapEndpoint={{ .Values.inboxServer.jmapEndpoint }} + {{- end }} + {{- if .Values.inboxServer.webadminEndpoint }} + - --webadminEndpoint={{ .Values.inboxServer.webadminEndpoint }} + {{- end }} ports: - containerPort: 8443 env: diff --git a/charts/inbox-agent/templates/webhook/deployment.yaml b/charts/inbox-agent/templates/webhook/deployment.yaml index 5821ae4..dfb3c61 100644 --- a/charts/inbox-agent/templates/webhook/deployment.yaml +++ b/charts/inbox-agent/templates/webhook/deployment.yaml @@ -58,8 +58,14 @@ spec: securityContext: {{- toYaml .Values.operator.securityContext | nindent 10 }} args: - - webhook - - --webhook-name={{ include "inbox-agent.fullname" . }} + - webhook + - --webhook-name={{ include "inbox-agent.fullname" . }} + {{- if .Values.inboxServer.jmapEndpoint }} + - --jmapEndpoint={{ .Values.inboxServer.jmapEndpoint }} + {{- end }} + {{- if .Values.inboxServer.webadminEndpoint }} + - --webadminEndpoint={{ .Values.inboxServer.webadminEndpoint }} + {{- end }} env: - name: POD_NAME valueFrom: