forked from rook/kubectl-rook-ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adding ci to test latest changes
This commits add changes to test the latest changes which not yet release in rook-ceph krew plugin. Signed-off-by: subhamkrai <srai@redhat.com>
- Loading branch information
1 parent
301e155
commit d077fc1
Showing
2 changed files
with
66 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Cluster Setup | ||
description: Cluster setup for plugin test | ||
inputs: | ||
github-token: | ||
description: GITHUB_TOKEN from the calling workflow | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: setup minikube | ||
uses: manusa/actions-setup-minikube@v2.4.2 | ||
with: | ||
minikube version: 'v1.23.2' | ||
kubernetes version: 'v1.22.2' | ||
start args: --memory 6g --cpus=2 | ||
github token: ${{ inputs.github-token }} | ||
|
||
- name: print k8s cluster status | ||
shell: bash --noprofile --norc -eo pipefail -x {0} | ||
run: | | ||
minikube status | ||
kubectl get nodes | ||
- name: use local disk | ||
shell: bash --noprofile --norc -eo pipefail -x {0} | ||
run: tests/github-action-helper.sh use_local_disk | ||
|
||
- name: deploy rook cluster | ||
shell: bash --noprofile --norc -eo pipefail -x {0} | ||
run: tests/github-action-helper.sh deploy_rook | ||
|
||
- name: wait for operator pod to be ready | ||
shell: bash --noprofile --norc -eo pipefail -x {0} | ||
run: tests/github-action-helper.sh wait_for_pod_to_be_ready_state |