Skip to content

Commit

Permalink
feat: [binaryauthorization] add container_name, container_type fields…
Browse files Browse the repository at this point in the history
… 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]>
  • Loading branch information
3 people authored Nov 30, 2023
1 parent 400c893 commit a3d7006
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ message ContinuousValidationEvent {

// Container image with auditing details.
message ImageDetails {
// The container type.
enum ContainerType {
// The container type should always be specified. This is an error.
CONTAINER_TYPE_UNSPECIFIED = 0;

// A regular deployment.
CONTAINER = 1;

// Init container defined as specified at
// https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
INIT_CONTAINER = 2;

// Ephemeral container defined as specified at
// https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/
EPHEMERAL_CONTAINER = 3;
}

// Result of the audit.
enum AuditResult {
// Unspecified result. This is an error.
Expand Down Expand Up @@ -109,6 +126,12 @@ message ContinuousValidationEvent {
// The name of the image.
string image = 1;

// The name of the container.
string container_name = 5;

// The container type that this image belongs to.
ContainerType container_type = 6;

// The result of the audit for this image.
AuditResult result = 2;

Expand Down
20 changes: 20 additions & 0 deletions packages/google-cloud-binaryauthorization/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 93 additions & 0 deletions packages/google-cloud-binaryauthorization/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions packages/google-cloud-binaryauthorization/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a3d7006

Please sign in to comment.