Skip to content

Commit b07df3c

Browse files
niladrihprateekpandey14
authored andcommitted
chore(operator-yaml): add bd timeout flag and env to deploy/kubectl/hostpath-operator.yaml (#81)
Signed-off-by: Niladri Halder <[email protected]>
1 parent 472438d commit b07df3c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

buildscripts/provisioner-localpv/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ LABEL org.label-schema.build-date=$DBUILD_DATE
3737
LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL
3838
LABEL org.label-schema.url=$DBUILD_SITE_URL
3939

40-
CMD ["/provisioner-localpv"]
40+
ENTRYPOINT ["/provisioner-localpv"]

deploy/kubectl/hostpath-operator.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ spec:
7474
- name: openebs-provisioner-hostpath
7575
imagePullPolicy: IfNotPresent
7676
image: openebs/provisioner-localpv:ci
77+
args:
78+
- "--bd-time-out=$(BDC_BD_BIND_TIMEOUT)"
7779
env:
7880
# OPENEBS_IO_K8S_MASTER enables openebs provisioner to connect to K8s
7981
# based on this address. This is ignored if empty.
@@ -85,6 +87,11 @@ spec:
8587
# This is supported for openebs provisioner version 0.5.2 onwards
8688
#- name: OPENEBS_IO_KUBE_CONFIG
8789
# value: "/home/ubuntu/.kube/config"
90+
# This sets the number of seconds the provisioner should wait for
91+
# a BlockDevice to get bound to a BlockDeviceClaim, before the
92+
# BlockDeviceClaim is deleted.
93+
- name: BDC_BD_BIND_TIMEOUT
94+
value: "60"
8895
- name: NODE_NAME
8996
valueFrom:
9097
fieldRef:

0 commit comments

Comments
 (0)