Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use existing pvc with default storage #8564

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.14.0
version: 0.14.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/templates/cvat_backend/server/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ spec:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
claimName: {{ default (printf "%s-backend-data" .Release.Name) .Values.cvat.backend.defaultStorage.existingClaimName | quote}}
{{- if not .Values.cvat.backend.disableDistinctCachePerService }}
- name: cvat-backend-per-service-cache
emptyDir: {}
Expand Down
2 changes: 2 additions & 0 deletions helm-chart/templates/cvat_backend/storage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.cvat.backend.defaultStorage.enabled }}
{{- if not .Values.cvat.backend.defaultStorage.existingClaimName }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -24,3 +25,4 @@ spec:
requests:
storage: {{ .Values.cvat.backend.defaultStorage.size }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion helm-chart/templates/cvat_backend/utils/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ spec:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
claimName: {{ default (printf "%s-backend-data" .Release.Name) .Values.cvat.backend.defaultStorage.existingClaimName | quote}}
{{- if not .Values.cvat.backend.disableDistinctCachePerService }}
- name: cvat-backend-per-service-cache
emptyDir: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ spec:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
claimName: {{ default (printf "%s-backend-data" .Release.Name) .Values.cvat.backend.defaultStorage.existingClaimName | quote}}
{{- if not .Values.cvat.backend.disableDistinctCachePerService }}
- name: cvat-backend-per-service-cache
emptyDir: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ spec:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
claimName: {{ default (printf "%s-backend-data" .Release.Name) .Values.cvat.backend.defaultStorage.existingClaimName | quote}}
{{- if not .Values.cvat.backend.disableDistinctCachePerService }}
- name: cvat-backend-per-service-cache
emptyDir: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ spec:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
claimName: {{ default (printf "%s-backend-data" .Release.Name) .Values.cvat.backend.defaultStorage.existingClaimName | quote}}
{{- if not .Values.cvat.backend.disableDistinctCachePerService }}
- name: cvat-backend-per-service-cache
emptyDir: {}
Expand Down
1 change: 1 addition & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ cvat:
name: http
defaultStorage:
enabled: true
# existingClaimName: ""
# storageClassName: default
# accessModes:
# - ReadWriteMany
Expand Down