Skip to content

Commit 39ee5e8

Browse files
committed
install ndm
Signed-off-by: Ashutosh Kumar <[email protected]>
1 parent a06ecf3 commit 39ee5e8

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
./hack/install_kustomize.sh /usr/local/bin/
8080
kustomize version
8181
82+
- name: Install NDM
83+
run: |
84+
chmod +x hack/install_ndm.sh
85+
./hack/install_ndm.sh
86+
8287
8388
8489

hack/install_ndm.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# Downloads the most recently released ndm-operator yaml
4+
# to ci/install_artifacts/ndm-operator
5+
6+
# Sets up ndm-operator kustomization yaml
7+
8+
NDM_RELEASE_TAG=v0.4.9
9+
mkdir -p actions_ci/install_artifacts/ndm-operator
10+
echo "Downloading ndm-operator yaml..."
11+
wget -O actions_ci/install_artifacts/ndm-operator/ndm-operator.yaml https://raw.githubusercontent.com/openebs/node-disk-manager/$NDM_RELEASE_TAG/ndm-operator.yaml
12+
13+
14+
cat <<EOF >actions_ci/install_artifacts/ndm-operator/kustomization.yaml
15+
apiVersion: kustomize.config.k8s.io/v1beta1
16+
kind: Kustomization
17+
namespace: openebs
18+
images:
19+
- name: openebs/node-disk-manager-amd64
20+
newTag: $NDM_RELEASE_TAG
21+
- name: openebs/node-disk-operator-amd64
22+
newTag: $NDM_RELEASE_TAG
23+
- name: openebs/node-disk-exporter-amd64
24+
newTag: $NDM_RELEASE_TAG
25+
resources:
26+
- ndm-operator.yaml
27+
EOF
28+
29+
echo "Applying customized ndm-operator YAML"
30+
kustomize build actions_ci/install_artifacts/ndm-operator | kubectl apply -f -
31+
32+
kubectl get ds,deploy -n openebs

0 commit comments

Comments
 (0)