globocom / huskyCI

Performing security tests inside your CI
https://huskyci.opensource.globo.com
BSD 3-Clause "New" or "Revised" License
572 stars 137 forks source link

Create switch between docker and kubernetes #547

Closed thiagolotufo closed 2 years ago

thiagolotufo commented 2 years ago

Description

This PR is motivated to create a switch between Docker and Kubernetes in HuskyCI.

Proposed Changes

This PR proposes to use an environment variable to select between using Docker or Kubernetes in HuskyCI.

Testing

To test in Docker, it is necessary to enter the value docker in the HUSKYCI_INFRASTRUCTURE_USE environment variable. After that, run the following commands:

make install
make run-client

To tests in Kubernetes, it is necessary to enter the value kubernetes in the HUSKYCI_INFRASTRUCTURE_USE environment variable. In this case, it is also necessary to enter the cluster settings in the kubeconfig/config.yaml file.

make install
make run-client