8000 feat: Adds a pod_namespace field to pod events created by Continuous … · googleapis/googleapis@1cbacff · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cbacff

Browse files
Google APIscopybara-github
authored andcommitted
feat: Adds a pod_namespace field to pod events created by Continuous Validation, to distinguish pods with the same name that run in different namespaces
Committer: @tswift242 PiperOrigin-RevId: 455380856
1 parent a9969d3 commit 1cbacff

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -31,6 +31,15 @@ option ruby_package = "Google::Cloud::BinaryAuthorization::V1beta1";
3131
message ContinuousValidationEvent {
3232
// An auditing event for one Pod.
3333
message ContinuousValidationPodEvent {
34+
// Audit time policy conformance verdict.
35+
enum PolicyConformanceVerdict {
36+
// We should always have a verdict. This is an error.
37+
POLICY_CONFORMANCE_VERDICT_UNSPECIFIED = 0;
38+
39+
// The pod violates the policy.
40+
VIOLATES_POLICY = 1;
41+
}
42+
3443
// Container image with auditing details.
3544
message ImageDetails {
3645
// Result of the audit.
@@ -55,14 +64,8 @@ message ContinuousValidationEvent {
5564
string description = 3;
5665
}
5766

58-
// Audit time policy conformance verdict.
59-
enum PolicyConformanceVerdict {
60-
// We should always have a verdict. This is an error.
61-
POLICY_CONFORMANCE_VERDICT_UNSPECIFIED = 0;
62-
63-
// The pod violates the policy.
64-
VIOLATES_POLICY = 1;
65-
}
67+
// The k8s namespace of the Pod.
68+
string pod_namespace = 7;
6669

6770
// The name of the Pod.
6871
string pod = 1;

0 commit comments

Comments
 (0)
0