Skip to content

Commit 7a4db2b

Browse files
committed
Check for operatorOnly=true prior to searching for existing webhook deployments
1 parent df58d7b commit 7a4db2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

kubernetes/charts/weblogic-operator/templates/_operator-dep.tpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2025, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
{{- define "operator.operatorDeployment" }}
@@ -212,8 +212,9 @@ spec:
212212
---
213213
{{ $chartVersion := .Chart.Version }}
214214
{{ $releaseNamespace := .Release.Namespace }}
215+
{{- if not .operatorOnly }}
215216
{{ $webhookExists := include "utils.verifyExistingWebhookDeployment" (list $chartVersion $releaseNamespace) | trim }}
216-
{{- if and (ne $webhookExists "true") (not .operatorOnly) }}
217+
{{- if ne $webhookExists "true" }}
217218
# webhook does not exist or chart version is newer, create a new webhook
218219
apiVersion: "v1"
219220
kind: "ConfigMap"
@@ -424,4 +425,5 @@ spec:
424425
optional: true
425426
{{- end }}
426427
{{- end }}
428+
{{- end }}
427429
{{- end }}

0 commit comments

Comments
 (0)