Giter Club home page Giter Club logo

configmapcontroller's Introduction

configmapcontroller

This controller watches for changes to ConfigMap objects and performs rolling upgrades on their associated deployments for apps which are not capable of watching the ConfigMap and updating dynamically.

This is particularly useful if the ConfigMap is used to define environment variables - or your app cannot easily and reliably watch the ConfigMap and update itself on the fly.

How to use configmapcontroller

For a Deployment called foo have a ConfigMap called foo. Then add this annotation to your Deployment

metadata:
  annotations:
    configmap.fabric8.io/update-on-change: "foo"

Then, providing configmapcontroller is running, whenever you edit the ConfigMap called foo the configmapcontroller will update the Deployment by adding the environment variable:

FABRICB_FOO_REVISION=${configMapRevision}

This then triggers a rolling upgrade of your deployment's pods to use the new configuration.

configmapcontroller's People

Contributors

bakins avatar hezhizhen avatar jpoizat avatar jstrachan avatar oscerd avatar rawlingsj avatar rhuss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

configmapcontroller's Issues

Using the Update method introduces raise condition

Two problems:

Update changes all the content of the object. It's better to use patch instead if possible to reduce the risk of replacing the previous changes of an almost simultaneous request.

As another example, using update also has another problem because if you want to port the model to use Daemonsets, update replaces all the content. If the server api is newer and supports update strategies, updating the daemonset would delete this content and default to the OnDelete strategy.

Project status

Is this project still maintained? What's the status of the project? Thanks

Does configmapcontroller needs to be installed?

Hi!
I'm trying to use configmapcontroller to update my pod when a configmap is updated. I tried with a spring-boot application. Can I use it with openshift? Do I have to install something? where?
Thx for help.

Deploying configmapcontroller redeploys watched deployments

version: 2.3.11
If configmapcontroller gets redeployed, it appears to immediately restart all the deployments that are annotated for update-on-change, even if the ConfigMaps have not been updated.

Perhaps it needs to persist the last check time so that can be referenced by the new deployment.

Support for secrets

I'm wondering whether the configmapcontroller could also be used with secrets instead of configmaps -- the mechanics should be identical.

Would this be something you'd consider, or do you think this is better done in a different project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.