mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Update generated files
make generated_files UPDATE_API_KNOWN_VIOLATIONS=true ./hack/update-generated-protobuf.sh ./hack/update-openapi-spec.sh ./hack/update-bazel.sh ./hack/update-generated-swagger-docs.sh ./hack/update-generated-api-compatibility-data.sh
This commit is contained in:
parent
035e648fd7
commit
b0459feb7d
@ -147,6 +147,7 @@ API rule violation: list_type_missing,k8s.io/api/core/v1,List,Items
|
||||
API rule violation: list_type_missing,k8s.io/api/core/v1,LoadBalancerStatus,Ingress
|
||||
API rule violation: list_type_missing,k8s.io/api/core/v1,NamespaceList,Items
|
||||
API rule violation: list_type_missing,k8s.io/api/core/v1,NamespaceSpec,Finalizers
|
||||
API rule violation: list_type_missing,k8s.io/api/core/v1,NamespaceStatus,Conditions
|
||||
API rule violation: list_type_missing,k8s.io/api/core/v1,NodeAffinity,PreferredDuringSchedulingIgnoredDuringExecution
|
||||
API rule violation: list_type_missing,k8s.io/api/core/v1,NodeList,Items
|
||||
API rule violation: list_type_missing,k8s.io/api/core/v1,NodeSelector,NodeSelectorTerms
|
||||
|
36
api/openapi-spec/swagger.json
generated
36
api/openapi-spec/swagger.json
generated
@ -8661,6 +8661,33 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"io.k8s.api.core.v1.NamespaceCondition": {
|
||||
"description": "NamespaceCondition contains details about state of namespace.",
|
||||
"properties": {
|
||||
"lastTransitionTime": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "Status of the condition, one of True, False, Unknown.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "Type of namespace controller condition.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"status"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.NamespaceList": {
|
||||
"description": "NamespaceList is a list of Namespaces.",
|
||||
"properties": {
|
||||
@ -8712,6 +8739,15 @@
|
||||
"io.k8s.api.core.v1.NamespaceStatus": {
|
||||
"description": "NamespaceStatus is information about the current status of a Namespace.",
|
||||
"properties": {
|
||||
"conditions": {
|
||||
"description": "Represents the latest available observations of a namespace's current state.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.NamespaceCondition"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-patch-merge-key": "type",
|
||||
"x-kubernetes-patch-strategy": "merge"
|
||||
},
|
||||
"phase": {
|
||||
"description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/",
|
||||
"type": "string"
|
||||
|
40
pkg/apis/core/v1/zz_generated.conversion.go
generated
40
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -870,6 +870,16 @@ func RegisterConversions(s *runtime.Scheme) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*v1.NamespaceCondition)(nil), (*core.NamespaceCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_NamespaceCondition_To_core_NamespaceCondition(a.(*v1.NamespaceCondition), b.(*core.NamespaceCondition), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*core.NamespaceCondition)(nil), (*v1.NamespaceCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_core_NamespaceCondition_To_v1_NamespaceCondition(a.(*core.NamespaceCondition), b.(*v1.NamespaceCondition), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*v1.NamespaceList)(nil), (*core.NamespaceList)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_NamespaceList_To_core_NamespaceList(a.(*v1.NamespaceList), b.(*core.NamespaceList), scope)
|
||||
}); err != nil {
|
||||
@ -4397,6 +4407,34 @@ func Convert_core_Namespace_To_v1_Namespace(in *core.Namespace, out *v1.Namespac
|
||||
return autoConvert_core_Namespace_To_v1_Namespace(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_NamespaceCondition_To_core_NamespaceCondition(in *v1.NamespaceCondition, out *core.NamespaceCondition, s conversion.Scope) error {
|
||||
out.Type = core.NamespaceConditionType(in.Type)
|
||||
out.Status = core.ConditionStatus(in.Status)
|
||||
out.LastTransitionTime = in.LastTransitionTime
|
||||
out.Reason = in.Reason
|
||||
out.Message = in.Message
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_v1_NamespaceCondition_To_core_NamespaceCondition is an autogenerated conversion function.
|
||||
func Convert_v1_NamespaceCondition_To_core_NamespaceCondition(in *v1.NamespaceCondition, out *core.NamespaceCondition, s conversion.Scope) error {
|
||||
return autoConvert_v1_NamespaceCondition_To_core_NamespaceCondition(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_core_NamespaceCondition_To_v1_NamespaceCondition(in *core.NamespaceCondition, out *v1.NamespaceCondition, s conversion.Scope) error {
|
||||
out.Type = v1.NamespaceConditionType(in.Type)
|
||||
out.Status = v1.ConditionStatus(in.Status)
|
||||
out.LastTransitionTime = in.LastTransitionTime
|
||||
out.Reason = in.Reason
|
||||
out.Message = in.Message
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_core_NamespaceCondition_To_v1_NamespaceCondition is an autogenerated conversion function.
|
||||
func Convert_core_NamespaceCondition_To_v1_NamespaceCondition(in *core.NamespaceCondition, out *v1.NamespaceCondition, s conversion.Scope) error {
|
||||
return autoConvert_core_NamespaceCondition_To_v1_NamespaceCondition(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_NamespaceList_To_core_NamespaceList(in *v1.NamespaceList, out *core.NamespaceList, s conversion.Scope) error {
|
||||
out.ListMeta = in.ListMeta
|
||||
out.Items = *(*[]core.Namespace)(unsafe.Pointer(&in.Items))
|
||||
@ -4441,6 +4479,7 @@ func Convert_core_NamespaceSpec_To_v1_NamespaceSpec(in *core.NamespaceSpec, out
|
||||
|
||||
func autoConvert_v1_NamespaceStatus_To_core_NamespaceStatus(in *v1.NamespaceStatus, out *core.NamespaceStatus, s conversion.Scope) error {
|
||||
out.Phase = core.NamespacePhase(in.Phase)
|
||||
out.Conditions = *(*[]core.NamespaceCondition)(unsafe.Pointer(&in.Conditions))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -4451,6 +4490,7 @@ func Convert_v1_NamespaceStatus_To_core_NamespaceStatus(in *v1.NamespaceStatus,
|
||||
|
||||
func autoConvert_core_NamespaceStatus_To_v1_NamespaceStatus(in *core.NamespaceStatus, out *v1.NamespaceStatus, s conversion.Scope) error {
|
||||
out.Phase = v1.NamespacePhase(in.Phase)
|
||||
out.Conditions = *(*[]v1.NamespaceCondition)(unsafe.Pointer(&in.Conditions))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
26
pkg/apis/core/zz_generated.deepcopy.go
generated
26
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -2191,7 +2191,7 @@ func (in *Namespace) DeepCopyInto(out *Namespace) {
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
out.Status = in.Status
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
@ -2213,6 +2213,23 @@ func (in *Namespace) DeepCopyObject() runtime.Object {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceCondition) DeepCopyInto(out *NamespaceCondition) {
|
||||
*out = *in
|
||||
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceCondition.
|
||||
func (in *NamespaceCondition) DeepCopy() *NamespaceCondition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamespaceCondition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceList) DeepCopyInto(out *NamespaceList) {
|
||||
*out = *in
|
||||
@ -2270,6 +2287,13 @@ func (in *NamespaceSpec) DeepCopy() *NamespaceSpec {
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceStatus) DeepCopyInto(out *NamespaceStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]NamespaceCondition, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,10 @@ load(
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["namespaced_resources_deleter.go"],
|
||||
srcs = [
|
||||
"namespaced_resources_deleter.go",
|
||||
"status_condition_utils.go",
|
||||
],
|
||||
importpath = "k8s.io/kubernetes/pkg/controller/namespace/deletion",
|
||||
deps = [
|
||||
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
||||
|
2321
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
2321
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -2018,6 +2018,24 @@ message Namespace {
|
||||
optional NamespaceStatus status = 3;
|
||||
}
|
||||
|
||||
// NamespaceCondition contains details about state of namespace.
|
||||
message NamespaceCondition {
|
||||
// Type of namespace controller condition.
|
||||
optional string type = 1;
|
||||
|
||||
// Status of the condition, one of True, False, Unknown.
|
||||
optional string status = 2;
|
||||
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
|
||||
|
||||
// +optional
|
||||
optional string reason = 5;
|
||||
|
||||
// +optional
|
||||
optional string message = 6;
|
||||
}
|
||||
|
||||
// NamespaceList is a list of Namespaces.
|
||||
message NamespaceList {
|
||||
// Standard list metadata.
|
||||
@ -2044,6 +2062,12 @@ message NamespaceStatus {
|
||||
// More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
|
||||
// +optional
|
||||
optional string phase = 1;
|
||||
|
||||
// Represents the latest available observations of a namespace's current state.
|
||||
// +optional
|
||||
// +patchMergeKey=type
|
||||
// +patchStrategy=merge
|
||||
repeated NamespaceCondition conditions = 2;
|
||||
}
|
||||
|
||||
// Node is a worker node in Kubernetes.
|
||||
|
@ -994,6 +994,16 @@ func (Namespace) SwaggerDoc() map[string]string {
|
||||
return map_Namespace
|
||||
}
|
||||
|
||||
var map_NamespaceCondition = map[string]string{
|
||||
"": "NamespaceCondition contains details about state of namespace.",
|
||||
"type": "Type of namespace controller condition.",
|
||||
"status": "Status of the condition, one of True, False, Unknown.",
|
||||
}
|
||||
|
||||
func (NamespaceCondition) SwaggerDoc() map[string]string {
|
||||
return map_NamespaceCondition
|
||||
}
|
||||
|
||||
var map_NamespaceList = map[string]string{
|
||||
"": "NamespaceList is a list of Namespaces.",
|
||||
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds",
|
||||
@ -1014,8 +1024,9 @@ func (NamespaceSpec) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_NamespaceStatus = map[string]string{
|
||||
"": "NamespaceStatus is information about the current status of a Namespace.",
|
||||
"phase": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/",
|
||||
"": "NamespaceStatus is information about the current status of a Namespace.",
|
||||
"phase": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/",
|
||||
"conditions": "Represents the latest available observations of a namespace's current state.",
|
||||
}
|
||||
|
||||
func (NamespaceStatus) SwaggerDoc() map[string]string {
|
||||
|
@ -2189,7 +2189,7 @@ func (in *Namespace) DeepCopyInto(out *Namespace) {
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
out.Status = in.Status
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
@ -2211,6 +2211,23 @@ func (in *Namespace) DeepCopyObject() runtime.Object {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceCondition) DeepCopyInto(out *NamespaceCondition) {
|
||||
*out = *in
|
||||
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceCondition.
|
||||
func (in *NamespaceCondition) DeepCopy() *NamespaceCondition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamespaceCondition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceList) DeepCopyInto(out *NamespaceList) {
|
||||
*out = *in
|
||||
@ -2268,6 +2285,13 @@ func (in *NamespaceSpec) DeepCopy() *NamespaceSpec {
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceStatus) DeepCopyInto(out *NamespaceStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]NamespaceCondition, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,15 @@
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"phase": "`Ĩɘ.蘯6ċ"
|
||||
"phase": "`Ĩɘ.蘯6ċ",
|
||||
"conditions": [
|
||||
{
|
||||
"type": "夸eɑeʤ脽ěĂ凗蓏Ŋ蛊ĉy",
|
||||
"status": "Ȋ甞谐颋DžSǡƏS$+½H牗洝尿",
|
||||
"lastTransitionTime": "2956-02-24T15:15:18Z",
|
||||
"reason": "19",
|
||||
"message": "20"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Binary file not shown.
@ -33,4 +33,10 @@ spec:
|
||||
finalizers:
|
||||
- '@Hr鯹)晿'
|
||||
status:
|
||||
conditions:
|
||||
- lastTransitionTime: "2956-02-24T15:15:18Z"
|
||||
message: "20"
|
||||
reason: "19"
|
||||
status: Ȋ甞谐颋DžSǡƏS$+½H牗洝尿
|
||||
type: 夸eɑeʤ脽ěĂ凗蓏Ŋ蛊ĉy
|
||||
phase: '`Ĩɘ.蘯6ċ'
|
||||
|
Loading…
Reference in New Issue
Block a user