Merge pull request #140371 from liyuerich/commentstartstorage

enable commentstart check on storage API group

Kubernetes-commit: 1627c1714830e55cdaedbf61c0871a1e583cd3d0
This commit is contained in:
Kubernetes Publisher
2026-07-14 17:57:25 +00:00
19 changed files with 23 additions and 22 deletions

View File

@@ -37,7 +37,7 @@ import (
// CSIDriver objects are non-namespaced.
type CSIDriverApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// Standard object metadata.
// metadata is the standard object metadata.
// metadata.Name indicates the name of the CSI driver that this object
// refers to; it MUST be the same name returned by the CSI GetPluginName()
// call for that driver.

View File

@@ -178,7 +178,7 @@ type CSIDriverSpecApplyConfiguration struct {
//
// Default behavior if unset is to pass tokens in the VolumeContext field.
ServiceAccountTokenInSecrets *bool `json:"serviceAccountTokenInSecrets,omitempty"`
// PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
// preventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
// scheduling if the CSI driver on the node is missing.
//
// Enabling this option will prevent the scheduler (or any other

View File

@@ -41,7 +41,7 @@ import (
// CSINode has an OwnerReference that points to the corresponding node object.
type CSINodeApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object metadata.
// metadata.name must be the Kubernetes node name.
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// spec is the specification of CSINode

View File

@@ -57,7 +57,7 @@ import (
// node.
type CSIStorageCapacityApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object metadata.
// The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters).
// To ensure that there are no conflicts with other CSI drivers on the cluster,
// the recommendation is to use csisc-<uuid>, a generated name, or a reverse-domain name

View File

@@ -39,7 +39,7 @@ import (
// according to etcd is in ObjectMeta.Name.
type StorageClassApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// provisioner indicates the type of the provisioner.

View File

@@ -36,7 +36,7 @@ import (
// VolumeAttachment objects are non-namespaced.
type VolumeAttachmentApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// Standard object metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// spec represents specification of the desired attach/detach volume behavior.

View File

@@ -35,10 +35,10 @@ import (
// of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
type VolumeAttributesClassApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// Name of the CSI driver
// driverName is the name of the CSI driver
// This field is immutable.
DriverName *string `json:"driverName,omitempty"`
// parameters hold volume attributes defined by the CSI driver. These values

View File

@@ -57,7 +57,7 @@ import (
// node.
type CSIStorageCapacityApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata. The name has no particular meaning. It must be
// metadata is the standard object metadata. The name has no particular meaning. It must be
// be a DNS subdomain (dots allowed, 253 characters). To ensure that
// there are no conflicts with other CSI drivers on the cluster, the recommendation
// is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends

View File

@@ -36,7 +36,7 @@ import (
// VolumeAttachment objects are non-namespaced.
type VolumeAttachmentApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// spec represents specification of the desired attach/detach volume behavior.

View File

@@ -35,10 +35,10 @@ import (
// of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
type VolumeAttributesClassApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// Name of the CSI driver
// driverName is the name of the CSI driver
// This field is immutable.
DriverName *string `json:"driverName,omitempty"`
// parameters hold volume attributes defined by the CSI driver. These values

View File

@@ -40,7 +40,7 @@ import (
// CSIDriver objects are non-namespaced.
type CSIDriverApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object metadata.
// metadata is the standard object metadata.
// metadata.Name indicates the name of the CSI driver that this object
// refers to; it MUST be the same name returned by the CSI GetPluginName()
// call for that driver.

View File

@@ -178,7 +178,7 @@ type CSIDriverSpecApplyConfiguration struct {
//
// Default behavior if unset is to pass tokens in the VolumeContext field.
ServiceAccountTokenInSecrets *bool `json:"serviceAccountTokenInSecrets,omitempty"`
// PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
// preventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
// scheduling if the CSI driver on the node is missing.
//
// Enabling this option will prevent the scheduler (or any other

View File

@@ -43,6 +43,7 @@ import (
// CSINode has an OwnerReference that points to the corresponding node object.
type CSINodeApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// metadata is the standard object metadata.
// metadata.name must be the Kubernetes node name.
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// spec is the specification of CSINode

View File

@@ -57,7 +57,7 @@ import (
// node.
type CSIStorageCapacityApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata. The name has no particular meaning. It must be
// metadata is the standard object metadata. The name has no particular meaning. It must be
// be a DNS subdomain (dots allowed, 253 characters). To ensure that
// there are no conflicts with other CSI drivers on the cluster, the recommendation
// is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends

View File

@@ -39,7 +39,7 @@ import (
// according to etcd is in ObjectMeta.Name.
type StorageClassApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// provisioner indicates the type of the provisioner.

View File

@@ -36,7 +36,7 @@ import (
// VolumeAttachment objects are non-namespaced.
type VolumeAttachmentApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// spec represents specification of the desired attach/detach volume behavior.

View File

@@ -35,10 +35,10 @@ import (
// of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
type VolumeAttributesClassApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// Name of the CSI driver
// driverName is the name of the CSI driver
// This field is immutable.
DriverName *string `json:"driverName,omitempty"`
// parameters hold volume attributes defined by the CSI driver. These values

2
go.mod
View File

@@ -23,7 +23,7 @@ require (
golang.org/x/time v0.15.0
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af
gopkg.in/evanphx/json-patch.v4 v4.13.0
k8s.io/api v0.0.0-20260714180125-be6a9fe95b4e
k8s.io/api v0.0.0-20260714220217-aa387f5b6528
k8s.io/apimachinery v0.0.0-20260714080237-16d43734bc5c
k8s.io/klog/v2 v2.140.0
k8s.io/kube-openapi v0.0.0-20260618221249-bc653b64f974

4
go.sum
View File

@@ -118,8 +118,8 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/api v0.0.0-20260714180125-be6a9fe95b4e h1:Dao0OvbE8pYhakzMKF3cEAq80zUyN4+ybvYQwDErM3s=
k8s.io/api v0.0.0-20260714180125-be6a9fe95b4e/go.mod h1:oUftcBdVfUZQ1Ig2Tsk1lzfIaJJuWv9AuJj2CZo0H4Q=
k8s.io/api v0.0.0-20260714220217-aa387f5b6528 h1:on89wc3ovQuVaLX7znGwxVL0uxk74udFGrVY1iIQGE8=
k8s.io/api v0.0.0-20260714220217-aa387f5b6528/go.mod h1:oUftcBdVfUZQ1Ig2Tsk1lzfIaJJuWv9AuJj2CZo0H4Q=
k8s.io/apimachinery v0.0.0-20260714080237-16d43734bc5c h1:LmQCUrYjUcgZt6MUt5FOynsbvuY9v726NBZbp5a/Krg=
k8s.io/apimachinery v0.0.0-20260714080237-16d43734bc5c/go.mod h1:gUMHWz9sZCP7+vv/RiJJXhiPGY2mjS9OgfFcoqYul+M=
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=