mirror of
https://github.com/kubernetes/client-go.git
synced 2026-07-25 14:07:37 +00:00
Merge pull request #140713 from liyuerich/commentstartnetworking
enable commentstart check on networking API group Kubernetes-commit: 1056cbb4511a20ae5e4d0173813cd3403c6d836a
This commit is contained in:
@@ -36,7 +36,7 @@ import (
|
||||
// based virtual hosting etc.
|
||||
type IngressApplyConfiguration 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"`
|
||||
// spec is the desired state of the Ingress.
|
||||
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
// resources without a class specified will be assigned this default class.
|
||||
type IngressClassApplyConfiguration 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"`
|
||||
// spec is the desired state of the IngressClass.
|
||||
|
||||
@@ -26,6 +26,7 @@ package v1
|
||||
// mixing different types of rules in a single Ingress is disallowed, so exactly
|
||||
// one of the following must be set.
|
||||
type IngressRuleValueApplyConfiguration struct {
|
||||
// http is a HTTP IngressRuleValue, which contains a list of http selectors
|
||||
HTTP *HTTPIngressRuleValueApplyConfiguration `json:"http,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ import (
|
||||
// Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
|
||||
type IPAddressApplyConfiguration 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"`
|
||||
// spec is the desired state of the IPAddress.
|
||||
|
||||
@@ -23,7 +23,7 @@ package v1
|
||||
//
|
||||
// IPAddressSpec describe the attributes in an IP Address.
|
||||
type IPAddressSpecApplyConfiguration struct {
|
||||
// ParentRef references the resource that an IPAddress is attached to.
|
||||
// parentRef references the resource that an IPAddress is attached to.
|
||||
// An IPAddress must reference a parent object.
|
||||
ParentRef *ParentReferenceApplyConfiguration `json:"parentRef,omitempty"`
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// NetworkPolicy describes what network traffic is allowed for a set of Pods
|
||||
type NetworkPolicyApplyConfiguration 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"`
|
||||
// spec represents the specification of the desired behavior for this NetworkPolicy.
|
||||
|
||||
@@ -23,13 +23,13 @@ package v1
|
||||
//
|
||||
// ParentReference describes a reference to a parent object.
|
||||
type ParentReferenceApplyConfiguration struct {
|
||||
// Group is the group of the object being referenced.
|
||||
// group is the group of the object being referenced.
|
||||
Group *string `json:"group,omitempty"`
|
||||
// Resource is the resource of the object being referenced.
|
||||
// resource is the resource of the object being referenced.
|
||||
Resource *string `json:"resource,omitempty"`
|
||||
// Namespace is the namespace of the object being referenced.
|
||||
// namespace is the namespace of the object being referenced.
|
||||
Namespace *string `json:"namespace,omitempty"`
|
||||
// Name is the name of the object being referenced.
|
||||
// name is the name of the object being referenced.
|
||||
Name *string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// This range is used to allocate ClusterIPs to Service objects.
|
||||
type ServiceCIDRApplyConfiguration 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"`
|
||||
// spec is the desired state of the ServiceCIDR.
|
||||
|
||||
@@ -23,7 +23,7 @@ package v1
|
||||
//
|
||||
// ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
|
||||
type ServiceCIDRSpecApplyConfiguration struct {
|
||||
// CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64")
|
||||
// cidrs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64")
|
||||
// from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family.
|
||||
// This field is immutable.
|
||||
CIDRs []string `json:"cidrs,omitempty"`
|
||||
|
||||
@@ -36,7 +36,7 @@ import (
|
||||
// based virtual hosting etc.
|
||||
type IngressApplyConfiguration 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"`
|
||||
// spec is the desired state of the Ingress.
|
||||
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
// resources without a class specified will be assigned this default class.
|
||||
type IngressClassApplyConfiguration 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"`
|
||||
// spec is the desired state of the IngressClass.
|
||||
|
||||
@@ -26,6 +26,7 @@ package v1beta1
|
||||
// mixing different types of rules in a single Ingress is disallowed, so exactly
|
||||
// one of the following must be set.
|
||||
type IngressRuleValueApplyConfiguration struct {
|
||||
// http is a HTTP IngressRuleValue, which contains a list of http selectors
|
||||
HTTP *HTTPIngressRuleValueApplyConfiguration `json:"http,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ import (
|
||||
// Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
|
||||
type IPAddressApplyConfiguration 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"`
|
||||
// spec is the desired state of the IPAddress.
|
||||
|
||||
@@ -23,7 +23,7 @@ package v1beta1
|
||||
//
|
||||
// IPAddressSpec describe the attributes in an IP Address.
|
||||
type IPAddressSpecApplyConfiguration struct {
|
||||
// ParentRef references the resource that an IPAddress is attached to.
|
||||
// parentRef references the resource that an IPAddress is attached to.
|
||||
// An IPAddress must reference a parent object.
|
||||
ParentRef *ParentReferenceApplyConfiguration `json:"parentRef,omitempty"`
|
||||
}
|
||||
|
||||
@@ -23,13 +23,13 @@ package v1beta1
|
||||
//
|
||||
// ParentReference describes a reference to a parent object.
|
||||
type ParentReferenceApplyConfiguration struct {
|
||||
// Group is the group of the object being referenced.
|
||||
// group is the group of the object being referenced.
|
||||
Group *string `json:"group,omitempty"`
|
||||
// Resource is the resource of the object being referenced.
|
||||
// resource is the resource of the object being referenced.
|
||||
Resource *string `json:"resource,omitempty"`
|
||||
// Namespace is the namespace of the object being referenced.
|
||||
// namespace is the namespace of the object being referenced.
|
||||
Namespace *string `json:"namespace,omitempty"`
|
||||
// Name is the name of the object being referenced.
|
||||
// name is the name of the object being referenced.
|
||||
Name *string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// This range is used to allocate ClusterIPs to Service objects.
|
||||
type ServiceCIDRApplyConfiguration 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"`
|
||||
// spec is the desired state of the ServiceCIDR.
|
||||
|
||||
@@ -23,7 +23,7 @@ package v1beta1
|
||||
//
|
||||
// ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
|
||||
type ServiceCIDRSpecApplyConfiguration struct {
|
||||
// CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64")
|
||||
// cidrs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64")
|
||||
// from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family.
|
||||
// This field is immutable.
|
||||
CIDRs []string `json:"cidrs,omitempty"`
|
||||
|
||||
2
go.mod
2
go.mod
@@ -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-20260720153015-988eb9bc153d
|
||||
k8s.io/api v0.0.0-20260720190332-3e60bbf13765
|
||||
k8s.io/apimachinery v0.0.0-20260718014925-52ed2791fbb9
|
||||
k8s.io/klog/v2 v2.140.0
|
||||
k8s.io/kube-openapi v0.0.0-20260618221249-bc653b64f974
|
||||
|
||||
4
go.sum
4
go.sum
@@ -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-20260720153015-988eb9bc153d h1:8Z2gbMFGo5OQ1oZAR79cscrJEp56+7LzbVcxQzJIyvc=
|
||||
k8s.io/api v0.0.0-20260720153015-988eb9bc153d/go.mod h1:IBATGFc5LVLzzp3YAlTxbTKKQsrd/zJ1DakrhL7w5KI=
|
||||
k8s.io/api v0.0.0-20260720190332-3e60bbf13765 h1:sdp8X6VMIzPNQFbeGy/LUGqOEULJPoJBeUUf9oTfYK8=
|
||||
k8s.io/api v0.0.0-20260720190332-3e60bbf13765/go.mod h1:IBATGFc5LVLzzp3YAlTxbTKKQsrd/zJ1DakrhL7w5KI=
|
||||
k8s.io/apimachinery v0.0.0-20260718014925-52ed2791fbb9 h1:xIWYdabVRG/Xh+GSfJQsyti/CY4SnlS2H+AADOeboDc=
|
||||
k8s.io/apimachinery v0.0.0-20260718014925-52ed2791fbb9/go.mod h1:gUMHWz9sZCP7+vv/RiJJXhiPGY2mjS9OgfFcoqYul+M=
|
||||
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=
|
||||
|
||||
Reference in New Issue
Block a user