Skip to content

Commit cac37c1

Browse files
Add CLOUD_LOGGING_ONLY to cloudbuild log options (#5935) (#11511)
Signed-off-by: Modular Magician <[email protected]>
1 parent e8e397e commit cac37c1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.changelog/5935.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
Make `CLOUD_LOGGING_ONLY` available as a cloud build logging option.
3+
```

google/resource_cloudbuild_trigger.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ The elements are of the form "KEY=VALUE" for the environment variable "KEY" bein
435435
"logging": {
436436
Type: schema.TypeString,
437437
Optional: true,
438-
ValidateFunc: validateEnum([]string{"LOGGING_UNSPECIFIED", "LEGACY", "GCS_ONLY", "STACKDRIVER_ONLY", "NONE", ""}),
439-
Description: `Option to specify the logging mode, which determines if and where build logs are stored. Possible values: ["LOGGING_UNSPECIFIED", "LEGACY", "GCS_ONLY", "STACKDRIVER_ONLY", "NONE"]`,
438+
ValidateFunc: validateEnum([]string{"LOGGING_UNSPECIFIED", "LEGACY", "GCS_ONLY", "STACKDRIVER_ONLY", "CLOUD_LOGGING_ONLY", "NONE", ""}),
439+
Description: `Option to specify the logging mode, which determines if and where build logs are stored. Possible values: ["LOGGING_UNSPECIFIED", "LEGACY", "GCS_ONLY", "STACKDRIVER_ONLY", "CLOUD_LOGGING_ONLY", "NONE"]`,
440440
},
441441
"machine_type": {
442442
Type: schema.TypeString,

website/docs/r/cloudbuild_trigger.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ The following arguments are supported:
988988
* `logging` -
989989
(Optional)
990990
Option to specify the logging mode, which determines if and where build logs are stored.
991-
Possible values are `LOGGING_UNSPECIFIED`, `LEGACY`, `GCS_ONLY`, `STACKDRIVER_ONLY`, and `NONE`.
991+
Possible values are `LOGGING_UNSPECIFIED`, `LEGACY`, `GCS_ONLY`, `STACKDRIVER_ONLY`, `CLOUD_LOGGING_ONLY`, and `NONE`.
992992

993993
* `env` -
994994
(Optional)

0 commit comments

Comments
 (0)