Closed lholmquist closed 7 years ago
Some notes:
config maps docs - https://docs.openshift.org/latest/dev_guide/configmaps.html
I found this node example on using configmaps, https://github.com/jorgemoralespou/ose-app-promotion-configmap/blob/master/node-app/server.js which is part of this blog post https://blog.openshift.com/configuring-your-application-part-1/
It looks like they do a combination of using the configMap as an ENV var and mounting it as a volume.
The swarm booster does the volume mount thing
The vertx booster actually just querys the Kubeneretes configmap endpoint to get the configmap data. Relevant java code: https://github.com/openshiftio-vertx-boosters/vertx-configmap-booster/blob/master/src/main/java/io/openshift/booster/HttpApplication.java#L115
The vert.x booster doesn't need to be restarted when a configMap changes, so maybe we should try doing it that way?
Repo started here: https://github.com/bucharest-gold/nodejs-configmap
similiar to https://github.com/wildfly-swarm-openshiftio-boosters/wfswarm-configmap and/or https://github.com/openshiftio-vertx-boosters/vertx-configmap-booster