Allow to use default storage class

When name of storage class is specified as default, do not add
storageClassName option to let kubernetes pick a default

Change-Id: I25c60e49ba770ce10ea2ec68c3555ffea49848fe
This commit is contained in:
Vasyl Saienko 2024-11-18 12:25:27 +00:00
parent bb236e0a98
commit cae49d7455
12 changed files with 16 additions and 4 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v10.6.14
description: OpenStack-Helm MariaDB controlled by mariadb-operator
name: mariadb-cluster
version: 0.0.6
version: 0.0.7
home: https://mariadb.com/kb/en/
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
sources:

View File

@ -208,6 +208,8 @@ spec:
storage: {{ .Values.volume.size }}
accessModes:
- ReadWriteOnce
{{- if ne .Values.volume.class_name "default" }}
storageClassName: {{ .Values.volume.class_name }}
{{- end }}
{{- end }}

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v10.6.7
description: OpenStack-Helm MariaDB
name: mariadb
version: 0.2.64
version: 0.2.65
home: https://mariadb.com/kb/en/
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
sources:

View File

@ -356,6 +356,8 @@ spec:
resources:
requests:
storage: {{ .Values.volume.size }}
{{- if ne .Values.volume.class_name "default" }}
storageClassName: {{ .Values.volume.class_name }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v3.12.0
description: OpenStack-Helm RabbitMQ
name: rabbitmq
version: 0.1.43
version: 0.1.44
home: https://github.com/rabbitmq/rabbitmq-server
...

View File

@ -355,6 +355,8 @@ spec:
resources:
requests:
storage: {{ $envAll.Values.volume.size }}
{{- if ne .Values.volume.class_name "default" }}
storageClassName: {{ $envAll.Values.volume.class_name }}
{{- end }}
{{- end }}
{{ end }}

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v2.0.0
description: OpenStack-Helm Docker Registry
name: registry
version: 0.1.9
version: 0.1.10
home: https://github.com/kubernetes/ingress
sources:
- https://opendev.org/openstack/openstack-helm

View File

@ -24,5 +24,7 @@ spec:
resources:
requests:
storage: {{ .Values.volume.size }}
{{- if ne .Values.volume.class_name "default" }}
storageClassName: {{ .Values.volume.class_name }}
{{- end }}
{{- end }}

View File

@ -6,4 +6,5 @@ mariadb-cluster:
- 0.0.4 Add 2024.1 overrides
- 0.0.5 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
- 0.0.6 Add 2024.2 overrides
- 0.0.7 Allow to use default storage class
...

View File

@ -80,4 +80,5 @@ mariadb:
- 0.2.62 Implement mariadb upgrade during start
- 0.2.63 Use service ip for endpoint discovery
- 0.2.64 Add terminationGracePeriodSeconds
- 0.2.65 Allow to use default storage class
...

View File

@ -43,4 +43,5 @@ rabbitmq:
- 0.1.41 Use short rabbitmq node name
- 0.1.42 Revert Use short rabbitmq node name
- 0.1.43 Add 2024.2 overrides
- 0.1.44 Allow to use default storage class
...

View File

@ -10,4 +10,5 @@ registry:
- 0.1.7 Update kubernetes registry to registry.k8s.io
- 0.1.8 Update bootstrap image url for newer image format
- 0.1.9 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
- 0.1.10 Allow to use default storage class
...