0.0.4 • Published 6 years ago

json-schema-to-markdown-tool v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

JSON-SCHEMA-TO-MARKDOWN-TOOL

Example Output:


Simple Schema

https://example.com/arrays.schema.json

A representation of a person, company, organization, or place

http://json-schema.org/draft-07/schema#

properties

fruits

typeitems.type
arraystring

vegetables

typeitems.$ref
array#/definitions/veggie

definitions

veggie

typerequiredproperties.veggieName.typeproperties.veggieName.descriptionproperties.veggieLike.typeproperties.veggieLike.description
objectveggieName;veggieLikestringThe name of the vegetable.booleanDo I like this vegetable?

Simple Schema 2

http://json-schema.org/draft-06/schema#

properties

billing_address

|$ref |--- #/definitions/address

shipping_address

|allOf |--- 2

allOf

$refproperties.type.enumrequired
#/definitions/address
residential;businesstype

definitions

address

typeproperties.street_address.typeproperties.city.typeproperties.state.typerequired
objectstringstringstringstreet_address;city;state

Kubernetes v1.9.9-standalone/nodelist.json

NodeList is the whole list of all Nodes which have been registered with master.

properties

items

items.x-kubernetes-group-version-kinditems.descriptionitems.properties.status.descriptionitems.properties.status.properties.capacity.additionalProperties.oneOfitems.properties.status.properties.capacity.typeitems.properties.status.properties.capacity.descriptionitems.properties.status.properties.addresses.items.requireditems.properties.status.properties.addresses.items.descriptionitems.properties.status.properties.addresses.items.properties.type.typeitems.properties.status.properties.addresses.items.properties.type.descriptionitems.properties.status.properties.addresses.items.properties.address.typeitems.properties.status.properties.addresses.items.properties.address.descriptionitems.properties.status.properties.addresses.x-kubernetes-patch-merge-keyitems.properties.status.properties.addresses.typeitems.properties.status.properties.addresses.descriptionitems.properties.status.properties.addresses.x-kubernetes-patch-strategyitems.properties.status.properties.images.items.requireditems.properties.status.properties.images.items.descriptionitems.properties.status.properties.images.items.properties.sizeBytes.typeitems.properties.status.properties.images.items.properties.sizeBytes.descriptionitems.properties.status.properties.images.items.properties.sizeBytes.formatitems.properties.status.properties.images.items.properties.names.items.typeitems.properties.status.properties.images.items.properties.names.typeitems.properties.status.properties.images.items.properties.names.descriptionitems.properties.status.properties.images.typeitems.properties.status.properties.images.descriptionitems.properties.status.properties.nodeInfo.requireditems.properties.status.properties.nodeInfo.descriptionitems.properties.status.properties.nodeInfo.properties.kernelVersion.typeitems.properties.status.properties.nodeInfo.properties.kernelVersion.descriptionitems.properties.status.properties.nodeInfo.properties.kubeletVersion.typeitems.properties.status.properties.nodeInfo.properties.kubeletVersion.descriptionitems.properties.status.properties.nodeInfo.properties.containerRuntimeVersion.typeitems.properties.status.properties.nodeInfo.properties.containerRuntimeVersion.descriptionitems.properties.status.properties.nodeInfo.properties.machineID.typeitems.properties.status.properties.nodeInfo.properties.machineID.descriptionitems.properties.status.properties.nodeInfo.properties.kubeProxyVersion.typeitems.properties.status.properties.nodeInfo.properties.kubeProxyVersion.descriptionitems.properties.status.properties.nodeInfo.properties.bootID.typeitems.properties.status.properties.nodeInfo.properties.bootID.descriptionitems.properties.status.properties.nodeInfo.properties.osImage.typeitems.properties.status.properties.nodeInfo.properties.osImage.descriptionitems.properties.status.properties.nodeInfo.properties.architecture.typeitems.properties.status.properties.nodeInfo.properties.architecture.descriptionitems.properties.status.properties.nodeInfo.properties.systemUUID.typeitems.properties.status.properties.nodeInfo.properties.systemUUID.descriptionitems.properties.status.properties.nodeInfo.properties.operatingSystem.typeitems.properties.status.properties.nodeInfo.properties.operatingSystem.descriptionitems.properties.status.properties.volumesAttached.items.requireditems.properties.status.properties.volumesAttached.items.descriptionitems.properties.status.properties.volumesAttached.items.properties.devicePath.typeitems.properties.status.properties.volumesAttached.items.properties.devicePath.descriptionitems.properties.status.properties.volumesAttached.items.properties.name.typeitems.properties.status.properties.volumesAttached.items.properties.name.descriptionitems.properties.status.properties.volumesAttached.typeitems.properties.status.properties.volumesAttached.descriptionitems.properties.status.properties.allocatable.additionalProperties.oneOfitems.properties.status.properties.allocatable.typeitems.properties.status.properties.allocatable.descriptionitems.properties.status.properties.volumesInUse.items.typeitems.properties.status.properties.volumesInUse.typeitems.properties.status.properties.volumesInUse.descriptionitems.properties.status.properties.daemonEndpoints.descriptionitems.properties.status.properties.daemonEndpoints.properties.kubeletEndpoint.requireditems.properties.status.properties.daemonEndpoints.properties.kubeletEndpoint.descriptionitems.properties.status.properties.daemonEndpoints.properties.kubeletEndpoint.properties.Port.typeitems.properties.status.properties.daemonEndpoints.properties.kubeletEndpoint.properties.Port.descriptionitems.properties.status.properties.daemonEndpoints.properties.kubeletEndpoint.properties.Port.formatitems.properties.status.properties.phase.typeitems.properties.status.properties.phase.descriptionitems.properties.status.properties.conditions.items.requireditems.properties.status.properties.conditions.items.descriptionitems.properties.status.properties.conditions.items.properties.status.typeitems.properties.status.properties.conditions.items.properties.status.descriptionitems.properties.status.properties.conditions.items.properties.lastTransitionTime.typeitems.properties.status.properties.conditions.items.properties.lastTransitionTime.formatitems.properties.status.properties.conditions.items.properties.lastHeartbeatTime.typeitems.properties.status.properties.conditions.items.properties.lastHeartbeatTime.formatitems.properties.status.properties.conditions.items.properties.reason.typeitems.properties.status.properties.conditions.items.properties.reason.descriptionitems.properties.status.properties.conditions.items.properties.message.typeitems.properties.status.properties.conditions.items.properties.message.descriptionitems.properties.status.properties.conditions.items.properties.type.typeitems.properties.status.properties.conditions.items.properties.type.descriptionitems.properties.status.properties.conditions.x-kubernetes-patch-merge-keyitems.properties.status.properties.conditions.typeitems.properties.status.properties.conditions.descriptionitems.properties.status.properties.conditions.x-kubernetes-patch-strategyitems.properties.kind.typeitems.properties.kind.descriptionitems.properties.spec.descriptionitems.properties.spec.properties.unschedulable.typeitems.properties.spec.properties.unschedulable.descriptionitems.properties.spec.properties.configSource.x-kubernetes-group-version-kinditems.properties.spec.properties.configSource.descriptionitems.properties.spec.properties.configSource.properties.kind.typeitems.properties.spec.properties.configSource.properties.kind.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.properties.kind.typeitems.properties.spec.properties.configSource.properties.configMapRef.properties.kind.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.properties.name.typeitems.properties.spec.properties.configSource.properties.configMapRef.properties.name.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.properties.namespace.typeitems.properties.spec.properties.configSource.properties.configMapRef.properties.namespace.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.properties.apiVersion.typeitems.properties.spec.properties.configSource.properties.configMapRef.properties.apiVersion.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.properties.fieldPath.typeitems.properties.spec.properties.configSource.properties.configMapRef.properties.fieldPath.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.properties.resourceVersion.typeitems.properties.spec.properties.configSource.properties.configMapRef.properties.resourceVersion.descriptionitems.properties.spec.properties.configSource.properties.configMapRef.properties.uid.typeitems.properties.spec.properties.configSource.properties.configMapRef.properties.uid.descriptionitems.properties.spec.properties.configSource.properties.apiVersion.typeitems.properties.spec.properties.configSource.properties.apiVersion.descriptionitems.properties.spec.properties.taints.items.requireditems.properties.spec.properties.taints.items.descriptionitems.properties.spec.properties.taints.items.properties.key.typeitems.properties.spec.properties.taints.items.properties.key.descriptionitems.properties.spec.properties.taints.items.properties.timeAdded.typeitems.properties.spec.properties.taints.items.properties.timeAdded.formatitems.properties.spec.properties.taints.items.properties.effect.typeitems.properties.spec.properties.taints.items.properties.effect.descriptionitems.properties.spec.properties.taints.items.properties.value.typeitems.properties.spec.properties.taints.items.properties.value.descriptionitems.properties.spec.properties.taints.typeitems.properties.spec.properties.taints.descriptionitems.properties.spec.properties.podCIDR.typeitems.properties.spec.properties.podCIDR.descriptionitems.properties.spec.properties.providerID.typeitems.properties.spec.properties.providerID.descriptionitems.properties.spec.properties.externalID.typeitems.properties.spec.properties.externalID.descriptionitems.properties.apiVersion.typeitems.properties.apiVersion.descriptionitems.properties.metadata.descriptionitems.properties.metadata.properties.ownerReferences.items.requireditems.properties.metadata.properties.ownerReferences.items.descriptionitems.properties.metadata.properties.ownerReferences.items.properties.kind.typeitems.properties.metadata.properties.ownerReferences.items.properties.kind.descriptionitems.properties.metadata.properties.ownerReferences.items.properties.uid.typeitems.properties.metadata.properties.ownerReferences.items.properties.uid.descriptionitems.properties.metadata.properties.ownerReferences.items.properties.apiVersion.typeitems.properties.metadata.properties.ownerReferences.items.properties.apiVersion.descriptionitems.properties.metadata.properties.ownerReferences.items.properties.controller.typeitems.properties.metadata.properties.ownerReferences.items.properties.controller.descriptionitems.properties.metadata.properties.ownerReferences.items.properties.blockOwnerDeletion.typeitems.properties.metadata.properties.ownerReferences.items.properties.blockOwnerDeletion.descriptionitems.properties.metadata.properties.ownerReferences.items.properties.name.typeitems.properties.metadata.properties.ownerReferences.items.properties.name.descriptionitems.properties.metadata.properties.ownerReferences.x-kubernetes-patch-merge-keyitems.properties.metadata.properties.ownerReferences.typeitems.properties.metadata.properties.ownerReferences.descriptionitems.properties.metadata.properties.ownerReferences.x-kubernetes-patch-strategyitems.properties.metadata.properties.uid.typeitems.properties.metadata.properties.uid.descriptionitems.properties.metadata.properties.deletionTimestamp.typeitems.properties.metadata.properties.deletionTimestamp.formatitems.properties.metadata.properties.clusterName.typeitems.properties.metadata.properties.clusterName.descriptionitems.properties.metadata.properties.deletionGracePeriodSeconds.typeitems.properties.metadata.properties.deletionGracePeriodSeconds.descriptionitems.properties.metadata.properties.deletionGracePeriodSeconds.formatitems.properties.metadata.properties.labels.additionalProperties.typeitems.properties.metadata.properties.labels.typeitems.properties.metadata.properties.labels.descriptionitems.properties.metadata.properties.namespace.typeitems.properties.metadata.properties.namespace.descriptionitems.properties.metadata.properties.finalizers.items.typeitems.properties.metadata.properties.finalizers.typeitems.properties.metadata.properties.finalizers.descriptionitems.properties.metadata.properties.finalizers.x-kubernetes-patch-strategyitems.properties.metadata.properties.generation.typeitems.properties.metadata.properties.generation.descriptionitems.properties.metadata.properties.generation.formatitems.properties.metadata.properties.initializers.requireditems.properties.metadata.properties.initializers.descriptionitems.properties.metadata.properties.initializers.properties.result.x-kubernetes-group-version-kinditems.properties.metadata.properties.initializers.properties.result.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.status.typeitems.properties.metadata.properties.initializers.properties.result.properties.status.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.kind.typeitems.properties.metadata.properties.initializers.properties.result.properties.kind.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.code.typeitems.properties.metadata.properties.initializers.properties.result.properties.code.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.code.formatitems.properties.metadata.properties.initializers.properties.result.properties.apiVersion.typeitems.properties.metadata.properties.initializers.properties.result.properties.apiVersion.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.reason.typeitems.properties.metadata.properties.initializers.properties.result.properties.reason.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.kind.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.kind.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.group.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.group.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.name.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.name.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.retryAfterSeconds.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.retryAfterSeconds.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.retryAfterSeconds.formatitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.items.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.items.properties.field.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.items.properties.field.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.items.properties.message.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.items.properties.message.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.items.properties.reason.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.items.properties.reason.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.causes.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.uid.typeitems.properties.metadata.properties.initializers.properties.result.properties.details.properties.uid.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.message.typeitems.properties.metadata.properties.initializers.properties.result.properties.message.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.metadata.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.metadata.properties.continue.typeitems.properties.metadata.properties.initializers.properties.result.properties.metadata.properties.continue.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.metadata.properties.selfLink.typeitems.properties.metadata.properties.initializers.properties.result.properties.metadata.properties.selfLink.descriptionitems.properties.metadata.properties.initializers.properties.result.properties.metadata.properties.resourceVersion.typeitems.properties.metadata.properties.initializers.properties.result.properties.metadata.properties.resourceVersion.descriptionitems.properties.metadata.properties.initializers.properties.pending.items.requireditems.properties.metadata.properties.initializers.properties.pending.items.descriptionitems.properties.metadata.properties.initializers.properties.pending.items.properties.name.typeitems.properties.metadata.properties.initializers.properties.pending.items.properties.name.descriptionitems.properties.metadata.properties.initializers.properties.pending.x-kubernetes-patch-merge-keyitems.properties.metadata.properties.initializers.properties.pending.typeitems.properties.metadata.properties.initializers.properties.pending.descriptionitems.properties.metadata.properties.initializers.properties.pending.x-kubernetes-patch-strategyitems.properties.metadata.properties.resourceVersion.typeitems.properties.metadata.properties.resourceVersion.descriptionitems.properties.metadata.properties.generateName.typeitems.properties.metadata.properties.generateName.descriptionitems.properties.metadata.properties.creationTimestamp.typeitems.properties.metadata.properties.creationTimestamp.formatitems.properties.metadata.properties.annotations.additionalProperties.typeitems.properties.metadata.properties.annotations.typeitems.properties.metadata.properties.annotations.descriptionitems.properties.metadata.properties.selfLink.typeitems.properties.metadata.properties.selfLink.descriptionitems.properties.metadata.properties.name.typeitems.properties.metadata.properties.name.descriptiontypedescription
1Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).NodeStatus is information about the current status of a node.2objectCapacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacitytype;addressNodeAddress contains information for the node's address.stringNode address type, one of Hostname, ExternalIP or InternalIP.stringThe node address.typearray;nullList of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addressesmergenamesDescribe a container imageintegerThe size of the image in bytes.int64string;nullarrayNames by which this image is known. e.g. "gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"array;nullList of container images on this nodemachineID;systemUUID;bootID;kernelVersion;osImage;containerRuntimeVersion;kubeletVersion;kubeProxyVersion;operatingSystem;architectureNodeSystemInfo is a set of ids/uuids to uniquely identify the node.stringKernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).stringKubelet Version reported by the node.stringContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).stringMachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.htmlstringKubeProxy Version reported by the node.stringBoot ID reported by the node.stringOS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).stringThe Architecture reported by the nodestringSystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.htmlstringThe Operating System reported by the nodename;devicePathAttachedVolume describes a volume attached to a nodestringDevicePath represents the device path where the volume should be availablestringName of the attached volumearray;nullList of volumes that are attached to the node.2objectAllocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.string;nullarray;nullList of attachable volumes in use (mounted) by the node.NodeDaemonEndpoints lists ports opened by daemons running on the Node.PortDaemonEndpoint contains information about a single Daemon endpoint.integerPort number of the given endpoint.int32string;nullNodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.type;statusNodeCondition contains condition information for a node.stringStatus of the condition, one of True, False, Unknown.string;nulldate-timestring;nulldate-timestring;null(brief) reason for the condition's last transition.string;nullHuman readable message indicating details about last transition.stringType of node condition.typearray;nullConditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#conditionmergestring;nullKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kindsNodeSpec describes the attributes that a node is created with.booleanUnschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration1NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.string;nullKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kindsObjectReference contains enough information to let you inspect or modify the referred object.string;nullKind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kindsstring;nullName of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesstring;nullNamespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/string;nullAPI version of the referent.string;nullIf referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers2. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers2" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.string;nullSpecific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistencystring;nullUID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uidsstring;nullAPIVersion 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/api-conventions.md#resourceskey;effectThe node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.stringRequired. The taint key to be applied to a node.string;nulldate-timestringRequired. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.string;nullRequired. The taint value corresponding to the taint key.array;nullIf specified, the node's taints.string;nullPodCIDR represents the pod IP range assigned to the node.string;nullID of the node assigned by the cloud provider in the format: ://string;nullExternal ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.string;nullAPIVersion 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/api-conventions.md#resourcesObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.apiVersion;kind;name;uidOwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.stringKind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kindsstringUID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uidsstringAPI version of the referent.booleanIf true, this reference points to the managing controller.booleanIf true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.stringName of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#namesuidarray;nullList of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.mergestring;nullUID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uidsstring;nulldate-timestring;nullThe name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.integerNumber of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.int64string;nullobjectMap of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labelsstring;nullNamespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespacesstring;nullarray;nullMust be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.mergeintegerA sequence number representing a specific generation of the desired state. Populated by the system. Read-only.int64pendingInitializers tracks the progress of initialization.1Status is a return value for calls that don't return other objects.string;nullStatus of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-statusstring;nullKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kindsintegerSuggested HTTP return code for this status, 0 if not set.int32string;nullAPIVersion 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/api-conventions.md#resourcesstring;nullA machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.string;nullThe kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kindsstring;nullThe group attribute of the resource associated with the status StatusReason.string;nullThe name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).integerIf specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.int32StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.string;nullThe field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.Examples: "name" - the field "name" on the current resource "items0.name" - the field "name" on the first array entry in "items"string;nullA human-readable description of the cause of the error. This field may be presented as-is to a reader.string;nullA machine-readable description of the cause of the error. If this value is empty there is no information available.array;nullThe Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.string;nullUID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uidsstring;nullA human-readable description of the status of this operation.ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.string;nullcontinue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response.string;nullselfLink is a URL representing this object. Populated by the system. Read-only.string;nullString that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistencynameInitializer is information about an initializer that has not yet completed.stringname of the process that is responsible for initializing this object.namearrayPending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients.mergestring;nullAn opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistencystring;nullGenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotencystring;nulldate-timestring;nullobjectAnnotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotationsstring;nullSelfLink is a URL representing this object. Populated by the system. Read-only.string;nullName must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#namesarray;nullList of nodes

