Skip to content

Commit

Permalink
fix(mountpath): fix sock file mount path in pool deployments (#1605)
Browse files Browse the repository at this point in the history
fix(mountpath): fix sockfile mount path in pool deployments

Signed-off-by: mittachaitu <[email protected]>
  • Loading branch information
sai chaithanya authored Feb 6, 2020
1 parent f254dde commit 4af590f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/cspc-operator/app/storagepool_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var (
},
corev1.VolumeMount{
Name: "sockfile",
MountPath: "/var/run",
MountPath: "/var/tmp/sock",
},
}
// hostpathType represents the hostpath type
Expand Down
6 changes: 3 additions & 3 deletions pkg/install/v1alpha1/cstor_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ spec:
- name: udev
mountPath: /run/udev
- name: sockfile
mountPath: /var/run
mountPath: /var/tmp/sock
env:
# OPENEBS_IO_CSTOR_ID env has UID of cStorPool CR.
- name: OPENEBS_IO_CSTOR_ID
Expand Down Expand Up @@ -329,7 +329,7 @@ spec:
- name: udev
mountPath: /run/udev
- name: sockfile
mountPath: /var/run
mountPath: /var/tmp/sock
env:
# OPENEBS_IO_CSTOR_ID env has UID of cStorPool CR.
- name: OPENEBS_IO_CSTOR_ID
Expand Down Expand Up @@ -380,7 +380,7 @@ spec:
- mountPath: /run/udev
name: udev
- name: sockfile
mountPath: /var/run
mountPath: /var/tmp/sock
tolerations:
{{- if ne $isTolerations "none" }}
{{- range $k, $v := $tolerationsVal }}
Expand Down
6 changes: 3 additions & 3 deletions pkg/upgrade/templates/v1/cstor_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var (
},
{
"name": "sockfile",
"mountPath": "/var/run"
"mountPath": "/var/tmp/sock"
}
]
{{end}}
Expand All @@ -75,7 +75,7 @@ var (
},
{
"name": "sockfile",
"mountPath": "/var/run"
"mountPath": "/var/tmp/sock"
}
]
{{end}}
Expand All @@ -90,7 +90,7 @@ var (
},
{
"name": "sockfile",
"mountPath": "/var/run"
"mountPath": "/var/tmp/sock"
}
]
{{end}}
Expand Down

0 comments on commit 4af590f

Please sign in to comment.