Skip to content

Commit

Permalink
feat(helm): allow for additional volume mounts in CP and DP
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Dec 13, 2023
1 parent fb5b89a commit 6978619
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
{{- toYaml .Values.controlplane.volumeMounts | default "" | nindent 12 }}
- name: "configuration"
mountPath: "/app/opentelemetry.properties"
subPath: "opentelemetry.properties"
Expand All @@ -389,6 +390,7 @@ spec:
- name: "tmp"
mountPath: "/tmp"
volumes:
{{- toYaml .Values.controlplane.volumes | default "" | nindent 8 }}
- name: "configuration"
configMap:
name: {{ include "txdc.fullname" . }}-controlplane
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#
# Copyright (c) 2023 ZF Friedrichshafen AG
# Copyright (c) 2023 Mercedes-Benz Tech Innovation GmbH
# Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021, 2023 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
#
# Copyright (c) 2023 ZF Friedrichshafen AG
# Copyright (c) 2023 Mercedes-Benz Tech Innovation GmbH
# Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021, 2023 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
#

---
apiVersion: apps/v1
Expand Down Expand Up @@ -242,6 +242,7 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
{{- toYaml .Values.dataplane.volumeMounts | default "" | nindent 12 }}
- name: "configuration"
mountPath: "/app/opentelemetry.properties"
subPath: "opentelemetry.properties"
Expand All @@ -256,6 +257,7 @@ spec:
- name: "tmp"
mountPath: "/tmp"
volumes:
{{- toYaml .Values.dataplane.volumes | default "" | nindent 8 }}
- name: "configuration"
configMap:
name: {{ include "txdc.fullname" . }}-dataplane
Expand Down
10 changes: 5 additions & 5 deletions charts/tractusx-connector-azure-vault/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ controlplane:
# -- If preset enables certificate generation via cert-manager cluster-wide issuer
clusterIssuer: ""
# -- declare where to mount [volumes](https://kubernetes.io/docs/concepts/storage/volumes/) into the container
volumeMounts: []
volumeMounts:
# -- [volume](https://kubernetes.io/docs/concepts/storage/volumes/) directories
volumes: []
volumes:
# -- [resource management](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for the container
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down Expand Up @@ -444,9 +444,9 @@ dataplane:
# -- If preset enables certificate generation via cert-manager cluster-wide issuer
clusterIssuer: ""
# -- declare where to mount [volumes](https://kubernetes.io/docs/concepts/storage/volumes/) into the container
volumeMounts: []
volumeMounts:
# -- [volume](https://kubernetes.io/docs/concepts/storage/volumes/) directories
volumes: []
volumes:
# -- [resource management](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for the container
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down Expand Up @@ -498,7 +498,7 @@ postgresql:
jdbcUrl: "jdbc:postgresql://{{ .Release.Name }}-postgresql:5432/edc"
primary:
persistence:
enabled: false
enabled: false
readReplicas:
persistence:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
{{- toYaml .Values.controlplane.volumeMounts | default "" | nindent 12 }}
- name: "configuration"
mountPath: "/app/opentelemetry.properties"
subPath: "opentelemetry.properties"
Expand All @@ -387,6 +388,7 @@ spec:
- name: "tmp"
mountPath: "/tmp"
volumes:
{{- toYaml .Values.controlplane.volumes | default "" | nindent 8 }}
- name: "configuration"
configMap:
name: {{ include "txdc.fullname" . }}-controlplane
Expand Down
42 changes: 22 additions & 20 deletions charts/tractusx-connector/templates/deployment-dataplane.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#
# Copyright (c) 2023 ZF Friedrichshafen AG
# Copyright (c) 2023 Mercedes-Benz Tech Innovation GmbH
# Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021, 2023 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
#
# Copyright (c) 2023 ZF Friedrichshafen AG
# Copyright (c) 2023 Mercedes-Benz Tech Innovation GmbH
# Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021, 2023 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
#

---
apiVersion: apps/v1
Expand Down Expand Up @@ -241,6 +241,7 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
{{- toYaml .Values.dataplane.volumeMounts | default "" | nindent 12 }}
- name: "configuration"
mountPath: "/app/opentelemetry.properties"
subPath: "opentelemetry.properties"
Expand All @@ -255,6 +256,7 @@ spec:
- name: "tmp"
mountPath: "/tmp"
volumes:
{{- toYaml .Values.dataplane.volumes | default "" | nindent 8 }}
- name: "configuration"
configMap:
name: {{ include "txdc.fullname" . }}-dataplane
Expand Down
8 changes: 4 additions & 4 deletions charts/tractusx-connector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ controlplane:
# -- If preset enables certificate generation via cert-manager cluster-wide issuer
clusterIssuer: ""
# -- declare where to mount [volumes](https://kubernetes.io/docs/concepts/storage/volumes/) into the container
volumeMounts: []
volumeMounts:
# -- [volume](https://kubernetes.io/docs/concepts/storage/volumes/) directories
volumes: []
volumes:
# -- [resource management](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for the container
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down Expand Up @@ -442,9 +442,9 @@ dataplane:
# -- If preset enables certificate generation via cert-manager cluster-wide issuer
clusterIssuer: ""
# -- declare where to mount [volumes](https://kubernetes.io/docs/concepts/storage/volumes/) into the container
volumeMounts: []
volumeMounts:
# -- [volume](https://kubernetes.io/docs/concepts/storage/volumes/) directories
volumes: []
volumes:
# -- [resource management](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for the container
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 6978619

Please sign in to comment.