Skip to content

Commit

Permalink
Add healthcheck-logs make target (google#44)
Browse files Browse the repository at this point in the history
* add healthcheck-logs

* add base makefile
  • Loading branch information
sirdarckcat committed Feb 24, 2020
1 parent 4f6ab2a commit 2126935
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion infrastructure/kctf-samples/kctf-conf/base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
#

.PHONY: start stop docker ip status logs ssh healthcheck-ssh port-forward test-docker healthcheck-test-docker test-kind test-d4w .test-local clean .deploy .network .cluster-config .deployment .healthcheck-exploit-key-secret .FORCE
.PHONY: start stop docker ip status logs healthcheck-logs ssh healthcheck-ssh port-forward test-docker healthcheck-test-docker test-kind test-d4w .test-local clean .deploy .network .cluster-config .deployment .healthcheck-exploit-key-secret .FORCE

SHELL := bash
.ONESHELL:
Expand Down Expand Up @@ -88,6 +88,9 @@ status: .cluster-config
logs: .cluster-config
kubectl logs -l "app=${CHALLENGE_NAME}" -c challenge

healthcheck-logs: .cluster-config
kubectl logs -l "app=${CHALLENGE_NAME}" -c healthcheck

ssh: .cluster-config
kubectl exec deployment/${CHALLENGE_NAME} -c challenge -it /bin/bash

Expand Down
5 changes: 4 additions & 1 deletion infrastructure/kctf/base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
#

.PHONY: start stop docker ip status logs ssh healthcheck-ssh port-forward test-docker healthcheck-test-docker test-kind test-d4w .test-local clean .deploy .network .cluster-config .deployment .healthcheck-exploit-key-secret .FORCE
.PHONY: start stop docker ip status logs healthcheck-logs ssh healthcheck-ssh port-forward test-docker healthcheck-test-docker test-kind test-d4w .test-local clean .deploy .network .cluster-config .deployment .healthcheck-exploit-key-secret .FORCE

SHELL := bash
.ONESHELL:
Expand Down Expand Up @@ -88,6 +88,9 @@ status: .cluster-config
logs: .cluster-config
kubectl logs -l "app=${CHALLENGE_NAME}" -c challenge

healthcheck-logs: .cluster-config
kubectl logs -l "app=${CHALLENGE_NAME}" -c healthcheck

ssh: .cluster-config
kubectl exec deployment/${CHALLENGE_NAME} -c challenge -it /bin/bash

Expand Down

0 comments on commit 2126935

Please sign in to comment.