Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into postgreslet-mutating-webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
eberlep committed Nov 8, 2024
2 parents e0d6c16 + 18c66f6 commit 6d40c35
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 66 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/csi-driver-lvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.3.0
uses: helm/kind-action@v1.10.0
with:
version: v0.24.0
install_only: true

- name: Test
run: |
for i in 100 101; do fallocate -l 1G loop${i}.img ; sudo losetup /dev/loop${i} loop${i}.img; done
sudo losetup -a
make test-csi-driver-lvm
make cleanup-csi-driver-lvm
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.6.2
version: 0.7.0
description: local persistend storage for lvm
appVersion: v0.5.3
appVersion: v0.6.0
apiVersion: v1
keywords:
- storage
Expand Down
39 changes: 0 additions & 39 deletions charts/csi-driver-lvm/templates/_helpers.tpl

This file was deleted.

9 changes: 6 additions & 3 deletions charts/csi-driver-lvm/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,35 +162,38 @@ spec:
serviceAccountName: csi-driver-lvm-controller
containers:
- name: csi-attacher
image: {{ template "externalImages.csiAttacher" . }}
image: {{ .Values.sidecarImages.attacher }}
imagePullPolicy: IfNotPresent
args:
- --v=5
- --csi-address=/csi/csi.sock
securityContext:
readOnlyRootFilesystem: true
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
- name: csi-provisioner
image: {{ template "externalImages.csiProvisioner" . }}
image: {{ .Values.sidecarImages.provisioner }}
imagePullPolicy: IfNotPresent
args:
- -v=5
- --csi-address=/csi/csi.sock
- --feature-gates=Topology=true
securityContext:
readOnlyRootFilesystem: true
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
- name: csi-resizer
image: {{ template "externalImages.csiResizer" . }}
image: {{ .Values.sidecarImages.resizer }}
imagePullPolicy: IfNotPresent
args:
- -v=5
- -csi-address=/csi/csi.sock
securityContext:
readOnlyRootFilesystem: true
privileged: true
volumeMounts:
- mountPath: /csi
Expand Down
15 changes: 13 additions & 2 deletions charts/csi-driver-lvm/templates/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,11 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
image: {{ template "externalImages.csiNodeDriverRegistrar" . }}
image: {{ .Values.sidecarImages.registrar }}
imagePullPolicy: IfNotPresent
resources: {}
securityContext:
readOnlyRootFilesystem: true
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
Expand Down Expand Up @@ -206,6 +207,7 @@ spec:
protocol: TCP
resources: {}
securityContext:
readOnlyRootFilesystem: true
privileged: true
terminationMessagePath: /termination.log
terminationMessagePolicy: File
Expand All @@ -229,16 +231,21 @@ spec:
- mountPath: /etc/lvm/cache
name: lvmcache
mountPropagation: Bidirectional
- mountPath: /etc/lvm/archive
name: lvmarchive
mountPropagation: Bidirectional
- mountPath: /run/lock/lvm
name: lvmlock
mountPropagation: Bidirectional
- name: liveness-probe
args:
- --csi-address=/csi/csi.sock
- --health-port=9898
image: {{ template "externalImages.csiLivenessprobe" . }}
image: {{ .Values.sidecarImages.livenessprobe }}
imagePullPolicy: IfNotPresent
resources: {}
securityContext:
readOnlyRootFilesystem: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
Expand Down Expand Up @@ -281,6 +288,10 @@ spec:
path: {{ .Values.lvm.hostWritePath }}/cache
type: DirectoryOrCreate
name: lvmcache
- hostPath:
path: {{ .Values.lvm.hostWritePath }}/archive
type: DirectoryOrCreate
name: lvmarchive
- hostPath:
path: {{ .Values.lvm.hostWritePath }}/lock
type: DirectoryOrCreate
Expand Down
22 changes: 9 additions & 13 deletions charts/csi-driver-lvm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,21 @@ compat03x: false

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

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

sidecarImages:
attacher: k8s.gcr.io/sig-storage/csi-attacher:v3.5.0
livenessprobe: k8s.gcr.io/sig-storage/livenessprobe:v2.7.0
provisioner: k8s.gcr.io/sig-storage/csi-provisioner:v3.2.1
registrar: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.1
resizer: k8s.gcr.io/sig-storage/csi-resizer:v1.6.0

kubernetes:
kubeletPath: /var/lib/kubelet

Expand All @@ -48,17 +55,6 @@ storageClasses:
additionalAnnotations: []
reclaimPolicy: Delete

customCSISidecars:
enabled: false

## uncomment and set these if enabled=true

# attacher: k8s.gcr.io/sig-storage/csi-attacher:v3.5.0
# livenessprobe: k8s.gcr.io/sig-storage/livenessprobe:v2.7.0
# provisioner: k8s.gcr.io/sig-storage/csi-provisioner:v3.2.1
# registrar: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.1
# resizer: k8s.gcr.io/sig-storage/csi-resizer:v1.6.0

nodeSelector:
# The plugin daemonset will run on all nodes if it has a toleration,
# so it is not necessary to set a nodeSelector for it
Expand Down
2 changes: 1 addition & 1 deletion charts/metal-control-plane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for deploying the metal control plane in K8s
name: metal-control-plane
version: 0.4.4
version: 0.4.5
5 changes: 5 additions & 0 deletions charts/metal-control-plane/templates/metal-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ data:
{{ .Values.metal_api.filesystemlayouts | nindent 4 }}
sizeimageconstraints.yaml: |
{{ .Values.metal_api.sizeimageconstraints | nindent 4 }}
size_reservations.yaml: |
{{ .Values.metal_api.size_reservations | nindent 4 }}
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -370,6 +372,7 @@ spec:
/metalctl network ip apply -f /masterdata/ip.yaml
/metalctl filesystemlayout apply -f /masterdata/filesystemlayouts.yaml
/metalctl size imageconstraint apply -f /masterdata/sizeimageconstraints.yaml
/metalctl size reservation apply -f /masterdata/size_reservations.yaml
volumeMounts:
- name: masterdata
mountPath: /masterdata
Expand Down Expand Up @@ -410,6 +413,8 @@ spec:
path: filesystemlayouts.yaml
- key: sizeimageconstraints.yaml
path: sizeimageconstraints.yaml
- key: size_reservations.yaml
path: size_reservations.yaml
---
apiVersion: batch/v1
kind: Job
Expand Down
1 change: 1 addition & 0 deletions charts/metal-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ metal_api:
projects: "[]"
filesystemlayouts: "[]"
sizeimageconstraints: "[]"
size_reservations: "[]"
s3:
enabled: false
address: ""
Expand Down
4 changes: 2 additions & 2 deletions tests/csi-driver-lvm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM dtzar/helm-kubectl:3.9.4 as helm-kubectl
FROM dtzar/helm-kubectl:3.16 AS helm-kubectl

FROM bats/bats
COPY --from=helm-kubectl /usr/local/bin/helm /usr/local/bin/helm
COPY --from=helm-kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl

ENTRYPOINT [ "bats" ]
ENTRYPOINT ["bats"]

0 comments on commit 6d40c35

Please sign in to comment.