Class ClusterTrustBundleSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.certificates.v1alpha1.ClusterTrustBundleSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ClusterTrustBundleSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ClusterTrustBundleSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ClusterTrustBundleSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ClusterTrustBundleSpec contains the signer and trust anchors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterTrustBundleSpec()No args constructor for use in serializationClusterTrustBundleSpec(String signerName, String trustBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterTrustBundleSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetSignerName()signerName indicates the associated signer, if any.StringgetTrustBundle()trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetSignerName(String signerName)signerName indicates the associated signer, if any.voidsetTrustBundle(String trustBundle)trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.ClusterTrustBundleSpecBuildertoBuilder()
-
-
-
Method Detail
-
getSignerName
public String getSignerName()
signerName indicates the associated signer, if any.In 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.
If 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`.
If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
-
setSignerName
public void setSignerName(String signerName)
signerName indicates the associated signer, if any.In 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.
If 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`.
If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
-
getTrustBundle
public String getTrustBundle()
trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.The 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.
Users 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.
-
setTrustBundle
public void setTrustBundle(String trustBundle)
trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.The 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.
Users 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.
-
edit
public ClusterTrustBundleSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ClusterTrustBundleSpecBuilder>
-
toBuilder
public ClusterTrustBundleSpecBuilder toBuilder()
-
-