Skip to content

Commit 805ab12

Browse files
committed
install ndm
Signed-off-by: Ashutosh Kumar <sonasingh46@gmail.com>
1 parent a06ecf3 commit 805ab12

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ jobs:
7979
./hack/install_kustomize.sh /usr/local/bin/
8080
kustomize version
8181
82+
- name: Create openebs namespace and install NDM
83+
run: |
84+
chmod +x hack/install_ndm.sh
85+
./hack/install_ndm.sh
86+
echo "Applying customized ndm-operator YAML"
87+
kubectl create ns openebs
88+
kustomize build actions_ci/install_artifacts/ndm-operator | kubectl apply -f -
89+
kubectl get ds,deploy -n openebs
90+
8291
8392
8493

hack/install_ndm.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)