diff --git a/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto b/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto index 4f7bfdd..1666b51 100644 --- a/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto +++ b/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto @@ -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. @@ -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. @@ -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; diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 19e1461..df4bfbd 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -2255,6 +2255,9 @@ export namespace google { /** Properties of a ContinuousValidationPodEvent. */ interface IContinuousValidationPodEvent { + /** ContinuousValidationPodEvent podNamespace */ + podNamespace?: (string|null); + /** ContinuousValidationPodEvent pod */ pod?: (string|null); @@ -2280,6 +2283,9 @@ export namespace google { */ constructor(properties?: google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.IContinuousValidationPodEvent); + /** ContinuousValidationPodEvent podNamespace. */ + public podNamespace: string; + /** ContinuousValidationPodEvent pod. */ public pod: string; @@ -2368,6 +2374,12 @@ export namespace google { namespace ContinuousValidationPodEvent { + /** PolicyConformanceVerdict enum. */ + enum PolicyConformanceVerdict { + POLICY_CONFORMANCE_VERDICT_UNSPECIFIED = 0, + VIOLATES_POLICY = 1 + } + /** Properties of an ImageDetails. */ interface IImageDetails { @@ -2479,12 +2491,6 @@ export namespace google { DENY = 2 } } - - /** PolicyConformanceVerdict enum. */ - enum PolicyConformanceVerdict { - POLICY_CONFORMANCE_VERDICT_UNSPECIFIED = 0, - VIOLATES_POLICY = 1 - } } /** Properties of an UnsupportedPolicyEvent. */ diff --git a/protos/protos.js b/protos/protos.js index 40617dd..fbc5086 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -5344,6 +5344,7 @@ * Properties of a ContinuousValidationPodEvent. * @memberof google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent * @interface IContinuousValidationPodEvent + * @property {string|null} [podNamespace] ContinuousValidationPodEvent podNamespace * @property {string|null} [pod] ContinuousValidationPodEvent pod * @property {google.protobuf.ITimestamp|null} [deployTime] ContinuousValidationPodEvent deployTime * @property {google.protobuf.ITimestamp|null} [endTime] ContinuousValidationPodEvent endTime @@ -5367,6 +5368,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ContinuousValidationPodEvent podNamespace. + * @member {string} podNamespace + * @memberof google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent + * @instance + */ + ContinuousValidationPodEvent.prototype.podNamespace = ""; + /** * ContinuousValidationPodEvent pod. * @member {string} pod @@ -5442,6 +5451,8 @@ if (message.images != null && message.images.length) for (var i = 0; i < message.images.length; ++i) $root.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.encode(message.images[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.podNamespace != null && Object.hasOwnProperty.call(message, "podNamespace")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.podNamespace); return writer; }; @@ -5476,6 +5487,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 7: + message.podNamespace = reader.string(); + break; case 1: message.pod = reader.string(); break; @@ -5528,6 +5542,9 @@ ContinuousValidationPodEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + if (!$util.isString(message.podNamespace)) + return "podNamespace: string expected"; if (message.pod != null && message.hasOwnProperty("pod")) if (!$util.isString(message.pod)) return "pod: string expected"; @@ -5573,6 +5590,8 @@ if (object instanceof $root.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) return object; var message = new $root.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent(); + if (object.podNamespace != null) + message.podNamespace = String(object.podNamespace); if (object.pod != null) message.pod = String(object.pod); if (object.deployTime != null) { @@ -5628,6 +5647,7 @@ object.deployTime = null; object.endTime = null; object.verdict = options.enums === String ? "POLICY_CONFORMANCE_VERDICT_UNSPECIFIED" : 0; + object.podNamespace = ""; } if (message.pod != null && message.hasOwnProperty("pod")) object.pod = message.pod; @@ -5642,6 +5662,8 @@ for (var j = 0; j < message.images.length; ++j) object.images[j] = $root.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.toObject(message.images[j], options); } + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + object.podNamespace = message.podNamespace; return object; }; @@ -5656,6 +5678,20 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * PolicyConformanceVerdict enum. + * @name google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict + * @enum {number} + * @property {number} POLICY_CONFORMANCE_VERDICT_UNSPECIFIED=0 POLICY_CONFORMANCE_VERDICT_UNSPECIFIED value + * @property {number} VIOLATES_POLICY=1 VIOLATES_POLICY value + */ + ContinuousValidationPodEvent.PolicyConformanceVerdict = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "POLICY_CONFORMANCE_VERDICT_UNSPECIFIED"] = 0; + values[valuesById[1] = "VIOLATES_POLICY"] = 1; + return values; + })(); + ContinuousValidationPodEvent.ImageDetails = (function() { /** @@ -5922,20 +5958,6 @@ return ImageDetails; })(); - /** - * PolicyConformanceVerdict enum. - * @name google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict - * @enum {number} - * @property {number} POLICY_CONFORMANCE_VERDICT_UNSPECIFIED=0 POLICY_CONFORMANCE_VERDICT_UNSPECIFIED value - * @property {number} VIOLATES_POLICY=1 VIOLATES_POLICY value - */ - ContinuousValidationPodEvent.PolicyConformanceVerdict = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "POLICY_CONFORMANCE_VERDICT_UNSPECIFIED"] = 0; - values[valuesById[1] = "VIOLATES_POLICY"] = 1; - return values; - })(); - return ContinuousValidationPodEvent; })(); diff --git a/protos/protos.json b/protos/protos.json index bd0b521..56a3832 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -701,6 +701,10 @@ "nested": { "ContinuousValidationPodEvent": { "fields": { + "podNamespace": { + "type": "string", + "id": 7 + }, "pod": { "type": "string", "id": 1 @@ -724,6 +728,12 @@ } }, "nested": { + "PolicyConformanceVerdict": { + "values": { + "POLICY_CONFORMANCE_VERDICT_UNSPECIFIED": 0, + "VIOLATES_POLICY": 1 + } + }, "ImageDetails": { "fields": { "image": { @@ -748,12 +758,6 @@ } } } - }, - "PolicyConformanceVerdict": { - "values": { - "POLICY_CONFORMANCE_VERDICT_UNSPECIFIED": 0, - "VIOLATES_POLICY": 1 - } } } },