From 37a7fb404288415eeabe1d0fe3802135c737da12 Mon Sep 17 00:00:00 2001 From: alainlompo <512032+alainlompo@users.noreply.github.com> Date: Sun, 10 Oct 2021 17:27:49 +0200 Subject: [PATCH 1/5] feat: Add Travis config --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1f725c9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: bash +install: + - curl -sLf -o kubeaudit.tar.gz https://github.com/Shopify/kubeaudit/releases/download/v0.7.0/kubeaudit_0.7.0_linux_amd64.tar.gz + - tar -zxvf kubeaudit.tar.gz + - chmod +x kubeaudit +script: + - ./kubeaudit nonroot -f deployment.yaml &> errors + - if [ -s errors ] ; then cat errors; exit -1; fi From 491d126b79f6d8047f792566832623af6f902401 Mon Sep 17 00:00:00 2001 From: alainlompo <512032+alainlompo@users.noreply.github.com> Date: Sun, 10 Oct 2021 17:39:55 +0200 Subject: [PATCH 2/5] feat: upgrade version to 0.2 --- deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.yaml b/deployment.yaml index 5fc3833..397d058 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -16,7 +16,7 @@ spec: containers: - command: - /app/sample-app - image: gitopsbook/sample-app:v0.1 + image: gitopsbook/sample-app:v0.2 name: sample-app ports: - containerPort: 8080 From 2e04916e759e1dc3b482875879ea4ab13636e4b2 Mon Sep 17 00:00:00 2001 From: alainlompo <512032+alainlompo@users.noreply.github.com> Date: Sun, 10 Oct 2021 17:53:10 +0200 Subject: [PATCH 3/5] feat: update deployment (runasNonRoot) --- deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment.yaml b/deployment.yaml index 397d058..152629e 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -20,3 +20,5 @@ spec: name: sample-app ports: - containerPort: 8080 + securityContext: + runAsNonRoot: true From 891843457d7347602462a719b3cba27ffcd567f0 Mon Sep 17 00:00:00 2001 From: alainlompo <512032+alainlompo@users.noreply.github.com> Date: Sun, 10 Oct 2021 17:59:30 +0200 Subject: [PATCH 4/5] feat: fixing formating --- deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index 152629e..45f3a7e 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -20,5 +20,5 @@ spec: name: sample-app ports: - containerPort: 8080 - securityContext: - runAsNonRoot: true + securityContext: + runAsNonRoot: true From a90b1fb6e21caa69bb4777ec5e78d9d000cda00b Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Sun, 10 Oct 2021 18:20:19 +0200 Subject: [PATCH 5/5] evil commit --- deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deployment.yaml b/deployment.yaml index 45f3a7e..420f9e4 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1,3 +1,4 @@ +# hacked apiVersion: apps/v1 kind: Deployment metadata: