Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.94 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.94 KB

image-clone-controller

Table of Contents

Overview

It's an implementation of a controller which watches the applications and “caches” the images by re-uploading to our own registry repository and reconfiguring the applications to use these copies.

Project Structure

  • Dockerfile - Dockerfile, used for production to run within the cluster (running the application as nonroot)
  • controller - controller code, it is written using kubebuilder
  • repository - code that enables connecting to the repository on which the images will be re-uploaded
  • config - yml files that enable running the controller within the cluster

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

How to

Run the controller

In order to run, you have to provide the dockersecret.yml file located in ~/.docker/config.json Then to run the controller you can simply use:

minikube start
make deploy_app

It will automatically deploy the controller on local cluster eg. Minikube.

Run the unit tests

In order to run the unit tests, run:

minikube start
make test

Asciinema proof of the controller working!