Merge pull request #100233 from umangachapagain/imagepolicy-desc

add missing description to api/imagepolicy/v1alpha1/types.go
This commit is contained in:
Kubernetes Prow Robot 2021-04-30 15:24:00 -07:00 committed by GitHub
commit 032a6fd494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -11,7 +11,6 @@
./staging/src/k8s.io/api/extensions/v1beta1/types.go ./staging/src/k8s.io/api/extensions/v1beta1/types.go
./staging/src/k8s.io/api/flowcontrol/v1alpha1/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/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/v1/types.go
./staging/src/k8s.io/api/networking/v1beta1/types.go ./staging/src/k8s.io/api/networking/v1beta1/types.go
./staging/src/k8s.io/api/policy/v1beta1/types.go ./staging/src/k8s.io/api/policy/v1beta1/types.go

View File

@ -30,6 +30,8 @@ option go_package = "v1alpha1";
// ImageReview checks if the set of images in a pod are allowed. // ImageReview checks if the set of images in a pod are allowed.
message ImageReview { message ImageReview {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional // +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;

View File

@ -28,6 +28,8 @@ import (
// ImageReview checks if the set of images in a pod are allowed. // ImageReview checks if the set of images in a pod are allowed.
type ImageReview struct { type ImageReview struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional // +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

View File

@ -28,9 +28,10 @@ package v1alpha1
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
var map_ImageReview = map[string]string{ var map_ImageReview = map[string]string{
"": "ImageReview checks if the set of images in a pod are allowed.", "": "ImageReview checks if the set of images in a pod are allowed.",
"spec": "Spec holds information about the pod being evaluated", "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"status": "Status is filled in by the backend and indicates whether the pod should be 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.",
} }
func (ImageReview) SwaggerDoc() map[string]string { func (ImageReview) SwaggerDoc() map[string]string {