Categorygithub.com/ucsd-ets/deployment-controller
modulepackage
0.2.0
Repository: https://github.com/ucsd-ets/deployment-controller.git
Documentation: pkg.go.dev

# README

Deployment Controller

Microservice for:

  1. Getting cookie values based off a config file based off canary weighting
  2. Disabling/enabling views on the client

Usage

Add an app to deployment-controller.yaml. Specify the percent of traffic you want to receive the ifSuccessful cookie vs. the ifFail cookie.

For example,

- appName: jupyterhub
  expiration: 48h
  percent: .90
  ifSuccessful: # less than percent
    key: a
    value: a
  ifFail:
    key: b
    value: b

The above configuration states that for 90% of PUTs to / with {"app": "jupyterhub"} will return {"Key": "a", "Value": "a", Expiration: <48 hours from now>}. For the 10% case, the server will return {"Key": "b", "Value": "b", Expiration: <48 hours from now>}.

Note config is hot loaded every time / is called, so modifying the config will load all new changes upon the next request.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
cookie data from config file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author