File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 20
20
21
21
# This is the default. It can be overridden in the main Makefile after
22
22
# including build.make.
23
- REGISTRY_NAME =quay.io/k8scsi
23
+ REGISTRY_NAME? =quay.io/k8scsi
24
24
25
25
# Can be set to -mod=vendor to ensure that the "vendor" directory is used.
26
26
GOFLAGS_VENDOR =
Original file line number Diff line number Diff line change 16
16
# To promote release images, see https://github.com/kubernetes/k8s.io/tree/master/k8s.gcr.io/images/k8s-staging-sig-storage.
17
17
18
18
# This must be specified in seconds. If omitted, defaults to 600s (10 mins).
19
- timeout : 1800s
19
+ # Building three images in external-snapshotter takes roughly half an hour,
20
+ # sometimes more.
21
+ timeout : 3600s
20
22
# This prevents errors if you don't use both _GIT_TAG and _PULL_BASE_REF,
21
23
# or any new substitutions added in the future.
22
24
options :
Original file line number Diff line number Diff line change @@ -796,16 +796,17 @@ install_snapshot_controller() {
796
796
echo " kubectl apply -f ${SNAPSHOT_CONTROLLER_YAML} (modified)"
797
797
done
798
798
else
799
- echo " kubectl apply -f ${CONTROLLER_DIR} /deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml "
800
- kubectl apply -f " ${CONTROLLER_DIR} /deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml "
799
+ echo " kubectl apply -f $SNAPSHOT_CONTROLLER_YAML "
800
+ kubectl apply -f " $SNAPSHOT_CONTROLLER_YAML "
801
801
fi
802
802
803
803
cnt=0
804
- expected_running_pods=$( curl https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/" ${CSI_SNAPSHOTTER_VERSION} " /deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml | grep replicas | cut -d ' :' -f 2-)
805
- while [ " $( kubectl get pods -l app=snapshot-controller | grep ' Running' -c) " -lt " $expected_running_pods " ]; do
804
+ expected_running_pods=$( kubectl apply --dry-run=client -o " jsonpath={.spec.replicas}" -f " $SNAPSHOT_CONTROLLER_YAML " )
805
+ expected_namespace=$( kubectl apply --dry-run=client -o " jsonpath={.metadata.namespace}" -f " $SNAPSHOT_CONTROLLER_YAML " )
806
+ while [ " $( kubectl get pods -n " $expected_namespace " -l app=snapshot-controller | grep ' Running' -c) " -lt " $expected_running_pods " ]; do
806
807
if [ $cnt -gt 30 ]; then
807
808
echo " snapshot-controller pod status:"
808
- kubectl describe pods -l app=snapshot-controller
809
+ kubectl describe pods -n " $expected_namespace " - l app=snapshot-controller
809
810
echo >&2 " ERROR: snapshot controller not ready after over 5 min"
810
811
exit 1
811
812
fi
You can’t perform that action at this time.
0 commit comments