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

feat: karpor: support etcd stroage class #50

Merged
merged 5 commits into from
Aug 20, 2024
Merged
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 charts/karpor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v2
name: karpor
# The Chart Version
version: 0.6.1
version: 0.6.2
type: application
# The Application Version in the Chart
appVersion: 0.4.8
Expand Down
14 changes: 12 additions & 2 deletions charts/karpor/templates/etcd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ spec:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
accessModes:
{{- range .Values.etcd.persistence.accessModes }}
- {{ . | quote }}
{{- end }}
resources:
requests:
storage: 10Gi
storage: {{ .Values.etcd.persistence.size | quote }}
{{- if .Values.etcd.persistence.storageClass }}
{{- if (eq "-" .Values.etcd.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.etcd.persistence.storageClass }}"
{{- end }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/karpor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ etcd:
cpu: 500m
memory: 1Gi
ephemeral-storage: 10Gi
persistence:
# enabled: true
size: 10Gi
accessModes:
- ReadWriteOnce
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"

# Configuration for Jobs
job:
Expand Down
Loading