File tree 4 files changed +27
-5
lines changed
4 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,16 @@ eval "$(make cluster/kubeconfig)"
51
51
To test a change, build the driver image and then install it:
52
52
``` bash
53
53
make cluster/image
54
- # If testing a Helm-based change, you can use HELM_EXTRA_FLAGS
55
- # to set your new paremeters for testing, for example:
56
- # export HELM_EXTRA_FLAGS="--set=controller.newParameter=true"
57
54
make cluster/install
58
55
```
59
56
57
+ If you are testing a Helm-only change, ` make cluster/helm ` installs using the default (release) image:
58
+ ``` bash
59
+ # Use HELM_EXTRA_FLAGS for testing parameters, for example:
60
+ # export HELM_EXTRA_FLAGS="--set=controller.newParameter=true"
61
+ make cluster/helm
62
+ ```
63
+
60
64
When you are finished manually testing, uninstall the driver:
61
65
``` bash
62
66
make cluster/uninstall
Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ cluster/delete: bin/kops bin/eksctl
115
115
cluster/install : bin/helm bin/aws
116
116
./hack/e2e/install.sh
117
117
118
+ .PHONY : cluster/helm
119
+ cluster/helm : bin/helm bin/aws
120
+ HELM_USE_DEFAULT_IMAGE=" true" \
121
+ ./hack/e2e/install.sh
122
+
118
123
.PHONY : cluster/uninstall
119
124
cluster/uninstall : bin/helm bin/aws
120
125
./hack/e2e/uninstall.sh
Original file line number Diff line number Diff line change @@ -158,9 +158,20 @@ Install the EBS CSI Driver to the cluster via Helm. You must have already run `m
158
158
#### Example: Install the EBS CSI Driver to a cluster for testing
159
159
160
160
``` bash
161
+ make cluster/image
161
162
make cluster/install
162
163
```
163
164
165
+ ### ` make cluster/install `
166
+
167
+ Install the EBS CSI Driver to the cluster via Helm using the default (release) image. This is useful for testing Helm-only changes.
168
+
169
+ #### Example: Install the EBS CSI Driver to a cluster for testing a Helm-only change
170
+
171
+ ``` bash
172
+ make cluster/helm
173
+ ```
174
+
164
175
### ` make cluster/uninstall `
165
176
166
177
Uninstall an installation of the EBS CSI Driver previously installed by ` make cluster/install ` .
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ function install_driver() {
27
27
HELM_ARGS=(upgrade --install aws-ebs-csi-driver
28
28
" ${BASE_DIR} /../../charts/aws-ebs-csi-driver"
29
29
--namespace kube-system
30
- --set image.repository=" ${IMAGE_NAME} "
31
- --set image.tag=" ${IMAGE_TAG} "
32
30
--set node.enableWindows=" ${WINDOWS} "
33
31
--set node.windowsHostProcess=" ${WINDOWS_HOSTPROCESS} "
34
32
--set controller.k8sTagClusterId=" ${CLUSTER_NAME} "
@@ -39,6 +37,10 @@ function install_driver() {
39
37
if [ -n " ${HELM_VALUES_FILE:- } " ]; then
40
38
HELM_ARGS+=(-f " ${HELM_VALUES_FILE} " )
41
39
fi
40
+ if [ -z " ${HELM_USE_DEFAULT_IMAGE+x} " ]; then
41
+ HELM_ARGS+=(--set image.repository=" ${IMAGE_NAME} " )
42
+ HELM_ARGS+=(--set image.tag=" ${IMAGE_TAG} " )
43
+ fi
42
44
eval " EXPANDED_HELM_EXTRA_FLAGS=$HELM_EXTRA_FLAGS "
43
45
if [[ -n " $EXPANDED_HELM_EXTRA_FLAGS " ]]; then
44
46
HELM_ARGS+=(" ${EXPANDED_HELM_EXTRA_FLAGS} " )
You can’t perform that action at this time.
0 commit comments