UTF8Value -> utf8Value in CRD JSON schema

* Still following Go standard with UTF8Value for struct field name

Signed-off-by: SpectralHiss <houssem.elfekih@jetstack.io>
This commit is contained in:
SpectralHiss 2023-12-19 20:36:49 +00:00
parent c87a2f6691
commit e7f29f8bb3
7 changed files with 19 additions and 19 deletions

View File

@ -232,12 +232,12 @@ spec:
items:
type: object
properties:
UTF8Value:
description: Utf8Value is the string value of the otherName SAN. The UTF8value accepts any valid UTF8 string to set as value for the otherName SAN.
type: string
oid:
description: OID is the object identifier for the otherName SAN. The object identifier must be expressed as a dotted string, for example, "1.2.840.113556.1.4.221".
type: string
utf8Value:
description: utf8Value is the string value of the otherName SAN. The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
type: string
privateKey:
description: Private key options. These include the key algorithm and size, the used encoding and the rotation policy.
type: object

View File

@ -260,9 +260,9 @@ type OtherName struct {
// example, "1.2.840.113556.1.4.221".
OID string `json:"oid,omitempty"`
// Utf8Value is the string value of the otherName SAN.
// The UTF8value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"UTF8Value,omitempty"`
// utf8Value is the string value of the otherName SAN.
// The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"utf8Value,omitempty"`
}
// CertificatePrivateKey contains configuration options for private keys

View File

@ -247,9 +247,9 @@ type OtherName struct {
// example, "1.2.840.113556.1.4.221".
OID string `json:"oid,omitempty"`
// Utf8Value is the string value of the otherName SAN.
// The UTF8value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"UTF8Value,omitempty"`
// utf8Value is the string value of the otherName SAN.
// The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"utf8Value,omitempty"`
}
// CertificatePrivateKey contains configuration options for private keys

View File

@ -245,9 +245,9 @@ type OtherName struct {
// example, "1.2.840.113556.1.4.221".
OID string `json:"oid,omitempty"`
// Utf8Value is the string value of the otherName SAN.
// The UTF8value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"UTF8Value,omitempty"`
// utf8Value is the string value of the otherName SAN.
// The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"utf8Value,omitempty"`
}
// CertificatePrivateKey contains configuration options for private keys

View File

@ -222,9 +222,9 @@ type OtherName struct {
// example, "1.2.840.113556.1.4.221".
OID string `json:"oid,omitempty"`
// Utf8Value is the string value of the otherName SAN.
// The UTF8value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"UTF8Value,omitempty"`
// utf8Value is the string value of the otherName SAN.
// The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"utf8Value,omitempty"`
}
// CertificatePrivateKey contains configuration options for private keys

View File

@ -287,9 +287,9 @@ type OtherName struct {
// example, "1.2.840.113556.1.4.221".
OID string `json:"oid,omitempty"`
// Utf8Value is the string value of the otherName SAN.
// The UTF8value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"UTF8Value,omitempty"`
// utf8Value is the string value of the otherName SAN.
// The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
UTF8Value string `json:"utf8Value,omitempty"`
}
// CertificatePrivateKey contains configuration options for private keys

View File

@ -157,7 +157,7 @@ var _ = framework.CertManagerDescribe("othername san processing", func() {
Expect(cert.Extensions).To(ContainElement(expectedSanExtension))
})
FIt("Should error if a certificate is supplied with an othername containing an invalid oid value", func() {
It("Should error if a certificate is supplied with an othername containing an invalid oid value", func() {
_, err := createCertificate(f, []cmapi.OtherName{
{
OID: "BAD_OID",