Skip to content

Commit

Permalink
[bitnami/redis-cluster] Possibility to add labels to redis-cluster pvc (
Browse files Browse the repository at this point in the history
#25901)

* Possibility to add labels to redis-cluster pvc

Signed-off-by: Ammirator <[email protected]>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: Ammirator <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Rafael Ríos Saavedra <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
Co-authored-by: Rafael Ríos Saavedra <[email protected]>
  • Loading branch information
3 people authored May 20, 2024
1 parent 6ef6152 commit 486c345
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitnami/redis-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ maintainers:
name: redis-cluster
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/redis-cluster
version: 10.0.5
version: 10.0.6
3 changes: 2 additions & 1 deletion bitnami/redis-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ See [#15075](https://github.com/bitnami/charts/issues/15075)
| `persistence.subPath` | The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services | `""` |
| `persistence.storageClass` | Storage class of backing PVC | `""` |
| `persistence.annotations` | Persistent Volume Claim annotations | `{}` |
| `persistence.labels` | Persistent Volume Claim labels | `{}` |
| `persistence.accessModes` | Persistent Volume Access Modes | `["ReadWriteOnce"]` |
| `persistence.size` | Size of data volume | `8Gi` |
| `persistence.matchLabels` | Persistent Volume selectors | `{}` |
Expand Down Expand Up @@ -783,4 +784,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
3 changes: 3 additions & 0 deletions bitnami/redis-cluster/templates/redis-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ spec:
- metadata:
name: redis-data
labels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 10 }}
{{- if .Values.persistence.labels }}
{{- include "common.tplvalues.render" (dict "value" .Values.persistence.labels "context" $) | nindent 10 }}
{{- end }}
{{- if .Values.persistence.annotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.annotations "context" $) | nindent 10 }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions bitnami/redis-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ persistence:
## @param persistence.annotations Persistent Volume Claim annotations
##
annotations: {}
## @param persistence.labels Persistent Volume Claim labels
##
labels: {}
## @param persistence.accessModes Persistent Volume Access Modes
##
accessModes:
Expand Down

0 comments on commit 486c345

Please sign in to comment.