1package v1
2
3import (
4 "strings"
5 "time"
6)
7
8// A Certificate resource should be created to ensure an up to date and signed
9// X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.
10//
11// The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).
12#Certificate: {
13 _embeddedResource
14
15 // APIVersion defines the versioned schema of this representation of an object.
16 // Servers should convert recognized schemas to the latest internal value, and
17 // may reject unrecognized values.
18 // More info:
19 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
20 apiVersion?: string
21
22 // Kind is a string value representing the REST resource this object represents.
23 // Servers may infer this from the endpoint the client submits requests to.
24 // Cannot be updated.
25 // In CamelCase.
26 // More info:
27 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
28 kind?: string
29 metadata?: {}
30
31 // Specification of the desired state of the Certificate resource.
32 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
33 spec?: {
34 // Defines extra output formats of the private key and signed certificate chain
35 // to be written to this Certificate's target Secret.
36 additionalOutputFormats?: [...{
37 // Type is the name of the format type that should be written to the
38 // Certificate's target Secret.
39 type!: "DER" | "CombinedPEM"
40 }]
41
42 // Requested common name X509 certificate subject attribute.
43 // More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
44 // NOTE: TLS clients will ignore this value when any subject alternative name is
45 // set (see https://tools.ietf.org/html/rfc6125#section-6.4.4).
46 //
47 // Should have a length of 64 characters or fewer to avoid generating invalid CSRs.
48 // Cannot be set if the `literalSubject` field is set.
49 commonName?: string
50
51 // Requested DNS subject alternative names.
52 dnsNames?: [...string]
53
54 // Requested 'duration' (i.e. lifetime) of the Certificate. Note that the
55 // issuer may choose to ignore the requested duration, just like any other
56 // requested attribute.
57 //
58 // If unset, this defaults to 90 days.
59 // Minimum accepted duration is 1 hour.
60 // Value must be in units accepted by Go time.ParseDuration
61 // https://golang.org/pkg/time/#ParseDuration.
62 duration?: string
63
64 // Requested email subject alternative names.
65 emailAddresses?: [...string]
66
67 // Whether the KeyUsage and ExtKeyUsage extensions should be set in the encoded CSR.
68 //
69 // This option defaults to true, and should only be disabled if the target
70 // issuer does not support CSRs with these X509 KeyUsage/ ExtKeyUsage extensions.
71 encodeUsagesInRequest?: bool
72
73 // Requested IP address subject alternative names.
74 ipAddresses?: [...string]
75
76 // Requested basic constraints isCA value.
77 // The isCA value is used to set the `isCA` field on the created CertificateRequest
78 // resources. Note that the issuer may choose to ignore the requested isCA value, just
79 // like any other requested attribute.
80 //
81 // If true, this will automatically add the `cert sign` usage to the list
82 // of requested `usages`.
83 isCA?: bool
84
85 // Reference to the issuer responsible for issuing the certificate.
86 // If the issuer is namespace-scoped, it must be in the same namespace
87 // as the Certificate. If the issuer is cluster-scoped, it can be used
88 // from any namespace.
89 //
90 // The `name` field of the reference must always be specified.
91 issuerRef!: {
92 // Group of the issuer being referred to.
93 // Defaults to 'cert-manager.io'.
94 group?: string
95
96 // Kind of the issuer being referred to.
97 // Defaults to 'Issuer'.
98 kind?: string
99
100 // Name of the issuer being referred to.
101 name!: string
102 }
103
104 // Additional keystore output formats to be stored in the Certificate's Secret.
105 keystores?: {
106 // JKS configures options for storing a JKS keystore in the
107 // `spec.secretName` Secret resource.
108 jks?: {
109 // Alias specifies the alias of the key in the keystore, required by the JKS format.
110 // If not provided, the default alias `certificate` will be used.
111 alias?: string
112
113 // Create enables JKS keystore creation for the Certificate.
114 // If true, a file named `keystore.jks` will be created in the target
115 // Secret resource, encrypted using the password stored in
116 // `passwordSecretRef` or `password`.
117 // The keystore file will be updated immediately.
118 // If the issuer provided a CA certificate, a file named `truststore.jks`
119 // will also be created in the target Secret resource, encrypted using the
120 // password stored in `passwordSecretRef`
121 // containing the issuing Certificate Authority
122 create!: bool
123
124 // Password provides a literal password used to encrypt the JKS keystore.
125 // Mutually exclusive with passwordSecretRef.
126 // One of password or passwordSecretRef must provide a password with a non-zero length.
127 password?: string
128
129 // PasswordSecretRef is a reference to a non-empty key in a Secret resource
130 // containing the password used to encrypt the JKS keystore.
131 // Mutually exclusive with password.
132 // One of password or passwordSecretRef must provide a password with a non-zero length.
133 passwordSecretRef?: {
134 // The key of the entry in the Secret resource's `data` field to be used.
135 // Some instances of this field may be defaulted, in others it may be
136 // required.
137 key?: string
138
139 // Name of the resource being referred to.
140 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
141 name!: string
142 }
143 }
144
145 // PKCS12 configures options for storing a PKCS12 keystore in the
146 // `spec.secretName` Secret resource.
147 pkcs12?: {
148 // Create enables PKCS12 keystore creation for the Certificate.
149 // If true, a file named `keystore.p12` will be created in the target
150 // Secret resource, encrypted using the password stored in
151 // `passwordSecretRef` or in `password`.
152 // The keystore file will be updated immediately.
153 // If the issuer provided a CA certificate, a file named `truststore.p12` will
154 // also be created in the target Secret resource, encrypted using the
155 // password stored in `passwordSecretRef` containing the issuing Certificate
156 // Authority
157 create!: bool
158
159 // Password provides a literal password used to encrypt the PKCS#12 keystore.
160 // Mutually exclusive with passwordSecretRef.
161 // One of password or passwordSecretRef must provide a password with a non-zero length.
162 password?: string
163
164 // PasswordSecretRef is a reference to a non-empty key in a Secret resource
165 // containing the password used to encrypt the PKCS#12 keystore.
166 // Mutually exclusive with password.
167 // One of password or passwordSecretRef must provide a password with a non-zero length.
168 passwordSecretRef?: {
169 // The key of the entry in the Secret resource's `data` field to be used.
170 // Some instances of this field may be defaulted, in others it may be
171 // required.
172 key?: string
173
174 // Name of the resource being referred to.
175 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
176 name!: string
177 }
178
179 // Profile specifies the key and certificate encryption algorithms and the HMAC algorithm
180 // used to create the PKCS12 keystore. Default value is `LegacyRC2` for backward compatibility.
181 //
182 // If provided, allowed values are:
183 // `LegacyRC2`: Deprecated. Not supported by default in OpenSSL 3 or Java 20.
184 // `LegacyDES`: Less secure algorithm. Use this option for maximal compatibility.
185 // `Modern2023`: Secure algorithm. Use this option in case you have to always use secure algorithms
186 // (e.g., because of company policy). Please note that the security of the
187 // algorithm is not that important
188 // in reality, because the unencrypted certificate and private key are also stored in the Secret.
189 // `Modern2026`: Encodes PKCS#12 files using algorithms that are considered modern as of 2026.
190 // Private keys and certificates are encrypted using PBES2 with PBKDF2-HMAC-SHA-256 and AES-256-CBC.
191 // The MAC algorithm is PBMAC1 with PBKDF2-HMAC-SHA-256 and HMAC-SHA256.
192 // Files produced with this profile can be read by OpenSSL 3.4.0 and higher, Java 26 and higher,
193 // or with Java using compatible versions of Bouncy Castle. Meets FIPS 140-3 requirements.
194 profile?: "LegacyRC2" | "LegacyDES" | "Modern2023" | "Modern2026"
195 }
196 }
197
198 // Requested X.509 certificate subject, represented using the LDAP "String
199 // Representation of a Distinguished Name" [1].
200 // Important: the LDAP string format also specifies the order of the attributes
201 // in the subject, this is important when issuing certs for LDAP authentication.
202 // Example: `CN=foo,DC=corp,DC=example,DC=com`
203 // More info [1]: https://datatracker.ietf.org/doc/html/rfc4514
204 // More info: https://github.com/cert-manager/cert-manager/issues/3203
205 // More info: https://github.com/cert-manager/cert-manager/issues/4424
206 //
207 // Cannot be set if the `subject` or `commonName` field is set.
208 literalSubject?: string
209
210 // x.509 certificate NameConstraint extension which MUST NOT be used in a non-CA certificate.
211 // More Info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.10
212 //
213 // This is an Alpha Feature and is only enabled with the
214 // `--feature-gates=NameConstraints=true` option set on both
215 // the controller and webhook components.
216 nameConstraints?: {
217 // if true then the name constraints are marked critical.
218 critical?: bool
219
220 // Excluded contains the constraints which must be disallowed. Any name matching a
221 // restriction in the excluded field is invalid regardless
222 // of information appearing in the permitted
223 excluded?: {
224 // DNSDomains is a list of DNS domains that are permitted or excluded.
225 dnsDomains?: [...string]
226
227 // EmailAddresses is a list of Email Addresses that are permitted or excluded.
228 emailAddresses?: [...string]
229
230 // IPRanges is a list of IP Ranges that are permitted or excluded.
231 // This should be a valid CIDR notation.
232 ipRanges?: [...string]
233
234 // URIDomains is a list of URI domains that are permitted or excluded.
235 uriDomains?: [...string]
236 }
237
238 // Permitted contains the constraints in which the names must be located.
239 permitted?: {
240 // DNSDomains is a list of DNS domains that are permitted or excluded.
241 dnsDomains?: [...string]
242
243 // EmailAddresses is a list of Email Addresses that are permitted or excluded.
244 emailAddresses?: [...string]
245
246 // IPRanges is a list of IP Ranges that are permitted or excluded.
247 // This should be a valid CIDR notation.
248 ipRanges?: [...string]
249
250 // URIDomains is a list of URI domains that are permitted or excluded.
251 uriDomains?: [...string]
252 }
253 }
254
255 // `otherNames` is an escape hatch for SAN that allows any type. We currently
256 // restrict the support to string like otherNames, cf RFC 5280 p 37
257 // Any UTF8 String valued otherName can be passed with by setting the keys oid:
258 // x.x.x.x and UTF8Value: somevalue for `otherName`.
259 // Most commonly this would be UPN set with oid: 1.3.6.1.4.1.311.20.2.3
260 // You should ensure that any OID passed is valid for the UTF8String type as we
261 // do not explicitly validate this.
262 otherNames?: [...{
263 // OID is the object identifier for the otherName SAN.
264 // The object identifier must be expressed as a dotted string, for
265 // example, "1.2.840.113556.1.4.221".
266 oid?: string
267
268 // utf8Value is the string value of the otherName SAN.
269 // The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
270 utf8Value?: string
271 }]
272
273 // Private key options. These include the key algorithm and size, the used
274 // encoding and the rotation policy.
275 privateKey?: {
276 // Algorithm is the private key algorithm of the corresponding private key
277 // for this certificate.
278 //
279 // If provided, allowed values are either `RSA`, `ECDSA` or `Ed25519`.
280 // If `algorithm` is specified and `size` is not provided,
281 // key size of 2048 will be used for `RSA` key algorithm and
282 // key size of 256 will be used for `ECDSA` key algorithm.
283 // key size is ignored when using the `Ed25519` key algorithm.
284 algorithm?: "RSA" | "ECDSA" | "Ed25519"
285
286 // The private key cryptography standards (PKCS) encoding for this
287 // certificate's private key to be encoded in.
288 //
289 // If provided, allowed values are `PKCS1` and `PKCS8` standing for PKCS#1
290 // and PKCS#8, respectively.
291 // Defaults to `PKCS1` if not specified.
292 encoding?: "PKCS1" | "PKCS8"
293
294 // RotationPolicy controls how private keys should be regenerated when a
295 // re-issuance is being processed.
296 //
297 // If set to `Never`, a private key will only be generated if one does not
298 // already exist in the target `spec.secretName`. If one does exist but it
299 // does not have the correct algorithm or size, a warning will be raised
300 // to await user intervention.
301 // If set to `Always`, a private key matching the specified requirements
302 // will be generated whenever a re-issuance occurs.
303 // Default is `Always`.
304 // The default was changed from `Never` to `Always` in cert-manager >=v1.18.0.
305 rotationPolicy?: "Never" | "Always"
306
307 // Size is the key bit size of the corresponding private key for this certificate.
308 //
309 // If `algorithm` is set to `RSA`, valid values are `2048`, `4096` or `8192`,
310 // and will default to `2048` if not specified.
311 // If `algorithm` is set to `ECDSA`, valid values are `256`, `384` or `521`,
312 // and will default to `256` if not specified.
313 // If `algorithm` is set to `Ed25519`, Size is ignored.
314 // No other values are allowed.
315 size?: int
316 }
317
318 // How long before the currently issued certificate's expiry cert-manager should
319 // renew the certificate. For example, if a certificate is valid for 60 minutes,
320 // and `renewBefore=10m`, cert-manager will begin to attempt to renew the certificate
321 // 50 minutes after it was issued (i.e. when there are 10 minutes remaining until
322 // the certificate is no longer valid).
323 //
324 // NOTE: The actual lifetime of the issued certificate is used to determine the
325 // renewal time. If an issuer returns a certificate with a different lifetime than
326 // the one requested, cert-manager will use the lifetime of the issued certificate.
327 //
328 // If unset, this defaults to 1/3 of the issued certificate's lifetime.
329 // Minimum accepted value is 5 minutes.
330 // Value must be in units accepted by Go time.ParseDuration
331 // https://golang.org/pkg/time/#ParseDuration.
332 // Cannot be set if the `renewBeforePercentage` field is set.
333 renewBefore?: string
334
335 // `renewBeforePercentage` is like `renewBefore`, except it is a relative percentage
336 // rather than an absolute duration. For example, if a certificate is valid for 60
337 // minutes, and `renewBeforePercentage=25`, cert-manager will begin to attempt to
338 // renew the certificate 45 minutes after it was issued (i.e. when there are 15
339 // minutes (25%) remaining until the certificate is no longer valid).
340 //
341 // NOTE: The actual lifetime of the issued certificate is used to determine the
342 // renewal time. If an issuer returns a certificate with a different lifetime than
343 // the one requested, cert-manager will use the lifetime of the issued certificate.
344 //
345 // Value must be an integer in the range (0,100). The minimum effective
346 // `renewBefore` derived from the `renewBeforePercentage` and `duration` fields is 5
347 // minutes.
348 // Cannot be set if the `renewBefore` field is set.
349 renewBeforePercentage?: int32 & int
350
351 // `renewal` allows configuration of how your certificate is renewed. If the policy mentioned is
352 // `RenewBefore` then the controller respects `renewBefore` and `renewBeforePercentage`.
353 renewal?: {
354 // `policy` must be one of `Disabled`, `RenewBefore`.
355 policy?: "RenewBefore" | "Disabled"
356
357 // `windows` mentions the behavior of when the renewal must happen.
358 windows?: [...{
359 // `cron` is a cron compliant string to allow when the renewal should be
360 // allowed. Format is as shown below:
361 // * * * * *
362 // | | | | |
363 // | | | | day of the week (0–6) (Sunday to Saturday;
364 // | | | month (1–12) 7 is also Sunday on some systems)
365 // | | day of the month (1–31)
366 // | hour (0–23)
367 // minute (0–59)
368 cron!: strings.MinRunes(
369 1,
370 )
371
372 // `timezone` is IANA compliant timezone. For example America/Denver.
373 // If this field is not set, timezone is treated as UTC.
374 timezone?: strings.MinRunes(
375 1,
376 )
377
378 // `windowDuration` is how long the cron definition is active for.
379 // Value must be in units accepted by Go time.ParseDuration
380 // https://golang.org/pkg/time/#ParseDuration.
381 windowDuration!: =~"^([0-9]+(\\.[0-9]+)?(s|m|h))+$"
382 }]
383 }
384
385 // The maximum number of CertificateRequest revisions that are maintained in
386 // the Certificate's history. Each revision represents a single `CertificateRequest`
387 // created by this Certificate, either when it was created, renewed, or Spec
388 // was changed. Revisions will be removed by oldest first if the number of
389 // revisions exceeds this number.
390 //
391 // If set, revisionHistoryLimit must be a value of `1` or greater.
392 // Default value is `1`.
393 revisionHistoryLimit?: int32 & int
394
395 // Name of the Secret resource that will be automatically created and
396 // managed by this Certificate resource. It will be populated with a
397 // private key and certificate, signed by the denoted issuer. The Secret
398 // resource lives in the same namespace as the Certificate resource.
399 secretName!: string
400
401 // Defines annotations and labels to be copied to the Certificate's Secret.
402 // Labels and annotations on the Secret will be changed as they appear on the
403 // SecretTemplate when added or removed. SecretTemplate annotations are added
404 // in conjunction with, and cannot overwrite, the base set of annotations
405 // cert-manager sets on the Certificate's Secret.
406 secretTemplate?: {
407 // Annotations is a key value map to be copied to the target Kubernetes Secret.
408 annotations?: [string]: string
409
410 // Labels is a key value map to be copied to the target Kubernetes Secret.
411 labels?: [string]: string
412 }
413
414 // Signature algorithm to use.
415 // Allowed values for RSA keys: SHA256WithRSA, SHA384WithRSA, SHA512WithRSA.
416 // Allowed values for ECDSA keys: ECDSAWithSHA256, ECDSAWithSHA384, ECDSAWithSHA512.
417 // Allowed values for Ed25519 keys: PureEd25519.
418 signatureAlgorithm?: "SHA256WithRSA" |
419 "SHA384WithRSA" |
420 "SHA512WithRSA" |
421 "ECDSAWithSHA256" |
422 "ECDSAWithSHA384" |
423 "ECDSAWithSHA512" |
424 "PureEd25519"
425
426 // Requested set of X509 certificate subject attributes.
427 // More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
428 //
429 // The common name attribute is specified separately in the `commonName` field.
430 // Cannot be set if the `literalSubject` field is set.
431 subject?: {
432 // Countries to be used on the Certificate.
433 countries?: [...string]
434
435 // Cities to be used on the Certificate.
436 localities?: [...string]
437
438 // Organizational Units to be used on the Certificate.
439 organizationalUnits?: [...string]
440
441 // Organizations to be used on the Certificate.
442 organizations?: [...string]
443
444 // Postal codes to be used on the Certificate.
445 postalCodes?: [...string]
446
447 // State/Provinces to be used on the Certificate.
448 provinces?: [...string]
449
450 // Serial number to be used on the Certificate.
451 serialNumber?: string
452
453 // Street addresses to be used on the Certificate.
454 streetAddresses?: [...string]
455 }
456
457 // Requested URI subject alternative names.
458 uris?: [...string]
459
460 // Requested key usages and extended key usages.
461 // These usages are used to set the `usages` field on the created CertificateRequest
462 // resources. If `encodeUsagesInRequest` is unset or set to `true`, the usages
463 // will additionally be encoded in the `request` field which contains the CSR blob.
464 //
465 // If unset, defaults to `digital signature` and `key encipherment`.
466 usages?: [
467 ..."signing" |
468 "digital signature" |
469 "content commitment" |
470 "key encipherment" |
471 "key agreement" |
472 "data encipherment" |
473 "cert sign" |
474 "crl sign" |
475 "encipher only" |
476 "decipher only" |
477 "any" |
478 "server auth" |
479 "client auth" |
480 "code signing" |
481 "email protection" |
482 "s/mime" |
483 "ipsec end system" |
484 "ipsec tunnel" |
485 "ipsec user" |
486 "timestamping" |
487 "ocsp signing" |
488 "microsoft sgc" |
489 "netscape sgc",
490 ]
491 }
492
493 // Status of the Certificate.
494 // This is set and managed automatically.
495 // Read-only.
496 // More info:
497 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
498 status?: {
499 // ACME stores information that is fetched from the ACME CA server.
500 acme?: {
501 // ARI stores the ACME Renewal Information that is fetched from the ACME server
502 // in accordance with RFC 9773. This is only populated if the ARI feature gate is enabled.
503 ari?: {
504 // ExplanationURL is a human-readable URL that may explain why the suggested window
505 // has its current value.
506 explanationURL?: string
507
508 // LastChecked is the time at which the ACME server was last checked for renewal information.
509 lastChecked?: time.Time
510
511 // LastError is the last error encountered when checking the ACME server for
512 // renewal information, if any.
513 lastError?: string
514
515 // NextCheck is the time at which the ACME server will next be checked for renewal information.
516 nextCheck?: time.Time
517
518 // SuggestedWindow is the suggested renewal window as returned by the ACME
519 // server in accordance with RFC 9773.
520 suggestedWindow?: {
521 // End is the end of the suggested renewal window.
522 end!: time.Time
523
524 // Start is the start of the suggested renewal window.
525 start!: time.Time
526 }
527 }
528 }
529
530 // List of status conditions to indicate the status of certificates.
531 // Known condition types are `Ready` and `Issuing`.
532 conditions?: [...{
533 // LastTransitionTime is the timestamp corresponding to the last status
534 // change of this condition.
535 lastTransitionTime?: time.Time
536
537 // Message is a human readable description of the details of the last
538 // transition, complementing reason.
539 message?: string
540
541 // If set, this represents the .metadata.generation that the condition was
542 // set based upon.
543 // For instance, if .metadata.generation is currently 12, but the
544 // .status.condition[x].observedGeneration is 9, the condition is out of date
545 // with respect to the current state of the Certificate.
546 observedGeneration?: int64 & int
547
548 // Reason is a brief machine readable explanation for the condition's last
549 // transition.
550 reason?: string
551
552 // Status of the condition, one of (`True`, `False`, `Unknown`).
553 status!: "True" | "False" | "Unknown"
554
555 // Type of the condition, known values are (`Ready`, `Issuing`).
556 type!: string
557 }]
558
559 // The number of continuous failed issuance attempts up till now. This
560 // field gets removed (if set) on a successful issuance and gets set to
561 // 1 if unset and an issuance has failed. If an issuance has failed, the
562 // delay till the next issuance will be calculated using formula
563 // time.Hour * 2 ^ (failedIssuanceAttempts - 1).
564 failedIssuanceAttempts?: int
565
566 // LastFailureTime is set only if the latest issuance for this
567 // Certificate failed and contains the time of the failure. If an
568 // issuance has failed, the delay till the next issuance will be
569 // calculated using formula time.Hour * 2 ^ (failedIssuanceAttempts -
570 // 1). If the latest issuance has succeeded this field will be unset.
571 lastFailureTime?: time.Time
572
573 // The name of the Secret resource containing the private key to be used
574 // for the next certificate iteration.
575 // The keymanager controller will automatically set this field if the
576 // `Issuing` condition is set to `True`.
577 // It will automatically unset this field when the Issuing condition is
578 // not set or False.
579 nextPrivateKeySecretName?: string
580
581 // The expiration time of the certificate stored in the secret named
582 // by this resource in `spec.secretName`.
583 notAfter?: time.Time
584
585 // The time after which the certificate stored in the secret named
586 // by this resource in `spec.secretName` is valid.
587 notBefore?: time.Time
588
589 // RenewalTime is the time at which the certificate will be next
590 // renewed.
591 // If not set, no upcoming renewal is scheduled.
592 renewalTime?: time.Time
593
594 // The current 'revision' of the certificate as issued.
595 //
596 // When a CertificateRequest resource is created, it will have the
597 // `cert-manager.io/certificate-revision` set to one greater than the
598 // current value of this field.
599 //
600 // Upon issuance, this field will be set to the value of the annotation
601 // on the CertificateRequest resource used to issue the certificate.
602 //
603 // Persisting the value on the CertificateRequest resource allows the
604 // certificates controller to know whether a request is part of an old
605 // issuance or if it is part of the ongoing revision's issuance by
606 // checking if the revision value in the annotation is greater than this
607 // field.
608 revision?: int
609 }
610
611 _embeddedResource: {
612 apiVersion!: string
613 kind!: string
614 metadata?: {...}
615 }
616 apiVersion: "cert-manager.io/v1"
617 kind: "Certificate"
618 metadata!: {
619 name!: string
620 namespace!: string
621 labels?: [string]: string
622 annotations?: [string]: string
623 ...
624 }
625}