charm-tools icon indicating copy to clipboard operation
charm-tools copied to clipboard

charm build - not merging configs from lower layers

Open jamesbeedy opened this issue 8 years ago • 2 comments

Checklist

  • [X] Confirmed this is an issue with charm-tools, not charmstore-client
  • [X ] Provide versions of tools used
  • [ X] Described the feature or ways to replicate the issue

What version am I running?

I ran the following command: charm version and got the following ouput:

charm 2.1.1-0ubuntu1
charm-tools 2.1.2

I am using: Ubuntu Xenial

Issue/Feature

  1. Config default values defined in my layer's config.yaml don't seem to be making it into the built charm.

I expect/expected the following

I expected to see my config default values defined in my layer's config.yaml end up in my built charm's config.yaml.

What I got

The config definitions seem to make it into my built charm's config.yaml, just not the specified default values from layer-gitlab config.yaml. <- This is strikingly odd, because when I include another layer, say juju-layer-node, following which build my top layer into a charm, I get the default configs for layer-apt, defined by layer-node in my built charm. This is different than what happens when I build my charm-gitlab, which includes layer-gitlab, which has the default values specified to satisfy the params for the layer-apt.

jamesbeedy avatar Aug 02 '16 16:08 jamesbeedy

@jamesbeedy for clarity, can you please link the "top" layer in play here? ie. the thing you issue charm build against? tia!

ryan-beisner avatar Aug 02 '16 17:08 ryan-beisner

@ryan-beisner https://github.com/jamesbeedy/charm-gitlab

jamesbeedy avatar Aug 02 '16 17:08 jamesbeedy