diff --git a/charts/portal/templates/ingress-backend.yaml b/charts/portal/templates/ingress-backend.yaml index 0118c46bc..e9a422c3c 100644 --- a/charts/portal/templates/ingress-backend.yaml +++ b/charts/portal/templates/ingress-backend.yaml @@ -1,22 +1,3 @@ -############################################################### -# Copyright (c) 2021,2022 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License, Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0. -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -# SPDX-License-Identifier: Apache-2.0 -############################################################### - {{- if .Values.backend.ingress.enabled -}} {{- $fullName := .Values.backend.ingress.name -}} {{- $svcPort := .Values.portService -}} diff --git a/charts/portal/templates/ingress-frontend.yaml b/charts/portal/templates/ingress-frontend.yaml index ae3e37764..42304de4d 100644 --- a/charts/portal/templates/ingress-frontend.yaml +++ b/charts/portal/templates/ingress-frontend.yaml @@ -1,22 +1,3 @@ -############################################################### -# Copyright (c) 2021,2022 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License, Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0. -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -# SPDX-License-Identifier: Apache-2.0 -############################################################### - {{- if .Values.frontend.ingress.enabled -}} {{- $fullName := .Values.name -}} {{- $svcPort := .Values.portService -}} diff --git a/charts/portal/templates/secret-backend--postgres-init-db-user.yaml b/charts/portal/templates/secret-backend--postgres-init-db-user.yaml deleted file mode 100644 index cd0d4af35..000000000 --- a/charts/portal/templates/secret-backend--postgres-init-db-user.yaml +++ /dev/null @@ -1,29 +0,0 @@ -############################################################### -# Copyright (c) 2021,2022 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License, Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0. -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -# SPDX-License-Identifier: Apache-2.0 -############################################################### - -{{- if .Values.postgresql.secret.initUserDbSql -}} -apiVersion: v1 -kind: Secret -metadata: - name: secret-postgres-init-db-user - namespace: {{ .Release.Namespace }} -type: Opaque -data: - 01-init-user-db.sql: {{ .Values.postgresql.secret.initUserDbSql }} -{{- end -}} diff --git a/charts/portal/templates/secret-backend-postgres-init-db-user.yaml b/charts/portal/templates/secret-backend-postgres-init-db-user.yaml new file mode 100644 index 000000000..1fb849494 --- /dev/null +++ b/charts/portal/templates/secret-backend-postgres-init-db-user.yaml @@ -0,0 +1,10 @@ +{{- if .Values.postgresql.secret.initUserDbSql -}} +apiVersion: v1 +kind: Secret +metadata: + name: secret-postgres-init-db-user + namespace: {{ .Release.Namespace }} +type: Opaque +data: + 01-init-user-db.sql: {{ .Values.postgresql.secret.initUserDbSql }} +{{- end -}}