Closed jstrachan closed 7 years ago
Agreed! I can take a look at this if you're not already on it...
@gashcrumb go for it! :)
Wonder, should I assume the Deployment/Deployment config name is going to be the same as the app name? Thinking I might try and get these associated with the app structure that we put together in KubernetesModel.
@gashcrumb yeah that sounds like a good default. as in if the names match, lets try associate them in the UI pages
I guess a Deployment / RC could refer to N different config maps in the env.valueFrom or volume metadata too really ;) - but assuming the names match sounds a nice simple default really - as a Deployment can use 0..N ConfigMaps really
So what I was kinda thinking was to rework the current logic that creates the 'app' objects to just associated all the related objects via the Deployment/DeploymentConfig's selectors, would still though have to fall back onto using an RC's selector as well as for example fabric8-console doesn't use a Deployment looks like. But then the 'app' object will have all the associated things uh... associated :-)
Like this:
sounds good! For added complication the ConfigMaps are not associated using the selectors; they are in the spec.container.env.valueFrom
object (for mapping configmap entries to env vars) or spec.volume
for configmap volumes - so if you wanted to be totally accurate then we should use that metadata to do the association.
Ah, I see, tricky! I'll try and get that association made too, might as well make it accurate.
I guess lots of our apps have the same-name association (e.g. gogs, jenkins, nexus etc). For Volume association you could use this quickstart: https://github.com/fabric8-quickstarts/spring-boot-webmvc/blob/master/src/main/fabric8/deployment.yml#L7
i.e. a volume of kind configMap
then the name is inside that object. Don't have an env.valueFrom example to hand right now...
Have the env.valueFrom part sorted, just have to handle volumes...
On Sep 19, 2016 4:46 PM, "James Strachan" notifications@github.com wrote:
I guess lots of our apps have the same-name association (e.g. gogs, jenkins, nexus etc). For Volume association you could use this quickstart: https://github.com/fabric8-quickstarts/spring-boot- webmvc/blob/master/src/main/fabric8/deployment.yml#L7
i.e. a volume of kind configMap then the name is inside that object. Don't have an env.valueFrom example to hand right now...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hawtio/hawtio-kubernetes/issues/132#issuecomment-248121021, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVdrFDWGBsOsRCsk1Q-f7TlmeM6nOKWks5qrvSggaJpZM4KApz5 .
I guess if a D/Dc/app has > 1 config the config icon could generate a drop down to list them all by name?
oh yeah, definitely that'd be ideal...
also would be nice to have a Configure button like the Deployment page maybe?