Merge pull request #100684 from Jefftree/atomic

Tag structs as atomic
This commit is contained in:
Kubernetes Prow Robot
2021-04-09 05:20:12 -07:00
committed by GitHub
21 changed files with 130 additions and 23 deletions

View File

@@ -256,14 +256,12 @@ API rule violation: list_type_missing,k8s.io/api/rbac/v1beta1,Role,Rules
API rule violation: list_type_missing,k8s.io/api/rbac/v1beta1,RoleBinding,Subjects
API rule violation: list_type_missing,k8s.io/api/storage/v1,CSINodeDriver,TopologyKeys
API rule violation: list_type_missing,k8s.io/api/storage/v1,CSINodeSpec,Drivers
API rule violation: list_type_missing,k8s.io/api/storage/v1,StorageClass,AllowedTopologies
API rule violation: list_type_missing,k8s.io/api/storage/v1,StorageClass,MountOptions
API rule violation: list_type_missing,k8s.io/api/storage/v1alpha1,CSIStorageCapacityList,Items
API rule violation: list_type_missing,k8s.io/api/storage/v1beta1,CSIDriverSpec,VolumeLifecycleModes
API rule violation: list_type_missing,k8s.io/api/storage/v1beta1,CSINodeDriver,TopologyKeys
API rule violation: list_type_missing,k8s.io/api/storage/v1beta1,CSINodeSpec,Drivers
API rule violation: list_type_missing,k8s.io/api/storage/v1beta1,CSIStorageCapacityList,Items
API rule violation: list_type_missing,k8s.io/api/storage/v1beta1,StorageClass,AllowedTopologies
API rule violation: list_type_missing,k8s.io/api/storage/v1beta1,StorageClass,MountOptions
API rule violation: list_type_missing,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,ConversionRequest,Objects
API rule violation: list_type_missing,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,ConversionResponse,ConvertedObjects

View File

@@ -2833,7 +2833,8 @@
"kind",
"name"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler": {
"description": "configuration of a horizontal pod autoscaler.",
@@ -5738,7 +5739,8 @@
"required": [
"key"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.ConfigMapList": {
"description": "ConfigMapList is a resource containing a list of ConfigMap objects.",
@@ -6275,7 +6277,8 @@
"required": [
"ip"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.EndpointPort": {
"description": "EndpointPort is a tuple that describes a single port.",
@@ -6301,7 +6304,8 @@
"required": [
"port"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.EndpointSubset": {
"description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]",
@@ -7429,7 +7433,8 @@
"type": "string"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.LocalVolumeSource": {
"description": "Local represents directly-attached storage with node affinity (Beta feature)",
@@ -7790,7 +7795,8 @@
"required": [
"nodeSelectorTerms"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.NodeSelectorRequirement": {
"description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
@@ -7835,7 +7841,8 @@
"type": "array"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.NodeSpec": {
"description": "NodeSpec describes the attributes that a node is created with.",
@@ -8026,7 +8033,8 @@
"required": [
"fieldPath"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.ObjectReference": {
"description": "ObjectReference contains enough information to let you inspect or modify the referred object.",
@@ -8060,7 +8068,8 @@
"type": "string"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.PersistentVolume": {
"description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes",
@@ -9593,7 +9602,8 @@
"required": [
"resource"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.ResourceQuota": {
"description": "ResourceQuota sets aggregate quota restrictions enforced per namespace",
@@ -9862,7 +9872,8 @@
"type": "array"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.ScopedResourceSelectorRequirement": {
"description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.",
@@ -9995,7 +10006,8 @@
"required": [
"key"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.SecretList": {
"description": "SecretList is a list of Secret.",
@@ -10065,7 +10077,8 @@
"type": "string"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.SecretVolumeSource": {
"description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.",
@@ -10673,7 +10686,8 @@
"type": "array"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.TopologySpreadConstraint": {
"description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.",
@@ -10723,7 +10737,8 @@
"kind",
"name"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.core.v1.Volume": {
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
@@ -11101,7 +11116,8 @@
"type": "string"
}
},
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.discovery.v1.EndpointSlice": {
"description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.",
@@ -14653,7 +14669,8 @@
"kind",
"name"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.rbac.v1.Subject": {
"description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.",
@@ -14679,7 +14696,8 @@
"kind",
"name"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.api.rbac.v1alpha1.AggregationRule": {
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
@@ -15940,7 +15958,8 @@
"items": {
"$ref": "#/definitions/io.k8s.api.core.v1.TopologySelectorTerm"
},
"type": "array"
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
@@ -16757,7 +16776,8 @@
"items": {
"$ref": "#/definitions/io.k8s.api.core.v1.TopologySelectorTerm"
},
"type": "array"
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
@@ -19082,7 +19102,8 @@
"name",
"uid"
],
"type": "object"
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"io.k8s.apimachinery.pkg.apis.meta.v1.Patch": {
"description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.",