From 792c0887767a4ea86f1f4a1f71f73264ff20ea20 Mon Sep 17 00:00:00 2001 From: andypb Date: Tue, 20 Feb 2024 19:44:06 +0000 Subject: [PATCH 1/4] add travis config --- .gitignore | 2 ++ .travis.yml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c38fa4e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +*.iml 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 9622a0ba2311aa0037452b466d82e8db87d0aaa5 Mon Sep 17 00:00:00 2001 From: andypb Date: Tue, 20 Feb 2024 19:51:56 +0000 Subject: [PATCH 2/4] Upgrade image version --- 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 3e422c8b4614d4084a5859b7cc977ceafc01ba95 Mon Sep 17 00:00:00 2001 From: andypb Date: Fri, 23 Feb 2024 11:05:52 +0000 Subject: [PATCH 3/4] updated to work on my machine --- deployment.yaml | 2 +- service.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment.yaml b/deployment.yaml index 397d058..262b259 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -16,7 +16,7 @@ spec: containers: - command: - /app/sample-app - image: gitopsbook/sample-app:v0.2 + image: andrewpb123/sample-app:v0.1 name: sample-app ports: - containerPort: 8080 diff --git a/service.yaml b/service.yaml index 830af2e..360233f 100644 --- a/service.yaml +++ b/service.yaml @@ -8,3 +8,4 @@ spec: targetPort: 8080 selector: app: sample-app + type: ClusterIP \ No newline at end of file From 386552baaea4cd779278b88e749d9410d1fa3fc1 Mon Sep 17 00:00:00 2001 From: andypb Date: Fri, 23 Feb 2024 11:17:47 +0000 Subject: [PATCH 4/4] removed .travis.yml --- .travis.yml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1f725c9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -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