Skip to content

Commit

Permalink
Update dependencies (#232)
Browse files Browse the repository at this point in the history
* Update dependencies

* Bump to go 18
  • Loading branch information
worldtiki authored Jul 1, 2022
1 parent c7a17ea commit 37fcdb6
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 111 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,29 @@ jobs:
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
ayushsobti/kube-monkey
# Generate Docker tags based on the following events/attributes
tags: |
type=ref,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
platforms: linux/amd64
push: true
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2.1.3
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: 1.18

- name: Check out code
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.0.2
with:
fetch-depth: 0

- name: Build
run: make test
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
########################
### Builder ###
########################
FROM golang:1.16 as builder
FROM golang:1.18 as builder
RUN mkdir -p /kube-monkey
COPY ./ /kube-monkey/
WORKDIR /kube-monkey
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ The message supports the following placeholders:
* `{$error}`: result's error, if any
* `{$kubemonkeyid}`: kube-monkey id (set using KUBE_MONKEY_ID env variable otherwise empty)

```json
```
message: '{
"what": "Kube-monkey(${kubemonkeyid}) attack of {$name} in {$namespace}",
"who": "{$name}",
Expand All @@ -202,7 +202,7 @@ The header supports a special placeholder to retrieve the value of an environmen
This is useful when calling an API that has a protected endpoint.
A typical scenario will be to pass an API token to the Kube-monkey container, this token is stored in a Kubernetes Secret and you want to pass it via an environment variable.

```json
```
headers = ["api-key:{$env:API_TOKEN}", "Content-Type:application/json"]
```

Expand Down
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ go 1.16

require (
bou.ke/monkey v1.0.2
github.com/fsnotify/fsnotify v1.5.1
github.com/fsnotify/fsnotify v1.5.4
github.com/golang/glog v1.0.0
github.com/pkg/errors v0.9.1
github.com/spf13/viper v1.10.1
github.com/stretchr/testify v1.7.0
k8s.io/api v0.21.3
k8s.io/apimachinery v0.21.3
k8s.io/client-go v0.21.3
github.com/spf13/viper v1.12.0
github.com/stretchr/testify v1.8.0
k8s.io/api v0.24.2
k8s.io/apimachinery v0.24.2
k8s.io/client-go v0.24.2
)
Loading

0 comments on commit 37fcdb6

Please sign in to comment.