From 3100871aeece97779e06ffc44c7b8286bfd3c543 Mon Sep 17 00:00:00 2001 From: Umanga Chapagain Date: Mon, 15 Mar 2021 11:20:53 +0530 Subject: [PATCH] add missing description to api/imagepolicy/v1alpha1/types.go Signed-off-by: Umanga Chapagain --- hack/.descriptions_failures | 1 - .../src/k8s.io/api/imagepolicy/v1alpha1/generated.proto | 2 ++ staging/src/k8s.io/api/imagepolicy/v1alpha1/types.go | 2 ++ .../imagepolicy/v1alpha1/types_swagger_doc_generated.go | 7 ++++--- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hack/.descriptions_failures b/hack/.descriptions_failures index 0c8aae4f0cb..8af9b1f11c1 100644 --- a/hack/.descriptions_failures +++ b/hack/.descriptions_failures @@ -13,7 +13,6 @@ ./staging/src/k8s.io/api/extensions/v1beta1/types.go ./staging/src/k8s.io/api/flowcontrol/v1alpha1/types.go ./staging/src/k8s.io/api/flowcontrol/v1beta1/types.go -./staging/src/k8s.io/api/imagepolicy/v1alpha1/types.go ./staging/src/k8s.io/api/networking/v1/types.go ./staging/src/k8s.io/api/networking/v1beta1/types.go ./staging/src/k8s.io/api/policy/v1beta1/types.go diff --git a/staging/src/k8s.io/api/imagepolicy/v1alpha1/generated.proto b/staging/src/k8s.io/api/imagepolicy/v1alpha1/generated.proto index 107f04a0a63..ddce901c82b 100644 --- a/staging/src/k8s.io/api/imagepolicy/v1alpha1/generated.proto +++ b/staging/src/k8s.io/api/imagepolicy/v1alpha1/generated.proto @@ -30,6 +30,8 @@ option go_package = "v1alpha1"; // ImageReview checks if the set of images in a pod are allowed. message ImageReview { + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; diff --git a/staging/src/k8s.io/api/imagepolicy/v1alpha1/types.go b/staging/src/k8s.io/api/imagepolicy/v1alpha1/types.go index fd689e638d9..151ffb1e9a3 100644 --- a/staging/src/k8s.io/api/imagepolicy/v1alpha1/types.go +++ b/staging/src/k8s.io/api/imagepolicy/v1alpha1/types.go @@ -28,6 +28,8 @@ import ( // ImageReview checks if the set of images in a pod are allowed. type ImageReview struct { metav1.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` diff --git a/staging/src/k8s.io/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go b/staging/src/k8s.io/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go index 0211d94af01..8d51e77a08b 100644 --- a/staging/src/k8s.io/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go +++ b/staging/src/k8s.io/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go @@ -28,9 +28,10 @@ package v1alpha1 // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. var map_ImageReview = map[string]string{ - "": "ImageReview checks if the set of images in a pod are allowed.", - "spec": "Spec holds information about the pod being evaluated", - "status": "Status is filled in by the backend and indicates whether the pod should be allowed.", + "": "ImageReview checks if the set of images in a pod are allowed.", + "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "spec": "Spec holds information about the pod being evaluated", + "status": "Status is filled in by the backend and indicates whether the pod should be allowed.", } func (ImageReview) SwaggerDoc() map[string]string {