Extend CRDs and structs to include LastPrivateKeyHash field

Signed-off-by: vidarno <>
This commit is contained in:
vidarno 2023-04-29 08:59:51 +02:00
parent 15e05b705b
commit 4934183927
11 changed files with 40 additions and 0 deletions

View File

@ -1267,6 +1267,9 @@ spec:
description: ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates.
type: object
properties:
lastPrivateKeyHash:
description: LastPrivateKeyHash is a hash of the private key associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer
type: string
lastRegisteredEmail:
description: LastRegisteredEmail is the email associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer
type: string

View File

@ -1267,6 +1267,9 @@ spec:
description: ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates.
type: object
properties:
lastPrivateKeyHash:
description: LastPrivateKeyHash is a hash of the private key associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer
type: string
lastRegisteredEmail:
description: LastRegisteredEmail is the email associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer
type: string

View File

@ -557,4 +557,9 @@ type ACMEIssuerStatus struct {
// ACME account, in order to track changes made to registered account
// associated with the Issuer
LastRegisteredEmail string
// LastPrivateKeyHash is a hash of the private key associated with the latest
// registered ACME account, in order to track changes made to registered account
// associated with the Issuer
LastPrivateKeyHash string
}

View File

@ -1286,6 +1286,7 @@ func Convert_acme_ACMEIssuerDNS01ProviderWebhook_To_v1_ACMEIssuerDNS01ProviderWe
func autoConvert_v1_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *v1.ACMEIssuerStatus, out *acme.ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}
@ -1297,6 +1298,7 @@ func Convert_v1_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *v1.ACMEIssuerStatu
func autoConvert_acme_ACMEIssuerStatus_To_v1_ACMEIssuerStatus(in *acme.ACMEIssuerStatus, out *v1.ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}

View File

@ -629,4 +629,9 @@ type ACMEIssuerStatus struct {
// associated with the Issuer
// +optional
LastRegisteredEmail string `json:"lastRegisteredEmail,omitempty"`
// LastPrivateKeyHash is a hash of the private key associated with the latest
// registered ACME account, in order to track changes made to registered account
// associated with the Issuer
LastPrivateKeyHash string `json:"lastPrivateKeyHash,omitempty"`
}

View File

@ -1285,6 +1285,7 @@ func Convert_acme_ACMEIssuerDNS01ProviderWebhook_To_v1alpha2_ACMEIssuerDNS01Prov
func autoConvert_v1alpha2_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *ACMEIssuerStatus, out *acme.ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}
@ -1296,6 +1297,7 @@ func Convert_v1alpha2_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *ACMEIssuerSt
func autoConvert_acme_ACMEIssuerStatus_To_v1alpha2_ACMEIssuerStatus(in *acme.ACMEIssuerStatus, out *ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}

View File

@ -629,4 +629,9 @@ type ACMEIssuerStatus struct {
// associated with the Issuer
// +optional
LastRegisteredEmail string `json:"lastRegisteredEmail,omitempty"`
// LastPrivateKeyHash is a hash of the private key associated with the latest
// registered ACME account, in order to track changes made to registered account
// associated with the Issuer
LastPrivateKeyHash string `json:"lastPrivateKeyHash,omitempty"`
}

View File

@ -1285,6 +1285,7 @@ func Convert_acme_ACMEIssuerDNS01ProviderWebhook_To_v1alpha3_ACMEIssuerDNS01Prov
func autoConvert_v1alpha3_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *ACMEIssuerStatus, out *acme.ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}
@ -1296,6 +1297,7 @@ func Convert_v1alpha3_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *ACMEIssuerSt
func autoConvert_acme_ACMEIssuerStatus_To_v1alpha3_ACMEIssuerStatus(in *acme.ACMEIssuerStatus, out *ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}

View File

@ -628,4 +628,9 @@ type ACMEIssuerStatus struct {
// associated with the Issuer
// +optional
LastRegisteredEmail string `json:"lastRegisteredEmail,omitempty"`
// LastPrivateKeyHash is a hash of the private key associated with the latest
// registered ACME account, in order to track changes made to registered account
// associated with the Issuer
LastPrivateKeyHash string `json:"lastPrivateKeyHash,omitempty"`
}

View File

@ -1285,6 +1285,7 @@ func Convert_acme_ACMEIssuerDNS01ProviderWebhook_To_v1beta1_ACMEIssuerDNS01Provi
func autoConvert_v1beta1_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *ACMEIssuerStatus, out *acme.ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}
@ -1296,6 +1297,7 @@ func Convert_v1beta1_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *ACMEIssuerSta
func autoConvert_acme_ACMEIssuerStatus_To_v1beta1_ACMEIssuerStatus(in *acme.ACMEIssuerStatus, out *ACMEIssuerStatus, s conversion.Scope) error {
out.URI = in.URI
out.LastRegisteredEmail = in.LastRegisteredEmail
out.LastPrivateKeyHash = in.LastPrivateKeyHash
return nil
}

View File

@ -641,4 +641,10 @@ type ACMEIssuerStatus struct {
// associated with the Issuer
// +optional
LastRegisteredEmail string `json:"lastRegisteredEmail,omitempty"`
// LastPrivateKeyHash is a hash of the private key associated with the latest
// registered ACME account, in order to track changes made to registered account
// associated with the Issuer
// +optional
LastPrivateKeyHash string `json:"lastPrivateKeyHash,omitempty"`
}