Adds IssuanceAttempts field to Certificate's status
Signed-off-by: irbekrm <irbekrm@gmail.com>
This commit is contained in:
parent
c0da0894ba
commit
affb5e86ef
@ -338,6 +338,9 @@ spec:
|
||||
x-kubernetes-list-map-keys:
|
||||
- type
|
||||
x-kubernetes-list-type: map
|
||||
issuanceAttempts:
|
||||
description: The number of times certificate issuance has been attempted and failed for this revision (see the description of status.revision field). If an issuance has failed, the delay till the next issuance will be calculated using formula time.Hour * 2 ^ (issuanceAttempts - 1). This field will only be set if the issuance is currently failing.
|
||||
type: integer
|
||||
lastFailureTime:
|
||||
description: LastFailureTime is the time as recorded by the Certificate controller of the most recent failure to complete a CertificateRequest for this Certificate resource. If set, cert-manager will not re-request another Certificate until 1 hour has elapsed from this time.
|
||||
type: string
|
||||
|
||||
@ -372,6 +372,14 @@ type CertificateStatus struct {
|
||||
// It will automatically unset this field when the Issuing condition is
|
||||
// not set or False.
|
||||
NextPrivateKeySecretName *string
|
||||
|
||||
// The number of times certificate issuance has been attempted and
|
||||
// failed for this revision (see the description of status.revision
|
||||
// field). If an issuance has failed, the delay till the next issuance
|
||||
// will be calculated using formula time.Hour * 2 ^ (issuanceAttempts - 1).
|
||||
// This field will only be set if the issuance is currently failing.
|
||||
// +optional
|
||||
IssuanceAttempts *int `json:"issuanceAttempts,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateCondition contains condition information for an Certificate.
|
||||
|
||||
@ -877,6 +877,7 @@ func autoConvert_v1_CertificateStatus_To_certmanager_CertificateStatus(in *v1.Ce
|
||||
out.RenewalTime = (*metav1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -893,6 +894,7 @@ func autoConvert_certmanager_CertificateStatus_To_v1_CertificateStatus(in *certm
|
||||
out.RenewalTime = (*metav1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@ -377,6 +377,14 @@ type CertificateStatus struct {
|
||||
// not set or False.
|
||||
// +optional
|
||||
NextPrivateKeySecretName *string `json:"nextPrivateKeySecretName,omitempty"`
|
||||
|
||||
// The number of times certificate issuance has been attempted and
|
||||
// failed for this revision (see the description of status.revision
|
||||
// field). If an issuance has failed, the delay till the next issuance
|
||||
// will be calculated using formula time.Hour * 2 ^ (issuanceAttempts - 1).
|
||||
// This field will only be set if the issuance is currently failing.
|
||||
// +optional
|
||||
IssuanceAttempts *int `json:"issuanceAttempts,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateCondition contains condition information for an Certificate.
|
||||
|
||||
@ -893,6 +893,7 @@ func autoConvert_v1alpha2_CertificateStatus_To_certmanager_CertificateStatus(in
|
||||
out.RenewalTime = (*v1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -909,6 +910,7 @@ func autoConvert_certmanager_CertificateStatus_To_v1alpha2_CertificateStatus(in
|
||||
out.RenewalTime = (*v1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@ -521,6 +521,11 @@ func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus) {
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.IssuanceAttempts != nil {
|
||||
in, out := &in.IssuanceAttempts, &out.IssuanceAttempts
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@ -384,6 +384,14 @@ type CertificateStatus struct {
|
||||
// not set or False.
|
||||
// +optional
|
||||
NextPrivateKeySecretName *string `json:"nextPrivateKeySecretName,omitempty"`
|
||||
|
||||
// The number of times certificate issuance has been attempted and
|
||||
// failed for this revision (see the description of status.revision
|
||||
// field). If an issuance has failed, the delay till the next issuance
|
||||
// will be calculated using formula time.Hour * 2 ^ (issuanceAttempts - 1).
|
||||
// This field will only be set if the issuance is currently failing.
|
||||
// +optional
|
||||
IssuanceAttempts *int `json:"issuanceAttempts,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateCondition contains condition information for an Certificate.
|
||||
|
||||
@ -892,6 +892,7 @@ func autoConvert_v1alpha3_CertificateStatus_To_certmanager_CertificateStatus(in
|
||||
out.RenewalTime = (*v1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -908,6 +909,7 @@ func autoConvert_certmanager_CertificateStatus_To_v1alpha3_CertificateStatus(in
|
||||
out.RenewalTime = (*v1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@ -516,6 +516,11 @@ func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus) {
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.IssuanceAttempts != nil {
|
||||
in, out := &in.IssuanceAttempts, &out.IssuanceAttempts
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@ -382,6 +382,14 @@ type CertificateStatus struct {
|
||||
// not set or False.
|
||||
// +optional
|
||||
NextPrivateKeySecretName *string `json:"nextPrivateKeySecretName,omitempty"`
|
||||
|
||||
// The number of times certificate issuance has been attempted and
|
||||
// failed for this revision (see the description of status.revision
|
||||
// field). If an issuance has failed, the delay till the next issuance
|
||||
// will be calculated using formula time.Hour * 2 ^ (issuanceAttempts - 1).
|
||||
// This field will only be set if the issuance is currently failing.
|
||||
// +optional
|
||||
IssuanceAttempts *int `json:"issuanceAttempts,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateCondition contains condition information for an Certificate.
|
||||
|
||||
@ -885,6 +885,7 @@ func autoConvert_v1beta1_CertificateStatus_To_certmanager_CertificateStatus(in *
|
||||
out.RenewalTime = (*v1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -901,6 +902,7 @@ func autoConvert_certmanager_CertificateStatus_To_v1beta1_CertificateStatus(in *
|
||||
out.RenewalTime = (*v1.Time)(unsafe.Pointer(in.RenewalTime))
|
||||
out.Revision = (*int)(unsafe.Pointer(in.Revision))
|
||||
out.NextPrivateKeySecretName = (*string)(unsafe.Pointer(in.NextPrivateKeySecretName))
|
||||
out.IssuanceAttempts = (*int)(unsafe.Pointer(in.IssuanceAttempts))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@ -516,6 +516,11 @@ func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus) {
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.IssuanceAttempts != nil {
|
||||
in, out := &in.IssuanceAttempts, &out.IssuanceAttempts
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@ -516,6 +516,11 @@ func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus) {
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.IssuanceAttempts != nil {
|
||||
in, out := &in.IssuanceAttempts, &out.IssuanceAttempts
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@ -437,6 +437,14 @@ type CertificateStatus struct {
|
||||
// not set or False.
|
||||
// +optional
|
||||
NextPrivateKeySecretName *string `json:"nextPrivateKeySecretName,omitempty"`
|
||||
|
||||
// The number of times certificate issuance has been attempted and
|
||||
// failed for this revision (see the description of status.revision
|
||||
// field). If an issuance has failed, the delay till the next issuance
|
||||
// will be calculated using formula time.Hour * 2 ^ (issuanceAttempts - 1).
|
||||
// This field will only be set if the issuance is currently failing.
|
||||
// +optional
|
||||
IssuanceAttempts *int `json:"issuanceAttempts,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateCondition contains condition information for an Certificate.
|
||||
|
||||
@ -516,6 +516,11 @@ func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus) {
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.IssuanceAttempts != nil {
|
||||
in, out := &in.IssuanceAttempts, &out.IssuanceAttempts
|
||||
*out = new(int)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user