Skip to content

opdev/annotation-based-deployment-scaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

annotation-based-deployment-scaler

controllers/deployment_controller.go

  • Simple controller PoC

  • Reacts to Deployment events in the Default Namespace

  • Sets their replica counts to 5 if not already 5 when .metadata.annotations["foo"] = "bar"

controllers/filtered_deployment_controller.go

  • Simple Predicate PoC

  • Reacts to Deployment create/update events in the default namespace, but only if they have the .metadata.annotations["scaleme"] = "please"

About

Scale the deployment if the annotation is as expected

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published