Skip to content

Commit

Permalink
fix values-schema, imporove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
romsharon98 authored and eladkal committed Jun 24, 2024
1 parent 9cd8177 commit a2afc9e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 39 deletions.
62 changes: 25 additions & 37 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1602,25 +1602,8 @@
"default": true
},
"persistentVolumeClaimRetentionPolicy": {
"description": "How PVCs are deleted during the lifecycle of a StatefulSet",
"type": [
"object",
"null"
],
"default": null,
"additionalProperties": false,
"properties": {
"whenDeleted": {
"description": "Whether to retain the PVC when the StatefulSet is deleted.",
"type": "string",
"default": "Retain"
},
"whenScaled": {
"description": "Whether to retain the PVC when the StatefulSet is scaled.",
"type": "string",
"default": "Retain"
}
}
"$ref": "#/definitions/persistentVolumeClaimRetentionPolicy",
"description": "PersistentVolumeClaim retention policy to be used in the lifecycle of a StatefulSet"
},
"size": {
"description": "Volume size for worker StatefulSet.",
Expand Down Expand Up @@ -2968,24 +2951,8 @@
"default": "100Gi"
},
"persistentVolumeClaimRetentionPolicy": {
"description": "How PVCs are deleted during the lifecycle of a StatefulSet",
"type": [
"object",
"null"
],
"additionalProperties": false,
"properties": {
"whenDeleted": {
"description": "Whether to retain the PVC when the StatefulSet is deleted.",
"type": "string",
"default": "Retain"
},
"whenScaled": {
"description": "Whether to retain the PVC when the StatefulSet is scaled.",
"type": "string",
"default": "Retain"
}
}
"$ref": "#/definitions/persistentVolumeClaimRetentionPolicy",
"description": "PersistentVolumeClaim retention policy to be used in the lifecycle of a StatefulSet"
},
"storageClassName": {
"description": "If using a custom StorageClass, pass name ref to all StatefulSets here.",
Expand Down Expand Up @@ -11876,6 +11843,27 @@
}
}
}
},
"persistentVolumeClaimRetentionPolicy": {
"description": "PersistentVolumeClaim retention policy to be used in the lifecycle of a StatefulSet",
"type": [
"object",
"null"
],
"default": null,
"additionalProperties": false,
"properties": {
"whenDeleted": {
"description": "Whether to retain the PVC when the StatefulSet is deleted.",
"type": "string",
"default": "Retain"
},
"whenScaled": {
"description": "Whether to retain the PVC when the StatefulSet is scaled.",
"type": "string",
"default": "Retain"
}
}
}
}
}
4 changes: 2 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ workers:
persistence:
# Enable persistent volumes
enabled: true
# persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled/removed
# This policy determines whether PVCs should be deleted when StatefulSet is scaled down or removed.
persistentVolumeClaimRetentionPolicy: ~
# persistentVolumeClaimRetentionPolicy:
# whenDeleted: Delete
Expand Down Expand Up @@ -1537,7 +1537,7 @@ triggerer:
persistence:
# Enable persistent volumes
enabled: true
# persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled/removed
# This policy determines whether PVCs should be deleted when StatefulSet is scaled down or removed.
persistentVolumeClaimRetentionPolicy: ~
# Volume size for triggerer StatefulSet
size: 100Gi
Expand Down

0 comments on commit a2afc9e

Please sign in to comment.