Skip to content

Commit

Permalink
release: v1.6.0-rc3
Browse files Browse the repository at this point in the history
Signed-off-by: David Ko <[email protected]>
  • Loading branch information
innobead committed Jan 26, 2024
1 parent 4b43f29 commit 3e2748d
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 41 deletions.
4 changes: 2 additions & 2 deletions charts/longhorn/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: longhorn
version: 1.6.0-rc2
appVersion: v1.6.0-rc2
version: 1.6.0-rc3
appVersion: v1.6.0-rc3
kubeVersion: ">=1.21.0-0"
description: Longhorn is a distributed block storage system for Kubernetes.
keywords:
Expand Down
1 change: 1 addition & 0 deletions charts/longhorn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ For more details, see the [ocp-readme](https://github.com/longhorn/longhorn/blob
| enableGoCoverDir | `false` | Setting that allows Longhorn to generate code coverage profiles. |
| enablePSP | `false` | Setting that allows you to enable pod security policies (PSPs) that allow privileged Longhorn pods to start. This setting applies only to clusters running Kubernetes 1.25 and earlier, and with the built-in Pod Security admission controller enabled. |
| metrics.serviceMonitor.enabled | `false` | Setting that allows the creation of a Prometheus ServiceMonitor resource for Longhorn Manager components. |
| namespaceOverride | `""` | Specify override namespace, specifically this is useful for using longhorn as sub-chart and its release namespace is not the `longhorn-system`. |
| preUpgradeChecker.jobEnabled | `true` | Setting that allows Longhorn to perform pre-upgrade checks. Disable this setting when installing Longhorn using Argo CD or other GitOps solutions. |
| preUpgradeChecker.upgradeVersionCheck | `true` | Setting that allows Longhorn to perform upgrade version checks after starting the Longhorn Manager DaemonSet Pods. Disabling this setting also disables `preUpgradeChecker.jobEnabled`. Longhorn recommends keeping this setting enabled. |

Expand Down
58 changes: 29 additions & 29 deletions charts/longhorn/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ questions:
label: Longhorn Manager Image Repository
group: "Longhorn Images Settings"
- variable: image.longhorn.manager.tag
default: v1.6.0-rc2
default: v1.6.0-rc3
description: "Specify Longhorn Manager Image Tag"
type: string
label: Longhorn Manager Image Tag
Expand All @@ -29,7 +29,7 @@ questions:
label: Longhorn Engine Image Repository
group: "Longhorn Images Settings"
- variable: image.longhorn.engine.tag
default: v1.6.0-rc2
default: v1.6.0-rc3
description: "Specify Longhorn Engine Image Tag"
type: string
label: Longhorn Engine Image Tag
Expand All @@ -41,7 +41,7 @@ questions:
label: Longhorn UI Image Repository
group: "Longhorn Images Settings"
- variable: image.longhorn.ui.tag
default: v1.6.0-rc2
default: v1.6.0-rc3
description: "Specify Longhorn UI Image Tag"
type: string
label: Longhorn UI Image Tag
Expand All @@ -53,7 +53,7 @@ questions:
label: Longhorn Instance Manager Image Repository
group: "Longhorn Images Settings"
- variable: image.longhorn.instanceManager.tag
default: v1.6.0-rc2
default: v1.6.0-rc3
description: "Specify Longhorn Instance Manager Image Tag"
type: string
label: Longhorn Instance Manager Image Tag
Expand All @@ -65,7 +65,7 @@ questions:
label: Longhorn Share Manager Image Repository
group: "Longhorn Images Settings"
- variable: image.longhorn.shareManager.tag
default: v1.6.0-rc2
default: v1.6.0-rc3
description: "Specify Longhorn Share Manager Image Tag"
type: string
label: Longhorn Share Manager Image Tag
Expand All @@ -77,7 +77,7 @@ questions:
label: Longhorn Backing Image Manager Image Repository
group: "Longhorn Images Settings"
- variable: image.longhorn.backingImageManager.tag
default: v1.6.0-rc2
default: v1.6.0-rc3
description: "Specify Longhorn Backing Image Manager Image Tag"
type: string
label: Longhorn Backing Image Manager Image Tag
Expand Down Expand Up @@ -215,36 +215,36 @@ questions:
default: 3
min: 1
max: 10
description: "Replica count of the CSI Attacher. When unspecified, Longhorn uses the default value ("3")."
description: "Replica count of the CSI Attacher. When unspecified, Longhorn uses the default value (\"3\")."
label: Longhorn CSI Attacher replica count
group: "Longhorn CSI Driver Settings"
- variable: csi.provisionerReplicaCount
type: int
default: 3
min: 1
max: 10
description: "Replica count of the CSI Provisioner. When unspecified, Longhorn uses the default value ("3")."
description: "Replica count of the CSI Provisioner. When unspecified, Longhorn uses the default value (\"3\")."
label: Longhorn CSI Provisioner replica count
group: "Longhorn CSI Driver Settings"
- variable: csi.resizerReplicaCount
type: int
default: 3
min: 1
max: 10
description: "Replica count of the CSI Resizer. When unspecified, Longhorn uses the default value ("3")."
description: "Replica count of the CSI Resizer. When unspecified, Longhorn uses the default value (\"3\")."
label: Longhorn CSI Resizer replica count
group: "Longhorn CSI Driver Settings"
- variable: csi.snapshotterReplicaCount
type: int
default: 3
min: 1
max: 10
description: "Replica count of the CSI Snapshotter. When unspecified, Longhorn uses the default value ("3")."
description: "Replica count of the CSI Snapshotter. When unspecified, Longhorn uses the default value (\"3\")."
label: Longhorn CSI Snapshotter replica count
group: "Longhorn CSI Driver Settings"
- variable: defaultSettings.backupTarget
label: Backup Target
description: "Endpoint used to access the backupstore. (Options: "NFS", "CIFS", "AWS", "GCP", "AZURE")"
description: "Endpoint used to access the backupstore. (Options: \"NFS\", \"CIFS\", \"AWS\", \"GCP\", \"AZURE\")"
group: "Longhorn Default Settings"
type: string
default:
Expand Down Expand Up @@ -328,28 +328,28 @@ questions:
default: "true"
- variable: defaultSettings.defaultReplicaCount
label: Default Replica Count
description: "Default number of replicas for volumes created using the Longhorn UI. For Kubernetes configuration, modify the `numberOfReplicas` field in the StorageClass. The default value is "3"."
description: "Default number of replicas for volumes created using the Longhorn UI. For Kubernetes configuration, modify the `numberOfReplicas` field in the StorageClass. The default value is \"3\"."
group: "Longhorn Default Settings"
type: int
min: 1
max: 20
default: 3
- variable: defaultSettings.defaultLonghornStaticStorageClass
label: Default Longhorn Static StorageClass Name
description: "Default Longhorn StorageClass. "storageClassName" is assigned to PVs and PVCs that are created for an existing Longhorn volume. "storageClassName" can also be used as a label, so it is possible to use a Longhorn StorageClass to bind a workload to an existing PV without creating a Kubernetes StorageClass object. The default value is "longhorn-static"."
description: "Default Longhorn StorageClass. \"storageClassName\" is assigned to PVs and PVCs that are created for an existing Longhorn volume. \"storageClassName\" can also be used as a label, so it is possible to use a Longhorn StorageClass to bind a workload to an existing PV without creating a Kubernetes StorageClass object. The default value is \"longhorn-static\"."
group: "Longhorn Default Settings"
type: string
default: "longhorn-static"
- variable: defaultSettings.backupstorePollInterval
label: Backupstore Poll Interval
description: "Number of seconds that Longhorn waits before checking the backupstore for new backups. The default value is "300". When the value is "0", polling is disabled."
description: "Number of seconds that Longhorn waits before checking the backupstore for new backups. The default value is \"300\". When the value is \"0\", polling is disabled."
group: "Longhorn Default Settings"
type: int
min: 0
default: 300
- variable: defaultSettings.failedBackupTTL
label: Failed Backup Time to Live
description: "Number of minutes that Longhorn keeps a failed backup resource. When the value is "0", automatic deletion is disabled."
description: "Number of minutes that Longhorn keeps a failed backup resource. When the value is \"0\", automatic deletion is disabled."
group: "Longhorn Default Settings"
type: int
min: 0
Expand Down Expand Up @@ -475,7 +475,7 @@ questions:
label: Concurrent Replica Rebuild Per Node Limit
description: "Maximum number of replicas that can be concurrently rebuilt on each node.
WARNING:
- The old setting "Disable Replica Rebuild" is replaced by this setting.
- The old setting \"Disable Replica Rebuild\" is replaced by this setting.
- Different from relying on replica starting delay to limit the concurrent rebuilding, if the rebuilding is disabled, replica object replenishment will be directly skipped.
- When the value is 0, the eviction and data locality feature won't work. But this shouldn't have any impact to any current replica rebuild and backup restore."
group: "Longhorn Default Settings"
Expand All @@ -484,14 +484,14 @@ questions:
default: 5
- variable: defaultSettings.concurrentVolumeBackupRestorePerNodeLimit
label: Concurrent Volume Backup Restore Per Node Limit
description: "Maximum number of volumes that can be concurrently restored on each node using a backup. When the value is "0", restoration of volumes using a backup is disabled."
description: "Maximum number of volumes that can be concurrently restored on each node using a backup. When the value is \"0\", restoration of volumes using a backup is disabled."
group: "Longhorn Default Settings"
type: int
min: 0
default: 5
- variable: defaultSettings.disableRevisionCounter
label: Disable Revision Counter
description: "Setting that disables the revision counter and thereby prevents Longhorn from tracking all write operations to a volume. When salvaging a volume, Longhorn uses properties of the "volume-head-xxx.img" file (the last file size and the last time the file was modified) to select the replica to be used for volume recovery. This setting applies only to volumes created using the Longhorn UI."
description: "Setting that disables the revision counter and thereby prevents Longhorn from tracking all write operations to a volume. When salvaging a volume, Longhorn uses properties of the \"volume-head-xxx.img\" file (the last file size and the last time the file was modified) to select the replica to be used for volume recovery. This setting applies only to volumes created using the Longhorn UI."
group: "Longhorn Default Settings"
type: boolean
default: "false"
Expand Down Expand Up @@ -525,7 +525,7 @@ questions:
default: "true"
- variable: defaultSettings.concurrentAutomaticEngineUpgradePerNodeLimit
label: Concurrent Automatic Engine Upgrade Per Node Limit
description: "Maximum number of engines that are allowed to concurrently upgrade on each node after Longhorn Manager is upgraded. When the value is "0", Longhorn does not automatically upgrade volume engines to the new default engine image version."
description: "Maximum number of engines that are allowed to concurrently upgrade on each node after Longhorn Manager is upgraded. When the value is \"0\", Longhorn does not automatically upgrade volume engines to the new default engine image version."
group: "Longhorn Default Settings"
type: int
min: 0
Expand All @@ -539,19 +539,19 @@ questions:
default: 60
- variable: defaultSettings.backingImageRecoveryWaitInterval
label: Backing Image Recovery Wait Interval
description: "Number of seconds that Longhorn waits before downloading a backing image file again when the status of all image disk files changes to "failed" or "unknown"."
description: "Number of seconds that Longhorn waits before downloading a backing image file again when the status of all image disk files changes to \"failed\" or \"unknown\"."
group: "Longhorn Default Settings"
type: int
min: 0
default: 300
- variable: defaultSettings.guaranteedInstanceManagerCPU
label: Guaranteed Instance Manager CPU
description: "Percentage of the total allocatable CPU resources on each node to be reserved for each instance manager pod when the V1 Data Engine is enabled. The default value is "12".
description: "Percentage of the total allocatable CPU resources on each node to be reserved for each instance manager pod when the V1 Data Engine is enabled. The default value is \"12\".
WARNING:
- Value 0 means removing the CPU requests from spec of instance manager pods.
- Considering the possible number of new instance manager pods in a further system upgrade, this integer value ranges from 0 to 40.
- One more set of instance manager pods may need to be deployed when the Longhorn system is upgraded. If current available CPUs of the nodes are not enough for the new instance manager pods, you need to detach the volumes using the oldest instance manager pods so that Longhorn can clean up the old pods automatically and release the CPU resources. And the new pods with the latest instance manager image will be launched then.
- This global setting will be ignored for a node if the field "InstanceManagerCPURequest" on the node is set.
- This global setting will be ignored for a node if the field \"InstanceManagerCPURequest\" on the node is set.
- After this setting is changed, all instance manager pods using this global setting on all the nodes will be automatically restarted. In other words, DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES."
group: "Longhorn Default Settings"
type: int
Expand Down Expand Up @@ -600,7 +600,7 @@ questions:
default: "false"
- variable: defaultSettings.engineReplicaTimeout
label: Timeout between Engine and Replica
description: "Timeout between the Longhorn Engine and replicas. Specify a value between "8" and "30" seconds. The default value is "8"."
description: "Timeout between the Longhorn Engine and replicas. Specify a value between \"8\" and \"30\" seconds. The default value is \"8\"."
group: "Longhorn Default Settings"
type: int
default: "8"
Expand Down Expand Up @@ -630,7 +630,7 @@ questions:
default: "false"
- variable: defaultSettings.fastReplicaRebuildEnabled
label: Fast Replica Rebuild Enabled
description: "Setting that allows fast rebuilding of replicas using the checksum of snapshot disk files. Before enabling this setting, you must set the snapshot-data-integrity value to "enable" or "fast-check"."
description: "Setting that allows fast rebuilding of replicas using the checksum of snapshot disk files. Before enabling this setting, you must set the snapshot-data-integrity value to \"enable\" or \"fast-check\"."
group: "Longhorn Default Settings"
type: boolean
default: false
Expand Down Expand Up @@ -706,7 +706,7 @@ questions:
type: boolean
- variable: persistence.reclaimPolicy
label: Storage Class Retain Policy
description: "Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: "Retain", "Delete")"
description: "Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: \"Retain\", \"Delete\")"
group: "Longhorn Storage Class Settings"
required: true
type: enum
Expand All @@ -723,7 +723,7 @@ questions:
max: 10
default: 3
- variable: persistence.defaultDataLocality
description: "Data locality of the default Longhorn StorageClass. (Options: "disabled", "best-effort")"
description: "Data locality of the default Longhorn StorageClass. (Options: \"disabled\", \"best-effort\")"
label: Default Storage Class Data Locality
group: "Longhorn Storage Class Settings"
type: enum
Expand Down Expand Up @@ -806,7 +806,7 @@ questions:
type: string
default:
- variable: persistence.removeSnapshotsDuringFilesystemTrim
description: "Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: "ignored", "enabled", "disabled")"
description: "Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: \"ignored\", \"enabled\", \"disabled\")"
label: Default Storage Class Remove Snapshots During Filesystem Trim
group: "Longhorn Storage Class Settings"
type: enum
Expand Down Expand Up @@ -837,7 +837,7 @@ questions:
label: Ingress Path
- variable: service.ui.type
default: "Rancher-Proxy"
description: "Service type for Longhorn UI. (Options: "ClusterIP", "NodePort", "LoadBalancer", "Rancher-Proxy")"
description: "Service type for Longhorn UI. (Options: \"ClusterIP\", \"NodePort\", \"LoadBalancer\", \"Rancher-Proxy\")"
type: enum
options:
- "ClusterIP"
Expand Down Expand Up @@ -879,7 +879,7 @@ questions:
subquestions:
- variable: networkPolicies.type
label: Network Policies for Ingress
description: "Distribution that determines the policy for allowing access for an ingress. (Options: "k3s", "rke2", "rke1")"
description: "Distribution that determines the policy for allowing access for an ingress. (Options: \"k3s\", \"rke2\", \"rke1\")"
show_if: "networkPolicies.enabled=true&&ingress.enabled=true"
type: enum
default: "rke2"
Expand Down
4 changes: 4 additions & 0 deletions charts/longhorn/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ app.kubernetes.io/version: {{ .Chart.AppVersion }}
define the longhorn release namespace
*/ -}}
{{- define "release_namespace" -}}
{{- if .Values.namespaceOverride -}}
{{- .Values.namespaceOverride -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- end -}}
1 change: 0 additions & 1 deletion charts/longhorn/templates/daemonset-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.manager.type }}
sessionAffinity: ClientIP
selector:
app: longhorn-manager
ports:
Expand Down
3 changes: 0 additions & 3 deletions charts/longhorn/templates/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ metadata:
namespace: {{ include "release_namespace" . }}
spec:
type: ClusterIP
sessionAffinity: ClientIP
selector:
app: longhorn-manager
ports:
Expand All @@ -24,7 +23,6 @@ metadata:
namespace: {{ include "release_namespace" . }}
spec:
type: ClusterIP
sessionAffinity: ClientIP
selector:
app: longhorn-manager
ports:
Expand All @@ -41,7 +39,6 @@ metadata:
namespace: {{ include "release_namespace" . }}
spec:
type: ClusterIP
sessionAffinity: ClientIP
selector:
app: longhorn-manager
ports:
Expand Down
15 changes: 9 additions & 6 deletions charts/longhorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,32 @@ image:
# -- Repository for the Longhorn Engine image.
repository: longhornio/longhorn-engine
# -- Specify Longhorn engine image tag
tag: v1.6.0-rc2
tag: v1.6.0-rc3
manager:
# -- Repository for the Longhorn Manager image.
repository: longhornio/longhorn-manager
# -- Specify Longhorn manager image tag
tag: v1.6.0-rc2
tag: v1.6.0-rc3
ui:
# -- Repository for the Longhorn UI image.
repository: longhornio/longhorn-ui
# -- Specify Longhorn ui image tag
tag: v1.6.0-rc2
tag: v1.6.0-rc3
instanceManager:
# -- Repository for the Longhorn Instance Manager image.
repository: longhornio/longhorn-instance-manager
# -- Specify Longhorn instance manager image tag
tag: v1.6.0-rc2
tag: v1.6.0-rc3
shareManager:
# -- Repository for the Longhorn Share Manager image.
repository: longhornio/longhorn-share-manager
# -- Specify Longhorn share manager image tag
tag: v1.6.0-rc2
tag: v1.6.0-rc3
backingImageManager:
# -- Repository for the Backing Image Manager image. When unspecified, Longhorn uses the default value.
repository: longhornio/backing-image-manager
# -- Specify Longhorn backing image manager image tag
tag: v1.6.0-rc2
tag: v1.6.0-rc3
supportBundleKit:
# -- Repository for the Longhorn Support Bundle Manager image.
repository: longhornio/support-bundle-kit
Expand Down Expand Up @@ -450,6 +450,9 @@ ingress:
# -- Setting that allows you to enable pod security policies (PSPs) that allow privileged Longhorn pods to start. This setting applies only to clusters running Kubernetes 1.25 and earlier, and with the built-in Pod Security admission controller enabled.
enablePSP: false

# -- Specify override namespace, specifically this is useful for using longhorn as sub-chart and its release namespace is not the `longhorn-system`.
namespaceOverride: ""

# -- Annotation for the Longhorn Manager DaemonSet pods. This setting is optional.
annotations: {}

Expand Down

0 comments on commit 3e2748d

Please sign in to comment.