You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cloudrunv2: added field `binary_authorization.policy` to resource `google_cloud_run_v2_job` and resource `google_cloud_run_v2_service` to support named binary authorization policy.
Copy file name to clipboardExpand all lines: google/services/cloudrunv2/resource_cloud_run_v2_job.go
+27-3
Original file line number
Diff line number
Diff line change
@@ -461,10 +461,17 @@ Please refer to the field 'effective_annotations' for all of the annotations pre
461
461
Optional: true,
462
462
Description: `If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass`,
463
463
},
464
+
"policy": {
465
+
Type: schema.TypeString,
466
+
Optional: true,
467
+
Description: `The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}`,
468
+
ConflictsWith: []string{},
469
+
},
464
470
"use_default": {
465
-
Type: schema.TypeBool,
466
-
Optional: true,
467
-
Description: `If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.`,
471
+
Type: schema.TypeBool,
472
+
Optional: true,
473
+
Description: `If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.`,
474
+
ConflictsWith: []string{},
468
475
},
469
476
},
470
477
},
@@ -1226,6 +1233,8 @@ func flattenCloudRunV2JobBinaryAuthorization(v interface{}, d *schema.ResourceDa
Copy file name to clipboardExpand all lines: google/services/cloudrunv2/resource_cloud_run_v2_service.go
+27-3
Original file line number
Diff line number
Diff line change
@@ -774,10 +774,17 @@ Please refer to the field 'effective_annotations' for all of the annotations pre
774
774
Optional: true,
775
775
Description: `If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass`,
776
776
},
777
+
"policy": {
778
+
Type: schema.TypeString,
779
+
Optional: true,
780
+
Description: `The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}`,
781
+
ConflictsWith: []string{},
782
+
},
777
783
"use_default": {
778
-
Type: schema.TypeBool,
779
-
Optional: true,
780
-
Description: `If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.`,
784
+
Type: schema.TypeBool,
785
+
Optional: true,
786
+
Description: `If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.`,
787
+
ConflictsWith: []string{},
781
788
},
782
789
},
783
790
},
@@ -1680,6 +1687,8 @@ func flattenCloudRunV2ServiceBinaryAuthorization(v interface{}, d *schema.Resour
0 commit comments