Skip to content

Commit 4eccaaf

Browse files
Google APIscopybara-github
authored andcommitted
feat: add container_name, container_type fields to Continuous Validation Logs
PiperOrigin-RevId: 585695887
1 parent 0be2364 commit 4eccaaf

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)