-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish converting ACM resources to use policy mutex lock (#12735)
- Loading branch information
Showing
25 changed files
with
141 additions
and
8 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 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 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 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 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 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/encoders/access_context_manager_access_level_condition.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the access_level parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("access_level").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |
8 changes: 8 additions & 0 deletions
8
mmv1/templates/terraform/encoders/access_context_manager_egress_policy.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the egress_policy_name parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("egress_policy_name").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |
8 changes: 8 additions & 0 deletions
8
mmv1/templates/terraform/encoders/access_context_manager_ingress_policy.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the ingress_policy_name parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("ingress_policy_name").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |
8 changes: 8 additions & 0 deletions
8
...terraform/encoders/access_context_manager_service_perimeter_dry_run_egress_policy.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the perimeter parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("perimeter").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |
8 changes: 8 additions & 0 deletions
8
...erraform/encoders/access_context_manager_service_perimeter_dry_run_ingress_policy.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the perimeter parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("perimeter").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |
8 changes: 8 additions & 0 deletions
8
...ates/terraform/encoders/access_context_manager_service_perimeter_dry_run_resource.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the perimeter_name parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("perimeter_name").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |
8 changes: 8 additions & 0 deletions
8
...mplates/terraform/encoders/access_context_manager_service_perimeter_egress_policy.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the perimeter parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("perimeter").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |
8 changes: 8 additions & 0 deletions
8
...plates/terraform/encoders/access_context_manager_service_perimeter_ingress_policy.go.tmpl
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 @@ | ||
// Set the access_policy_id field from part of the perimeter parameter. | ||
|
||
// The is logic is inside the encoder since the access_policy_id field is part of | ||
// the mutex lock and encoders run before the lock is set. | ||
parts := strings.Split(d.Get("perimeter").(string), "/") | ||
d.Set("access_policy_id", fmt.Sprintf("accessPolicies/%s", parts[1])) | ||
|
||
return obj, nil |