Skip to content

Commit

Permalink
Add IAM resources for Cloud Deploy Custom Target Type (GoogleCloudPla…
Browse files Browse the repository at this point in the history
…tform#10051)

* Add IAM resources for Cloud Deploy Custom Target Type

* Add base url override for Cloud Deploy Custom Target Type IAM policy

* Update import format for IAM policy and primary resource name to examples for IAM generated tests
  • Loading branch information
mattsanta authored and balanaguharsha committed May 2, 2024
1 parent e353bfe commit ddc1a8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mmv1/products/clouddeploy/CustomTargetType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,28 @@ import_format:
[
'projects/{{project}}/locations/{{location}}/customTargetTypes/{{name}}'
]
iam_policy: !ruby/object:Api::Resource::IamPolicy
parent_resource_attribute: 'name'
method_name_separator: ':'
base_url: 'projects/{{project}}/locations/{{location}}/customTargetTypes/{{name}}'
import_format: ['projects/{{project}}/locations/{{location}}/customTargetTypes/{{name}}', '{{name}}']
examples:
- !ruby/object:Provider::Terraform::Examples
name: "clouddeploy_custom_target_type_basic"
primary_resource_id: "custom-target-type"
primary_resource_name: 'fmt.Sprintf("tf-test-my-custom-target-type%s", context["random_suffix"])'
vars:
custom_target_type_name: "my-custom-target-type"
- !ruby/object:Provider::Terraform::Examples
name: "clouddeploy_custom_target_type_git_skaffold_modules"
primary_resource_id: "custom-target-type"
primary_resource_name: 'fmt.Sprintf("tf-test-my-custom-target-type%s", context["random_suffix"])'
vars:
custom_target_type_name: "my-custom-target-type"
- !ruby/object:Provider::Terraform::Examples
name: "clouddeploy_custom_target_type_gcs_skaffold_modules"
primary_resource_id: "custom-target-type"
primary_resource_name: 'fmt.Sprintf("tf-test-my-custom-target-type%s", context["random_suffix"])'
vars:
custom_target_type_name: "my-custom-target-type"
parameters:
Expand Down

0 comments on commit ddc1a8d

Please sign in to comment.