Skip to content

Commit

Permalink
Add storage class option to charts
Browse files Browse the repository at this point in the history
  • Loading branch information
dbason committed May 31, 2023
1 parent ebda6a8 commit 81169c9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ spec:
name: plugins
spec:
accessModes: [ "ReadWriteOnce" ]
{{- if .Values.global.storageClass }}
storageClassName: {{ .Values.global.storageClass }}
{{- end }}
resources:
requests:
storage: 2Gi
Expand Down
1 change: 1 addition & 0 deletions packages/opni-agent/opni-agent/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ kube-prometheus-stack:
global:
cattle:
systemDefaultRegistry: ""
storageClass: ""
2 changes: 1 addition & 1 deletion packages/opni-agent/opni-agent/package.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
url: local
version: 0.10.0-rc3
version: 0.10.0-test4
workingDir: charts
3 changes: 3 additions & 0 deletions packages/opni/opni/charts/templates/nats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ spec:
memoryStorageSize: 1Gi
fileStorage:
pvc:
{{- if .Values.global.storageClass }}
storageClass: {{ .Values.global.storageClass }}
{{- end }}
accessModes:
- ReadWriteOnce
enabled: true
Expand Down
1 change: 1 addition & 0 deletions packages/opni/opni/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ opni-agent:
global:
cattle:
systemDefaultRegistry: ""
storageClass: ""

kube-prometheus-stack:
grafana:
Expand Down
2 changes: 1 addition & 1 deletion packages/opni/opni/package.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

url: local
version: 0.10.0-rc3
version: 0.10.0-test4
workingDir: charts
additionalCharts:
- workingDir: charts-crd
Expand Down

0 comments on commit 81169c9

Please sign in to comment.