Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Talos OS #64

Merged
merged 2 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/csi-driver-lvm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: csi-driver-lvm
version: 0.5.3
version: 0.5.4
description: local persistend storage for lvm
appVersion: v0.5.1
appVersion: v0.5.2
apiVersion: v1
keywords:
- storage
Expand Down
13 changes: 7 additions & 6 deletions charts/csi-driver-lvm/templates/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ metadata:
spec:
allowedHostPaths:
- pathPrefix: /lib/modules
- pathPrefix: /etc/lvm/cache
- pathPrefix: {{ .Values.lvm.hostWritePath }}/cache
- pathPrefix: {{ .Values.kubernetes.kubeletPath }}/plugins/{{ .Values.lvm.storageClassStub }}
- pathPrefix: /etc/lvm/backup
- pathPrefix: /run/lock/lvm
- pathPrefix: {{ .Values.lvm.hostWritePath }}/backup
- pathPrefix: {{ .Values.lvm.hostWritePath }}/lock
- pathPrefix: {{ .Values.kubernetes.kubeletPath }}/plugins
- pathPrefix: {{ .Values.kubernetes.kubeletPath }}/plugins_registry
- pathPrefix: /dev
Expand Down Expand Up @@ -169,6 +169,7 @@ spec:
args:
- --drivername={{ .Values.lvm.driverName }}
- --endpoint=unix:///csi/csi.sock
- --hostwritepath={{ .Values.lvm.hostWritePath }}
- --devices={{ .Values.lvm.devicePattern }}
- --nodeid=$(KUBE_NODE_NAME)
- --vgname={{ .Values.lvm.vgName }}
Expand Down Expand Up @@ -267,15 +268,15 @@ spec:
path: /lib/modules
name: mod-dir
- hostPath:
path: /etc/lvm/backup
path: {{ .Values.lvm.hostWritePath }}/backup
type: DirectoryOrCreate
name: lvmbackup
- hostPath:
path: /etc/lvm/cache
path: {{ .Values.lvm.hostWritePath }}/cache
type: DirectoryOrCreate
name: lvmcache
- hostPath:
path: /run/lock/lvm
path: {{ .Values.lvm.hostWritePath }}/lock
type: DirectoryOrCreate
name: lvmlock
---
8 changes: 6 additions & 2 deletions charts/csi-driver-lvm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ lvm:
# This one you should change
devicePattern: /dev/nvme[0-9]n[0-9]

# You will want to change this for read-only filesystems
# For example, in Talos OS, set this to "/var/etc/lvm"
hostWritePath: /etc/lvm

# these are primariliy for testing purposes
vgName: csi-lvm
driverName: lvm.csi.metal-stack.io
Expand All @@ -17,12 +21,12 @@ compat03x: false

pluginImage:
repository: ghcr.io/metal-stack/csi-driver-lvm
tag: v0.5.1
tag: v0.5.2
pullPolicy: IfNotPresent

provisionerImage:
repository: ghcr.io/metal-stack/csi-driver-lvm-provisioner
tag: v0.5.1
tag: v0.5.2
pullPolicy: IfNotPresent

kubernetes:
Expand Down