Skip to content

Commit a3d7006

Browse files
feat: [binaryauthorization] add container_name, container_type fields to Continuous Validation Logs (#4848)
* feat: add container_name, container_type fields to Continuous Validation Logs PiperOrigin-RevId: 585695887 Source-Link: googleapis/googleapis@4eccaaf Source-Link: googleapis/googleapis-gen@6648795 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbmFyeWF1dGhvcml6YXRpb24vLk93bEJvdC55YW1sIiwiaCI6IjY2NDg3OTUwMWQ1MTZlOWM2N2QwNDg1MTQyOWEzZjE5ZjIwYjA5YTUifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <[email protected]>
1 parent 400c893 commit a3d7006

4 files changed

Lines changed: 152 additions & 0 deletions

File tree

packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@ message ContinuousValidationEvent {
4242

4343
// Container image with auditing details.
4444
message ImageDetails {
45+
// The container type.
46+
enum ContainerType {
47+
// The container type should always be specified. This is an error.
48+
CONTAINER_TYPE_UNSPECIFIED = 0;
49+
50+
// A regular deployment.
51+
CONTAINER = 1;
52+
53+
// Init container defined as specified at
54+
// https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
55+
INIT_CONTAINER = 2;
56+
57+
// Ephemeral container defined as specified at
58+
// https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/
59+
EPHEMERAL_CONTAINER = 3;
60+
}
61+
4562
// Result of the audit.
4663
enum AuditResult {
4764
// Unspecified result. This is an error.
@@ -109,6 +126,12 @@ message ContinuousValidationEvent {
109126
// The name of the image.
110127
string image = 1;
111128

129+
// The name of the container.
130+
string container_name = 5;
131+
132+
// The container type that this image belongs to.
133+
ContainerType container_type = 6;
134+
112135
// The result of the audit for this image.
113136
AuditResult result = 2;
114137

packages/google-cloud-binaryauthorization/protos/protos.d.ts

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-binaryauthorization/protos/protos.js

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-binaryauthorization/protos/protos.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)