Skip to content

Commit 64aebb6

Browse files
committed
Fix deprecated ObjectReference usage in cert-manager
Replace v1.ObjectReference with v1.IssuerReference to resolve staticcheck SA1019 deprecation warning.
1 parent 772b3da commit 64aebb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/certificates/manage_libvirt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func EnsureCertificate(ctx context.Context, c client.Client, host string) error
104104
CommonName: host,
105105
DNSNames: []string{host},
106106
IPAddresses: ipAddresses,
107-
IssuerRef: v1.ObjectReference{
107+
IssuerRef: v1.IssuerReference{
108108
Name: os.Getenv("ISSUER_NAME"),
109109
Kind: cmapi.IssuerKind,
110110
Group: "cert-manager.io",

0 commit comments

Comments
 (0)