Skip to content

Commit

Permalink
fix(deploy): consistent plugin name accross configs
Browse files Browse the repository at this point in the history
  • Loading branch information
arcln committed Jan 28, 2020
1 parent 9401af4 commit ac5bff5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 33 deletions.
66 changes: 35 additions & 31 deletions deploy/daemonset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,45 @@ metadata:
name: dothill-node

spec:
selector:
selector:
matchLabels:
name: dothill-node
template:
metadata:
labels:
name: dothill-node
spec:
containers:
- name: csi-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.0.2
args:
- "--csi-address=/csi/csi.sock"
- "--kubelet-registration-path=/var/lib/kubelet/plugins/dothill.csi.enix.io/csi.sock"
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "rm -rf /registration/dothill.csi.enix.io /registration/dothill.csi.enix.io-reg.sock"]
volumeMounts:
- name: plugin-dir
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: dothill-node
image: docker-registry.enix.io/enix/dothill-provisioner:beta
command: /dothill-node -bind=/csi/csi.sock
volumeMounts:
- name: plugin-dir
mountPath: /csi
volumes:
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry/
type: Directory
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/dothill.csi.enix.io/
type: DirectoryOrCreate
imagePullSecrets:
- name: regcred
containers:
- name: csi-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.0.2
args:
- "--csi-address=/csi/csi.sock"
- "--kubelet-registration-path=/var/lib/kubelet/plugins/io.enix.csi.dothill/csi.sock"
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "rm -rf /registration/io.enix.csi.dothill /registration/io.enix.csi.dothill-reg.sock"]
volumeMounts:
- name: plugin-dir
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: dothill-node
image: docker-registry.enix.io/enix/dothill-provisioner:rc
command:
- dothill-node
- -bind=unix:///csi/csi.sock
volumeMounts:
- name: plugin-dir
mountPath: /csi
volumes:
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry/
type: Directory
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/io.enix.csi.dothill/
type: DirectoryOrCreate
2 changes: 1 addition & 1 deletion example/storageclass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: StorageClass
metadata:
name: dothill-storage

provisioner: dothill
provisioner: io.enix.csi.dothill
parameters:
csi.storage.k8s.io/provisioner-secret-name: dothill-credentials
csi.storage.k8s.io/provisioner-secret-namespace: kube-system
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// PluginName is the public name to be used in storage class etc.
const PluginName = "dothill"
const PluginName = "io.enix.csi.dothill"

// Driver contains main resources needed by the driver
// and references the underlying specific driver
Expand Down

0 comments on commit ac5bff5

Please sign in to comment.