Closed cedriclaudrel closed 5 years ago
My bad, thanks for catching that.
You're right to use the -environment
parameter now if you only want to deploy only a specific Puppet environment.
I've removed the unnecessary warning and skipped the wrong removal of Puppet environments if -environment
was specified.
I'm preparing a release for that bug fix.
Yeah :+1:
I'll let you know if it's better with this new release :)
Ok, please check out https://github.com/xorpaul/g10k/releases/tag/v0.7.3
Before v0.7.1 (and before that, with r10k), we used
-branch
to target a "fully qualified" environment name, for examplefoo_master
to update themaster
branch of thefoo
repository.Since https://github.com/xorpaul/g10k/commit/143ea1eb85145eacf280fd0a15090ea73ae538e7 , -branch doesn't work like that anymore.
Here is my test config file :
With g10k v0.7.0 :
It works fine, and if I do the same with
bar_master
, it deploys the other environment next to the first one, as expected.With g10k v0.7.2 :
It doesn't deploy anything, so it seems that we have a regression (at least a breaking change) here.
If I only specify
master
, it runs by deploying themaster
branch from all environments (this doesn't suit our workflow) :If I try to emulate the previous behavior using the new -environment flag, things get weirder :
foo_master
is correctly deployed, but it seems like g10k is looking for other environments with an ending underscore :Environment 'bar_' cannot be found
.Same thing if I try to deploy the other env :
This time,
bar_master
has been correctly deployed, but sincefoo
hasn't been found, the previous deployment has been purged from basedir.Let me know if I do something wrong here, I'd happily test some fixes/workaround if needed :)