Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksoncage committed Mar 17, 2023
1 parent 1a038c8 commit 995f65d
Show file tree
Hide file tree
Showing 86 changed files with 3,199 additions and 974 deletions.
219 changes: 130 additions & 89 deletions master-local/_definitions.json

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchCondition"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchResources"
},
Expand Down Expand Up @@ -414,6 +417,15 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1.Lease"
},
Expand Down Expand Up @@ -1458,12 +1470,6 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1.VolumeNodeResources"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacityList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition"
},
Expand Down
45 changes: 45 additions & 0 deletions master-local/clustertrustbundle-certificates-v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.",
"properties": {
"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",
"type": [
"string",
"null"
],
"enum": [
"certificates.k8s.io/v1alpha1"
]
},
"kind": {
"description": "Kind 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/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"ClusterTrustBundle"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "metadata contains the object metadata."
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec",
"description": "spec contains the signer (if any) and trust anchors."
}
},
"required": [
"spec"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "certificates.k8s.io",
"kind": "ClusterTrustBundle",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
42 changes: 42 additions & 0 deletions master-local/clustertrustbundle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.",
"properties": {
"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",
"type": [
"string",
"null"
]
},
"kind": {
"description": "Kind 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/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"ClusterTrustBundle"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "metadata contains the object metadata."
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec",
"description": "spec contains the signer (if any) and trust anchors."
}
},
"required": [
"spec"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "certificates.k8s.io",
"kind": "ClusterTrustBundle",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.",
"description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects",
"properties": {
"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",
Expand All @@ -8,22 +8,18 @@
"null"
],
"enum": [
"storage.k8s.io/v1beta1"
"certificates.k8s.io/v1alpha1"
]
},
"items": {
"description": "items is the list of CSIStorageCapacity objects.",
"description": "items is a collection of ClusterTrustBundle objects",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity"
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map"
]
},
"kind": {
"description": "Kind 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/sig-architecture/api-conventions.md#types-kinds",
Expand All @@ -32,12 +28,12 @@
"null"
],
"enum": [
"CSIStorageCapacityList"
"ClusterTrustBundleList"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
"description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
"description": "metadata contains the list metadata."
}
},
"required": [
Expand All @@ -46,9 +42,9 @@
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "storage.k8s.io",
"kind": "CSIStorageCapacityList",
"version": "v1beta1"
"group": "certificates.k8s.io",
"kind": "ClusterTrustBundleList",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
Expand Down
48 changes: 48 additions & 0 deletions master-local/clustertrustbundlelist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects",
"properties": {
"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",
"type": [
"string",
"null"
]
},
"items": {
"description": "items is a collection of ClusterTrustBundle objects",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle"
},
"type": [
"array",
"null"
]
},
"kind": {
"description": "Kind 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/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"ClusterTrustBundleList"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
"description": "metadata contains the list metadata."
}
},
"required": [
"items"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "certificates.k8s.io",
"kind": "ClusterTrustBundleList",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
24 changes: 24 additions & 0 deletions master-local/clustertrustbundlespec-certificates-v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"description": "ClusterTrustBundleSpec contains the signer and trust anchors.",
"properties": {
"signerName": {
"description": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.",
"type": [
"string",
"null"
]
},
"trustBundle": {
"description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.",
"type": [
"string",
"null"
]
}
},
"required": [
"trustBundle"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
24 changes: 24 additions & 0 deletions master-local/clustertrustbundlespec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"description": "ClusterTrustBundleSpec contains the signer and trust anchors.",
"properties": {
"signerName": {
"description": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.",
"type": [
"string",
"null"
]
},
"trustBundle": {
"description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.",
"type": [
"string",
"null"
]
}
},
"required": [
"trustBundle"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
60 changes: 0 additions & 60 deletions master-local/csistoragecapacity-storage-v1beta1.json

This file was deleted.

Loading

0 comments on commit 995f65d

Please sign in to comment.