imagepolicy: update generated files

Regenerated by hack/update-golangci-lint-config.sh and
hack/update-codegen.sh after the commentstart changes.

Kubernetes-commit: 0062a2bc681f62cca7dd206cd098f14e1d346ba0
This commit is contained in:
krishhna_dev
2026-06-15 07:23:19 +00:00
committed by Kubernetes Publisher
parent 6317a9d7c7
commit 2c5639b754
4 changed files with 10 additions and 10 deletions

View File

@@ -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"`
}

View File

@@ -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"`
}

View File

@@ -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"`
}

View File

@@ -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).