-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for instance_ip_mode to appengine flexible in beta (#10326)
Co-authored-by: Riley Karson <rileykarson@google.com>
- Loading branch information
1 parent
aaedc62
commit 4b33dad
Showing
8 changed files
with
161 additions
and
48 deletions.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
mmv1/templates/terraform/decoders/app_engine_domain_mapping.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,18 @@ | ||
// sslManagementType does not get returned with the beta endpoint. Hence, if sslSettings is set | ||
// and sslManagementType is set, we return that value. Otherwise, we carry over the old value | ||
// from state by calling d.Get("ssl_settings.0.ssl_management_type") | ||
if v, ok := res["sslSettings"]; ok { | ||
original := v.(map[string]interface{}) | ||
if _, ok := original["sslManagementType"]; !ok { | ||
original["sslManagementType"] = d.Get("ssl_settings.0.ssl_management_type") | ||
} | ||
res["sslSettings"] = original | ||
} else { | ||
// If ssl_settings is not set, we call d.Get("ssl_settings.0.ssl_management_type"), create sslSettings, | ||
// and store the retrieved value in sslManagementType | ||
transformed := make(map[string]interface{}) | ||
transformed["sslManagementType"] = d.Get("ssl_settings.0.ssl_management_type") | ||
res["sslSettings"] = transformed | ||
} | ||
|
||
return res, nil |
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