-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kubernetes-commit: 2e4b637bf8f304c5264b93cced659c2bcbb66733
- Loading branch information
1 parent
27a32d4
commit 7d2e0cc
Showing
9 changed files
with
1,242 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
Copyright The Kubernetes Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package v1alpha1 | ||
|
||
// This file contains a collection of methods that can be used from go-restful to | ||
// generate Swagger API documentation for its models. Please read this PR for more | ||
// information on the implementation: https://github.com/emicklei/go-restful/pull/215 | ||
// | ||
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if | ||
// they are on one line! For multiple line or blocks that you want to ignore use ---. | ||
// Any context after a --- is ignored. | ||
// | ||
// Those methods can be generated by using hack/update-codegen.sh | ||
|
||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. | ||
var map_ClusterTrustBundle = map[string]string{ | ||
"": "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.", | ||
"metadata": "metadata contains the object metadata.", | ||
"spec": "spec contains the signer (if any) and trust anchors.", | ||
} | ||
|
||
func (ClusterTrustBundle) SwaggerDoc() map[string]string { | ||
return map_ClusterTrustBundle | ||
} | ||
|
||
var map_ClusterTrustBundleList = map[string]string{ | ||
"": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", | ||
"metadata": "metadata contains the list metadata.", | ||
"items": "items is a collection of ClusterTrustBundle objects", | ||
} | ||
|
||
func (ClusterTrustBundleList) SwaggerDoc() map[string]string { | ||
return map_ClusterTrustBundleList | ||
} | ||
|
||
var map_ClusterTrustBundleSpec = map[string]string{ | ||
"": "ClusterTrustBundleSpec contains the signer and trust anchors.", | ||
"signerName": "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.", | ||
"trustBundle": "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.", | ||
} | ||
|
||
func (ClusterTrustBundleSpec) SwaggerDoc() map[string]string { | ||
return map_ClusterTrustBundleSpec | ||
} | ||
|
||
// AUTO-GENERATED FUNCTIONS END HERE |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
certificates/v1alpha1/zz_generated.prerelease-lifecycle.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
testdata/HEAD/certificates.k8s.io.v1alpha1.ClusterTrustBundle.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"kind": "ClusterTrustBundle", | ||
"apiVersion": "certificates.k8s.io/v1alpha1", | ||
"metadata": { | ||
"name": "nameValue", | ||
"generateName": "generateNameValue", | ||
"namespace": "namespaceValue", | ||
"selfLink": "selfLinkValue", | ||
"uid": "uidValue", | ||
"resourceVersion": "resourceVersionValue", | ||
"generation": 7, | ||
"creationTimestamp": "2008-01-01T01:01:01Z", | ||
"deletionTimestamp": "2009-01-01T01:01:01Z", | ||
"deletionGracePeriodSeconds": 10, | ||
"labels": { | ||
"labelsKey": "labelsValue" | ||
}, | ||
"annotations": { | ||
"annotationsKey": "annotationsValue" | ||
}, | ||
"ownerReferences": [ | ||
{ | ||
"apiVersion": "apiVersionValue", | ||
"kind": "kindValue", | ||
"name": "nameValue", | ||
"uid": "uidValue", | ||
"controller": true, | ||
"blockOwnerDeletion": true | ||
} | ||
], | ||
"finalizers": [ | ||
"finalizersValue" | ||
], | ||
"managedFields": [ | ||
{ | ||
"manager": "managerValue", | ||
"operation": "operationValue", | ||
"apiVersion": "apiVersionValue", | ||
"time": "2004-01-01T01:01:01Z", | ||
"fieldsType": "fieldsTypeValue", | ||
"fieldsV1": {}, | ||
"subresource": "subresourceValue" | ||
} | ||
] | ||
}, | ||
"spec": { | ||
"signerName": "signerNameValue", | ||
"trustBundle": "trustBundleValue" | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.