Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
feat: Adds a pod_namespace field to pod events created by Continuous …
Browse files Browse the repository at this point in the history
…Validation, to distinguish pods with the same name that run in different namespaces (#159)

Committer: @tswift242
PiperOrigin-RevId: 455380856
Source-Link: googleapis/googleapis@1cbacff
Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb47adfa214e798ee1cb736b52ad386101b096e0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I0N2FkZmEyMTRlNzk4ZWUxY2I3MzZiNTJhZDM4NjEwMWIwOTZlMCJ9
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jun 20, 2022
1 parent da7afea commit db983a2
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,6 +31,15 @@ option ruby_package = "Google::Cloud::BinaryAuthorization::V1beta1";
message ContinuousValidationEvent {
// An auditing event for one Pod.
message ContinuousValidationPodEvent {
// Audit time policy conformance verdict.
enum PolicyConformanceVerdict {
// We should always have a verdict. This is an error.
POLICY_CONFORMANCE_VERDICT_UNSPECIFIED = 0;

// The pod violates the policy.
VIOLATES_POLICY = 1;
}

// Container image with auditing details.
message ImageDetails {
// Result of the audit.
Expand All @@ -55,14 +64,8 @@ message ContinuousValidationEvent {
string description = 3;
}

// Audit time policy conformance verdict.
enum PolicyConformanceVerdict {
// We should always have a verdict. This is an error.
POLICY_CONFORMANCE_VERDICT_UNSPECIFIED = 0;

// The pod violates the policy.
VIOLATES_POLICY = 1;
}
// The k8s namespace of the Pod.
string pod_namespace = 7;

// The name of the Pod.
string pod = 1;
Expand Down
18 changes: 12 additions & 6 deletions protos/protos.d.ts

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

50 changes: 36 additions & 14 deletions protos/protos.js

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

16 changes: 10 additions & 6 deletions protos/protos.json

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

0 comments on commit db983a2

Please sign in to comment.