Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix(installer): Remove duplicate volumes and volumeMounts configuration #8950

Merged
merged 1 commit into from
Oct 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 5 additions & 7 deletions installer/manifests/keptn/templates/shipyard-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ spec:
serviceAccountName: keptn-shipyard-controller
containers:
- name: shipyard-controller
volumeMounts:
- name: keptn-git-config-volume
mountPath: /keptn-git-config
readOnly: true
image: {{ include "keptn.common.images.image" ( dict "imageRoot" .Values.shipyardController.image "global" .Values.global.keptn "defaultTag" .Chart.AppVersion) | quote }}
lifecycle:
preStop:
Expand Down Expand Up @@ -106,8 +102,11 @@ spec:
resources:
{{- toYaml .Values.shipyardController.resources | nindent 12 }}
{{- include "keptn.common.container-security-context" . | nindent 10 }}
{{- if .Values.shipyardController.extraVolumeMounts }}
volumeMounts:
- name: keptn-git-config-volume
mountPath: /keptn-git-config
readOnly: true
{{- if .Values.shipyardController.extraVolumeMounts }}
{{- include "keptn.common.tplvalues.render" ( dict "value" .Values.shipyardController.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- with .Values.shipyardController.sidecars }}
Expand All @@ -118,11 +117,10 @@ spec:
- name: keptn-git-config-volume
configMap:
name: keptn-git-config
{{- include "keptn.nodeSelector" (dict "value" .Values.shipyardController.nodeSelector "default" .Values.nodeSelector "indent" 6 "context" . )}}
{{- if .Values.shipyardController.extraVolumes }}
volumes:
{{- include "keptn.common.tplvalues.render" ( dict "value" .Values.shipyardController.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- include "keptn.nodeSelector" (dict "value" .Values.shipyardController.nodeSelector "default" .Values.nodeSelector "indent" 6 "context" . )}}
---
apiVersion: v1
kind: Service
Expand Down