image-reloader

command module
v0.0.0-...-39aa581 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

image-reloader

Subscribe to image changes in k8s and update the controller

Capabilities

Subscribe to image changes in k8s and update the controller. (Only deployment, statefulset)

Currently available for harbor clundevent webhook or use the script push_images_and_event.sh to push the image and simulate harbor sending events to webhook. When pushes an image, it automatically updates resources with the same image prefix.

Quick start

kubectl apply -f resources/deployments/deploy.yaml

push an image and simulate harbor sending events to webhook by push_images_and_event.sh (This is especially useful for image repositories without webhooks, such as registry.)

WEBHOOK_URL=http://<nodeIP>:8888/webhook ./push_images_and_event.sh buildah push 127.0.0.1:5000/test/app:v0.0.1

Directory structure

  • The model directory contains the definition of the data model.
  • The service directory contains the business logic.
  • The handler directory contains the HTTP processing function.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL