github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/weblogic-operator/templates/_operator-cm.tpl (about) 1 # Copyright (c) 2018, 2023, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 {{- define "operator.operatorConfigMap" }} 5 --- 6 apiVersion: "v1" 7 data: 8 helmChartVersion: {{ .Chart.Version }} 9 {{- if .externalRestEnabled }} 10 {{- if (hasKey . "externalRestIdentitySecret") }} 11 externalRestIdentitySecret: {{ .externalRestIdentitySecret | quote }} 12 {{- else }} 13 externalOperatorCert: {{ .externalOperatorCert | quote }} 14 {{- end }} 15 {{- end }} 16 {{- $configmap := (lookup "v1" "ConfigMap" .Release.Namespace "weblogic-operator-cm") }} 17 {{- if (and $configmap $configmap.data) }} 18 {{- $internalOperatorCert := index $configmap.data "internalOperatorCert" }} 19 {{- if $internalOperatorCert }} 20 internalOperatorCert: {{ $internalOperatorCert }} 21 {{- end }} 22 {{- end }} 23 serviceaccount: {{ .serviceAccount | quote }} 24 {{- if .domainNamespaceSelectionStrategy }} 25 domainNamespaceSelectionStrategy: {{ .domainNamespaceSelectionStrategy | quote }} 26 {{- end }} 27 {{- if .domainNamespaces }} 28 domainNamespaces: {{ .domainNamespaces | uniq | sortAlpha | join "," | quote }} 29 {{- end }} 30 {{- if .domainNamespaceLabelSelector }} 31 domainNamespaceLabelSelector: {{ .domainNamespaceLabelSelector | quote }} 32 {{- end }} 33 {{- if .domainNamespaceRegExp }} 34 domainNamespaceRegExp: {{ .domainNamespaceRegExp | quote }} 35 {{- end }} 36 {{- if .dns1123Fields }} 37 dns1123Fields: {{ .dns1123Fields | quote }} 38 {{- end }} 39 {{- if .featureGates }} 40 featureGates: {{ .featureGates | quote }} 41 {{- end }} 42 {{- if .introspectorJobNameSuffix }} 43 introspectorJobNameSuffix: {{ .introspectorJobNameSuffix | quote }} 44 {{- end }} 45 {{- if .externalServiceNameSuffix }} 46 externalServiceNameSuffix: {{ .externalServiceNameSuffix | quote }} 47 {{- end }} 48 {{- if .clusterSizePaddingValidationEnabled }} 49 clusterSizePaddingValidationEnabled: {{ .clusterSizePaddingValidationEnabled | quote }} 50 {{- end }} 51 {{- if .tokenReviewAuthentication }} 52 tokenReviewAuthentication: {{ .tokenReviewAuthentication | quote }} 53 {{- end }} 54 {{- if (hasKey . "istioLocalhostBindingsEnabled") }} 55 istioLocalhostBindingsEnabled: {{ .istioLocalhostBindingsEnabled | quote }} 56 {{- end }} 57 {{- if .kubernetesPlatform }} 58 kubernetesPlatform: {{ .kubernetesPlatform | quote }} 59 {{- end }} 60 kind: "ConfigMap" 61 metadata: 62 labels: 63 weblogic.operatorName: {{ .Release.Namespace | quote }} 64 name: "weblogic-operator-cm" 65 namespace: {{ .Release.Namespace | quote }} 66 {{- end }}