-
Notifications
You must be signed in to change notification settings - Fork 558
Conversation
…rioland/set-flag
Codecov Report
@@ Coverage Diff @@
## master #2787 +/- ##
==========================================
+ Coverage 46.95% 47.07% +0.12%
==========================================
Files 86 87 +1
Lines 12781 12858 +77
==========================================
+ Hits 6001 6053 +52
- Misses 6226 6240 +14
- Partials 554 565 +11
Continue to review full report at Codecov.
|
@jcorioland did you decide to add the --set flag to deploy in a separate PR? |
@CecileRobertMichon yes, I will do that in another PR as it may lead to a some refactoring to share code between generate and deploy command. I've created an issue (#2796) to work on the deploy command later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm pending E2E, thanks @jcorioland!!
@jcorioland can you confirm this works for setting the I am getting the following output:
|
@flyboarder Ah, this is weird. I've just tested with a sample json api model file and it seems to work:
Can you check the tmp file that is generated? In mine, I can see that the "test" is there for keyData:
Can you either share your api model file or try with the sample I've used please ? |
What this PR does / why we need it: this PR adds support for a --flag to the generate command to make possible to override values from the api model JSON file using the CLI:
acs-engine generate --set linuxProfile.adminUsername=jcorioland,agentPoolProfiles[0].count=5 kubernetes.json
Which issue this PR fixes: fixes #733
Special notes for your reviewer:
It supports all fields and arrays under the
properties
node.It introduces some refactoring of the generate command itself and new unit tests.
It adds a dependency to Jeffail/gabs for JSON manipulations.
If applicable: