-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(analytics): using same user-id for anaytics even if operator pod restarts (#372) Signed-off-by: shubhamchaudhary <[email protected]> * fix(target-details): overriding the target details, fix the github actions and bdd (#374) * fix(target-details): overriding target details Signed-off-by: shubhamchaudhary <[email protected]> * fix(actions): fixing github actions Signed-off-by: shubhamchaudhary <[email protected]> * feat(crds): fixing chaosresult deletion and finalizer logging (#371) * update(unit-test): updating unit test for operator Signed-off-by: shubhamchaudhary <[email protected]> * feat(crds): fixing chaosresult deletion and finalizer logging Signed-off-by: shubhamchaudhary <[email protected]> * resolving the conflicts Signed-off-by: shubham chaudhary <[email protected]>
- Loading branch information
Shubham Chaudhary
authored
Jul 15, 2021
1 parent
2f8c3c0
commit dc559cf
Showing
15 changed files
with
452 additions
and
245 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,23 +36,26 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
version: latest | ||
|
||
- name: Build Docker Image | ||
env: | ||
DOCKER_REPO: litmuschaos | ||
DOCKER_IMAGE: chaos-operator | ||
DOCKER_TAG: ci | ||
run: | | ||
make build-chaos-operator | ||
make build-amd64 | ||
docker save -o ${{ github.workspace }}/image.tar litmuschaos/chaos-operator:ci | ||
chmod +x ${{ github.workspace }}/image.tar | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: myimage | ||
path: | | ||
${{ github.workspace }}/image.tar | ||
tests: | ||
runs-on: ubuntu-latest | ||
needs: pre-checks | ||
needs: image-build | ||
steps: | ||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
|
@@ -65,21 +68,31 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
#Install and configure a kind cluster | ||
- name: Installing Prerequisites (KinD Cluster) | ||
uses: engineerd/[email protected] | ||
with: | ||
version: "v0.7.0" | ||
|
||
- name: Configuring and testing the Installation | ||
- name: Installing Prerequisites (K3S Cluster) | ||
env: | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
run: | | ||
kubectl cluster-info --context kind-kind | ||
kind get kubeconfig --internal >$HOME/.kube/config | ||
curl -sfL https://get.k3s.io | sh -s - --docker --write-kubeconfig-mode 664 | ||
kubectl wait node --all --for condition=ready --timeout=90s | ||
mkdir -p $HOME/.kube | ||
cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config | ||
kubectl get nodes | ||
- name: Dependency checks | ||
run: | | ||
make deps | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: myimage | ||
path: ${{ github.workspace }} | ||
|
||
- name: Load Docker image | ||
run: | | ||
docker load --input ${{ github.workspace }}/image.tar | ||
shell: bash | ||
|
||
- name: Running Go BDD Test | ||
run: | | ||
make test |
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
|
||
image-build: | ||
runs-on: ubuntu-latest | ||
needs: pre-checks | ||
needs: tests | ||
steps: | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
|
@@ -76,21 +76,28 @@ jobs: | |
go-version: 1.14 | ||
|
||
#Install and configure a kind cluster | ||
- name: Installing Prerequisites (KinD Cluster) | ||
uses: engineerd/[email protected] | ||
with: | ||
version: "v0.7.0" | ||
|
||
- name: Configuring and testing the Installation | ||
- name: Installing Prerequisites (K3S Cluster) | ||
env: | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
run: | | ||
kubectl cluster-info --context kind-kind | ||
kind get kubeconfig --internal >$HOME/.kube/config | ||
curl -sfL https://get.k3s.io | sh -s - --docker --write-kubeconfig-mode 664 | ||
kubectl wait node --all --for condition=ready --timeout=90s | ||
mkdir -p $HOME/.kube | ||
cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config | ||
kubectl get nodes | ||
- name: Dependency checks | ||
run: | | ||
make deps | ||
- name: Build Docker Image | ||
env: | ||
DOCKER_REPO: litmuschaos | ||
DOCKER_IMAGE: chaos-operator | ||
DOCKER_TAG: ci | ||
run: | | ||
make build-amd64 | ||
- name: Running Go BDD Test | ||
run: | | ||
make test |
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
|
||
image-build: | ||
runs-on: ubuntu-latest | ||
needs: pre-checks | ||
needs: tests | ||
steps: | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
|
@@ -89,21 +89,28 @@ jobs: | |
go-version: 1.14 | ||
|
||
#Install and configure a kind cluster | ||
- name: Installing Prerequisites (KinD Cluster) | ||
uses: engineerd/[email protected] | ||
with: | ||
version: "v0.7.0" | ||
|
||
- name: Configuring and testing the Installation | ||
- name: Installing Prerequisites (K3S Cluster) | ||
env: | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
run: | | ||
kubectl cluster-info --context kind-kind | ||
kind get kubeconfig --internal >$HOME/.kube/config | ||
curl -sfL https://get.k3s.io | sh -s - --docker --write-kubeconfig-mode 664 | ||
kubectl wait node --all --for condition=ready --timeout=90s | ||
mkdir -p $HOME/.kube | ||
cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config | ||
kubectl get nodes | ||
- name: Dependency checks | ||
run: | | ||
make deps | ||
- name: Build Docker Image | ||
env: | ||
DOCKER_REPO: litmuschaos | ||
DOCKER_IMAGE: chaos-operator | ||
DOCKER_TAG: ci | ||
run: | | ||
make build-amd64 | ||
- name: Running Go BDD Test | ||
run: | | ||
make test |
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
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
Oops, something went wrong.