Skip to content

Commit

Permalink
feat: add container_name, container_type fields to Continuous Validat…
Browse files Browse the repository at this point in the history
…ion Logs

PiperOrigin-RevId: 585695887
  • Loading branch information
Google APIs authored and Copybara-Service committed Nov 27, 2023
1 parent 0be2364 commit 4eccaaf
Showing 1 changed file with 23 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

0 comments on commit 4eccaaf

Please sign in to comment.