items.x-kubernetes-group-version-kind

kindversiongroup
Nodev1

items.properties.status.properties.capacity.additionalProperties.oneOf

|type |--- string;null integer

items.properties.status.properties.allocatable.additionalProperties.oneOf

|type |--- string;null integer

items.properties.spec.properties.configSource.x-kubernetes-group-version-kind

kindversiongroup
NodeConfigSourcev1

items.properties.metadata.properties.initializers.properties.result.x-kubernetes-group-version-kind

kindversiongroup
Statusv1

kind

typedescription
string;nullKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

apiVersion

typedescription
string;nullAPIVersion 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/api-conventions.md#resources

metadata

descriptionproperties.continue.typeproperties.continue.descriptionproperties.selfLink.typeproperties.selfLink.descriptionproperties.resourceVersion.typeproperties.resourceVersion.description
ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.string;nullcontinue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response.string;nullselfLink is a URL representing this object. Populated by the system. Read-only.string;nullString that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

definitions


Contributing

  • Clone the repo and run npm install.
  • Create a new feature branch: git checkout -b feature/your-feature-branch-name.
  • Write a test in the __tests__ folder for your feature.
  • Write the code to get the test passing, running npm run test.
  • Push your branch up and submit a pull request.

Note: I have configured a launch.json for vscode that should allow for playing around with anything in index.ts and hitting f5 to debug.

Publishing

  • npm version patch
  • npm publish