-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enhancement for Pod Autoscaler experiment (#245) * [fix] pod autoscaler label selector apply to all matches Signed-off-by: Jordi Gil <[email protected]> * [fix] Pod-autoscaler add 'OnChaos' probe check Signed-off-by: Jordi Gil <[email protected]> * chore(actions): Fix GitHub actions e2e for litmus-go (#246) Signed-off-by: udit <[email protected]> * chore(events): update source and msg in engine events (#249) Signed-off-by: shubhamchaudhary <[email protected]> * Adding image pull policy for probe image (#248) Signed-off-by: ipsita2192 <[email protected]> Co-authored-by: ipsita2192 <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]> * chore(acitons): Migrate from travis to github actions (#247) Signed-off-by: udit <[email protected]> Co-authored-by: Karthik Satchitanand <[email protected]> * Check also for succeded state of helper pod (#236) This PR changes the condtion of waiting for pod status, so it wait also for the succeed state, because it may happen if the experiment is too quick, that the helper pod is already finished. So the waiting will timeout for waiting for the running state. Signed-off-by: Ondra Machacek <[email protected]> Co-authored-by: Karthik Satchitanand <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> * Add timeout in node-drain operation and ensure error is returned (#250) * chore(fix): Add timeout to kubectl drain command in node-drain Signed-off-by: Jordi Gil <[email protected]> * chore(fix): Catch the error when draining/uncordoning node in node-drain Signed-off-by: Jordi Gil <[email protected]> Co-authored-by: Jordi Gil <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]> Co-authored-by: SamarSidharth <[email protected]> Co-authored-by: ipsita2192 <[email protected]> Co-authored-by: Ondra Machacek <[email protected]>
- Loading branch information
1 parent
42f9ccc
commit bc2a024
Showing
23 changed files
with
580 additions
and
275 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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- | ||
name: Build | ||
on: | ||
pull_request: | ||
branches: [master] | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.13.1' | ||
|
||
# Setup gopath | ||
- name: Setting up GOPATH | ||
run: | | ||
echo "GOPATH=${GITHUB_WORKSPACE}/go" >> $GITHUB_ENV | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/${{github.repository}} | ||
|
||
#TODO: Add Dockerfile linting | ||
# Running go-lint | ||
- name: Checking Go-Lint | ||
run : | | ||
sudo apt-get update && sudo apt-get install golint | ||
cd go/src/github.com/${{github.repository}} | ||
make gotasks | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.13.1' | ||
|
||
# Setup gopath | ||
- name: Setting up GOPATH | ||
run: | | ||
echo "GOPATH=${GITHUB_WORKSPACE}/go" >> $GITHUB_ENV | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/${{github.repository}} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: all | ||
|
||
- 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: go-runner | ||
DOCKER_TAG: ci | ||
run: | | ||
cd go/src/github.com/${{github.repository}} | ||
make build | ||
trivy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup trivy | ||
run: | | ||
wget https://github.com/aquasecurity/trivy/releases/download/v0.11.0/trivy_0.11.0_Linux-64bit.tar.gz | ||
tar zxvf trivy_0.11.0_Linux-64bit.tar.gz | ||
make trivy-check |
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,99 @@ | ||
--- | ||
name: Push | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags-ignore: | ||
- '**' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.13.1' | ||
|
||
# Setup gopath | ||
- name: Setting up GOPATH | ||
run: | | ||
echo "GOPATH=${GITHUB_WORKSPACE}/go" >> $GITHUB_ENV | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/${{github.repository}} | ||
|
||
#TODO: Add Dockerfile linting | ||
# Running go-lint | ||
- name: Checking Go-Lint | ||
run : | | ||
sudo apt-get update && sudo apt-get install golint | ||
cd go/src/github.com/${{github.repository}} | ||
make gotasks | ||
push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.13.1' | ||
|
||
# Setup gopath | ||
- name: Setting up GOPATH | ||
run: | | ||
echo "GOPATH=${GITHUB_WORKSPACE}/go" >> $GITHUB_ENV | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/${{github.repository}} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: all | ||
|
||
- 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: go-runner | ||
DOCKER_TAG: ci | ||
run: | | ||
cd go/src/github.com/${{github.repository}} | ||
make experiment-build | ||
- name: Push Docker Image | ||
env: | ||
DOCKER_REPO: litmuschaos | ||
DOCKER_IMAGE: go-runner | ||
DOCKER_TAG: ci | ||
DNAME: ${{ secrets.DNAME }} | ||
DPASS: ${{ secrets.DPASS }} | ||
run: | | ||
cd go/src/github.com/${{github.repository}} | ||
make push | ||
trivy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup trivy | ||
run: | | ||
wget https://github.com/aquasecurity/trivy/releases/download/v0.11.0/trivy_0.11.0_Linux-64bit.tar.gz | ||
tar zxvf trivy_0.11.0_Linux-64bit.tar.gz | ||
make trivy-check |
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,110 @@ | ||
--- | ||
name: Release | ||
on: | ||
create: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.13.1' | ||
|
||
# Setup gopath | ||
- name: Setting up GOPATH | ||
run: | | ||
echo "GOPATH=${GITHUB_WORKSPACE}/go" >> $GITHUB_ENV | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/${{github.repository}} | ||
|
||
#TODO: Add Dockerfile linting | ||
# Running go-lint | ||
- name: Checking Go-Lint | ||
run : | | ||
sudo apt-get update && sudo apt-get install golint | ||
cd go/src/github.com/${{github.repository}} | ||
make gotasks | ||
push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.13.1' | ||
|
||
# Setup gopath | ||
- name: Setting up GOPATH | ||
run: | | ||
echo "GOPATH=${GITHUB_WORKSPACE}/go" >> $GITHUB_ENV | ||
# Checkout to the latest commit | ||
# On specific directory/path | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/${{github.repository}} | ||
|
||
- name: Set Tag | ||
run: | | ||
TAG="${GITHUB_REF#refs/*/v}" | ||
echo "TAG=${TAG}" >> $GITHUB_ENV | ||
echo "RELEASE_TAG=${TAG}" >> $GITHUB_ENV | ||
- name: Print Tag info | ||
run: | | ||
echo "RELEASE TAG: ${RELEASE_TAG}" | ||
echo "${RELEASE_TAG}" > ${{ github.workspace }}/tag.txt | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: all | ||
|
||
- 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: go-runner | ||
DOCKER_TAG: ${RELEASE_TAG} | ||
DNAME: ${{ secrets.DNAME }} | ||
DPASS: ${{ secrets.DPASS }} | ||
run: | | ||
cd go/src/github.com/${{github.repository}} | ||
make experiment-build | ||
- name: Push Docker Image | ||
env: | ||
DOCKER_REPO: litmuschaos | ||
DOCKER_IMAGE: go-runner | ||
DOCKER_TAG: ${RELEASE_TAG} | ||
DNAME: ${{ secrets.DNAME }} | ||
DPASS: ${{ secrets.DPASS }} | ||
run: | | ||
cd go/src/github.com/${{github.repository}} | ||
make push | ||
trivy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup trivy | ||
run: | | ||
wget https://github.com/aquasecurity/trivy/releases/download/v0.11.0/trivy_0.11.0_Linux-64bit.tar.gz | ||
tar zxvf trivy_0.11.0_Linux-64bit.tar.gz | ||
make trivy-check |
Oops, something went wrong.