mirror of
https://github.com/bitnami/charts.git
synced 2026-03-08 08:47:24 +08:00
[bitnami/nats] Add PersistentVolumeRetentionPolicy (#29371)
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 8.3.5 (2024-09-06)
|
||||
## 8.4.0 (2024-09-12)
|
||||
|
||||
* [bitnami/nats] Release 8.3.5 ([#29253](https://github.com/bitnami/charts/pull/29253))
|
||||
* [bitnami/nats] Add `PersistentVolumeRetentionPolicy` ([#29371](https://github.com/bitnami/charts/pull/29371))
|
||||
|
||||
## <small>8.3.5 (2024-09-06)</small>
|
||||
|
||||
* [bitnami/nats] Release 8.3.5 (#29253) ([a1687c9](https://github.com/bitnami/charts/commit/a1687c981454b4ec06fbc05993a6c498e5b29bcd)), closes [#29253](https://github.com/bitnami/charts/issues/29253)
|
||||
|
||||
## <small>8.3.4 (2024-08-30)</small>
|
||||
|
||||
|
||||
@@ -31,4 +31,4 @@ maintainers:
|
||||
name: nats
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/nats
|
||||
version: 8.3.5
|
||||
version: 8.4.0
|
||||
|
||||
@@ -337,14 +337,17 @@ As an alternative, you can use of the preset configurations for pod affinity, po
|
||||
|
||||
### Persistence parameters
|
||||
|
||||
| Name | Description | Value |
|
||||
| -------------------------- | ------------------------------------------------------------------- | ------------------- |
|
||||
| `persistence.enabled` | Enable NATS data persistence using PVC(s) | `false` |
|
||||
| `persistence.storageClass` | PVC Storage Class for NATS data volume | `""` |
|
||||
| `persistence.accessModes` | PVC Access modes | `["ReadWriteOnce"]` |
|
||||
| `persistence.size` | PVC Storage Request for NATS data volume | `8Gi` |
|
||||
| `persistence.annotations` | Annotations for the PVC | `{}` |
|
||||
| `persistence.selector` | Selector to match an existing Persistent Volume for NATS's data PVC | `{}` |
|
||||
| Name | Description | Value |
|
||||
| -------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------- |
|
||||
| `persistence.enabled` | Enable NATS data persistence using PVC(s) | `false` |
|
||||
| `persistence.storageClass` | PVC Storage Class for NATS data volume | `""` |
|
||||
| `persistence.accessModes` | PVC Access modes | `["ReadWriteOnce"]` |
|
||||
| `persistence.size` | PVC Storage Request for NATS data volume | `8Gi` |
|
||||
| `persistence.annotations` | Annotations for the PVC | `{}` |
|
||||
| `persistence.selector` | Selector to match an existing Persistent Volume for NATS's data PVC | `{}` |
|
||||
| `persistentVolumeClaimRetentionPolicy.enabled` | Enable Persistent volume retention policy for NATS statefulset | `false` |
|
||||
| `persistentVolumeClaimRetentionPolicy.whenScaled` | Volume retention behavior when the replica count of the StatefulSet is reduced | `Retain` |
|
||||
| `persistentVolumeClaimRetentionPolicy.whenDeleted` | Volume retention behavior that applies when the StatefulSet is deleted | `Retain` |
|
||||
|
||||
### Other parameters
|
||||
|
||||
@@ -461,4 +464,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.
|
||||
|
||||
@@ -224,6 +224,11 @@ spec:
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.persistence.enabled }}
|
||||
{{- if .Values.persistentVolumeClaimRetentionPolicy.enabled }}
|
||||
persistentVolumeClaimRetentionPolicy:
|
||||
whenDeleted: {{ .Values.persistentVolumeClaimRetentionPolicy.whenDeleted }}
|
||||
whenScaled: {{ .Values.persistentVolumeClaimRetentionPolicy.whenScaled }}
|
||||
{{- end }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
||||
|
||||
@@ -940,6 +940,19 @@ persistence:
|
||||
## app: my-app
|
||||
##
|
||||
selector: {}
|
||||
## Persistent Volume Claim Retention Policy
|
||||
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
|
||||
##
|
||||
persistentVolumeClaimRetentionPolicy:
|
||||
## @param persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for NATS statefulset
|
||||
##
|
||||
enabled: false
|
||||
## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
|
||||
##
|
||||
whenScaled: Retain
|
||||
## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
|
||||
##
|
||||
whenDeleted: Retain
|
||||
## @section Other parameters
|
||||
|
||||
## NATS Pod Disruption Budget configuration
|
||||
|
||||
BIN
readme-generator
Executable file
BIN
readme-generator
Executable file
Binary file not shown.
Reference in New Issue
Block a user