Struct k8s_openapi::api::certificates::v1::CertificateSigningRequestStatus
source · pub struct CertificateSigningRequestStatus {
pub certificate: Option<ByteString>,
pub conditions: Option<Vec<CertificateSigningRequestCondition>>,
}
Expand description
CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.
Fields§
§certificate: Option<ByteString>
certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.
If the certificate signing request is denied, a condition of type “Denied” is added and this field remains empty. If the signer cannot issue the certificate, a condition of type “Failed” is added and this field remains empty.
Validation requirements:
- certificate must contain one or more PEM blocks.
- All PEM blocks must have the “CERTIFICATE” label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.
- Non-PEM content may appear before or after the “CERTIFICATE” PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468.
If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.
The certificate is encoded in PEM format.
When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:
base64( —–BEGIN CERTIFICATE—– … —–END CERTIFICATE—– )
conditions: Option<Vec<CertificateSigningRequestCondition>>
conditions applied to the request. Known conditions are “Approved”, “Denied”, and “Failed”.
Trait Implementations§
source§impl Clone for CertificateSigningRequestStatus
impl Clone for CertificateSigningRequestStatus
source§fn clone(&self) -> CertificateSigningRequestStatus
fn clone(&self) -> CertificateSigningRequestStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl DeepMerge for CertificateSigningRequestStatus
impl DeepMerge for CertificateSigningRequestStatus
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for CertificateSigningRequestStatus
impl Default for CertificateSigningRequestStatus
source§fn default() -> CertificateSigningRequestStatus
fn default() -> CertificateSigningRequestStatus
source§impl<'de> Deserialize<'de> for CertificateSigningRequestStatus
impl<'de> Deserialize<'de> for CertificateSigningRequestStatus
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl JsonSchema for CertificateSigningRequestStatus
impl JsonSchema for CertificateSigningRequestStatus
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for CertificateSigningRequestStatus
impl PartialEq for CertificateSigningRequestStatus
source§fn eq(&self, other: &CertificateSigningRequestStatus) -> bool
fn eq(&self, other: &CertificateSigningRequestStatus) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CertificateSigningRequestStatus
Auto Trait Implementations§
impl Freeze for CertificateSigningRequestStatus
impl RefUnwindSafe for CertificateSigningRequestStatus
impl Send for CertificateSigningRequestStatus
impl Sync for CertificateSigningRequestStatus
impl Unpin for CertificateSigningRequestStatus
impl UnwindSafe for CertificateSigningRequestStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)