-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add initial_size to google_compute_node_group #4750
Merged
ScottSuarez
merged 11 commits into
GoogleCloudPlatform:master
from
ScottSuarez:intial_size
May 5, 2021
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9b7b505
add initial_size to google_compute_node_group
ScottSuarez 9fbd69a
Merge branch 'master' of https://github.com/GoogleCloudPlatform/magic…
ScottSuarez ee7d4e2
move terraform specific parameter to terraform.yaml
ScottSuarez 109e505
exclude initialSize from inspec and ansible
ScottSuarez 7200725
Update mmv1/products/compute/inspec.yaml
ScottSuarez bdaa6e3
Update mmv1/products/compute/ansible.yaml
ScottSuarez cd7e8e6
migrate to terraform.yaml to avoid surfacing description in ansible o…
ScottSuarez 3828e9d
Merge branch 'intial_size' of https://github.com/ScottSuarez/magic-mo…
ScottSuarez 285c212
fix anible build failure
ScottSuarez 41b1ce1
Inspec to Ansible
ScottSuarez 5f7725d
add required true for ansible and inspec
ScottSuarez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
mmv1/templates/terraform/pre_create/compute_node_group_url_replace.go.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var sizeParam string | ||
if v, ok := d.GetOkExists("size"); ok { | ||
sizeParam = fmt.Sprintf("%v", v) | ||
} else if v, ok := d.GetOkExists("initial_size"); ok { | ||
sizeParam = fmt.Sprintf("%v", v) | ||
} | ||
|
||
url = regexp.MustCompile("PRE_CREATE_REPLACE_ME").ReplaceAllLiteralString(url, sizeParam) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
I think we'll need to make most of these changes in
terraform.yaml
(any api.yaml property can be used there, it overwrites the api.yaml value) to avoid breaking Ansible / possibly InSpec