From 2c5639b754186feee99360f2925efd408dcc79d1 Mon Sep 17 00:00:00 2001 From: krishhna_dev Date: Mon, 15 Jun 2026 07:23:19 +0000 Subject: [PATCH] imagepolicy: update generated files Regenerated by hack/update-golangci-lint-config.sh and hack/update-codegen.sh after the commentstart changes. Kubernetes-commit: 0062a2bc681f62cca7dd206cd098f14e1d346ba0 --- applyconfigurations/imagepolicy/v1alpha1/imagereview.go | 6 +++--- .../imagepolicy/v1alpha1/imagereviewcontainerspec.go | 2 +- applyconfigurations/imagepolicy/v1alpha1/imagereviewspec.go | 6 +++--- .../imagepolicy/v1alpha1/imagereviewstatus.go | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/applyconfigurations/imagepolicy/v1alpha1/imagereview.go b/applyconfigurations/imagepolicy/v1alpha1/imagereview.go index 1184cf88c..c2aad9565 100644 --- a/applyconfigurations/imagepolicy/v1alpha1/imagereview.go +++ b/applyconfigurations/imagepolicy/v1alpha1/imagereview.go @@ -33,12 +33,12 @@ import ( // ImageReview checks if the set of images in a pod are allowed. type ImageReviewApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:""` - // Standard object's metadata. + // metadata is the standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - // Spec holds information about the pod being evaluated + // spec holds information about the pod being evaluated Spec *ImageReviewSpecApplyConfiguration `json:"spec,omitempty"` - // Status is filled in by the backend and indicates whether the pod should be allowed. + // status is filled in by the backend and indicates whether the pod should be allowed. Status *ImageReviewStatusApplyConfiguration `json:"status,omitempty"` } diff --git a/applyconfigurations/imagepolicy/v1alpha1/imagereviewcontainerspec.go b/applyconfigurations/imagepolicy/v1alpha1/imagereviewcontainerspec.go index 1f0193f03..0a24f4332 100644 --- a/applyconfigurations/imagepolicy/v1alpha1/imagereviewcontainerspec.go +++ b/applyconfigurations/imagepolicy/v1alpha1/imagereviewcontainerspec.go @@ -23,7 +23,7 @@ package v1alpha1 // // ImageReviewContainerSpec is a description of a container within the pod creation request. type ImageReviewContainerSpecApplyConfiguration struct { - // This can be in the form image:tag or image@SHA:012345679abcdef. + // image can be in the form image:tag or image@SHA:012345679abcdef. Image *string `json:"image,omitempty"` } diff --git a/applyconfigurations/imagepolicy/v1alpha1/imagereviewspec.go b/applyconfigurations/imagepolicy/v1alpha1/imagereviewspec.go index 14c6603f5..9abdc9501 100644 --- a/applyconfigurations/imagepolicy/v1alpha1/imagereviewspec.go +++ b/applyconfigurations/imagepolicy/v1alpha1/imagereviewspec.go @@ -23,13 +23,13 @@ package v1alpha1 // // ImageReviewSpec is a description of the pod creation request. type ImageReviewSpecApplyConfiguration struct { - // Containers is a list of a subset of the information in each container of the Pod being created. + // containers is a list of a subset of the information in each container of the Pod being created. Containers []ImageReviewContainerSpecApplyConfiguration `json:"containers,omitempty"` - // Annotations is a list of key-value pairs extracted from the Pod's annotations. + // annotations is a list of key-value pairs extracted from the Pod's annotations. // It only includes keys which match the pattern `*.image-policy.k8s.io/*`. // It is up to each webhook backend to determine how to interpret these annotations, if at all. Annotations map[string]string `json:"annotations,omitempty"` - // Namespace is the namespace the pod is being created in. + // namespace is the namespace the pod is being created in. Namespace *string `json:"namespace,omitempty"` } diff --git a/applyconfigurations/imagepolicy/v1alpha1/imagereviewstatus.go b/applyconfigurations/imagepolicy/v1alpha1/imagereviewstatus.go index 52828a29c..53d32ee91 100644 --- a/applyconfigurations/imagepolicy/v1alpha1/imagereviewstatus.go +++ b/applyconfigurations/imagepolicy/v1alpha1/imagereviewstatus.go @@ -23,13 +23,13 @@ package v1alpha1 // // ImageReviewStatus is the result of the review for the pod creation request. type ImageReviewStatusApplyConfiguration struct { - // Allowed indicates that all images were allowed to be run. + // allowed indicates that all images were allowed to be run. Allowed *bool `json:"allowed,omitempty"` - // Reason should be empty unless Allowed is false in which case it + // reason should be empty unless Allowed is false in which case it // may contain a short description of what is wrong. Kubernetes // may truncate excessively long errors when displaying to the user. Reason *string `json:"reason,omitempty"` - // AuditAnnotations will be added to the attributes object of the + // auditAnnotations will be added to the attributes object of the // admission controller request using 'AddAnnotation'. The keys should // be prefix-less (i.e., the admission controller will add an // appropriate prefix).