class ApiSnoop

Defined in:

tasks/utils/apisnoop.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(project_root : String) #

[View source]

Instance Method Detail

def copy_to_docker_host(install_path) #

[ISSUE-41] Workaround to ensure that the apisnoop dir is copied to the Docker host

We are starting a kind cluster within a docker container.

Below is our structure. Host machine -> GitHub Runner -> Kind cluster containers

Mounting any volumes within the kind cluster's control plane, requires that the volume exist on the host machine.

  1. We create /github-runner-cnf-testsuite/cnf-testsuite/cnf-testsuite/tools/apisnoop dir on the docker host as a part of our GitHub Actions workflow.

  2. The above dir is mounted on the docker container as /apisnoop

  3. During apisnoop install, if the dir exists, we copy the apisnoop repo to the shared directory This ensures that it is available on the docker host.

When kind looks for the kubernetes manifest file for apisnoop, it'll be available in the expected dir. For details about the bind source & destination, check tools/github-runner/create_runners.sh


[View source]
def install #

[View source]
def install_path #

[View source]
def project_root : String #

[View source]
def project_root=(project_root : String) #

[View source]
def setup_kind_cluster(name : String, k8s_version : String) #

[View source]