fix(certmanager): convert certificate to unstructured using pointer
This commit is contained in:
parent
7839bcf3cb
commit
065b04ba39
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func (c *certificateClient) Create(
|
|||
},
|
||||
}
|
||||
|
||||
obj, err := runtime.DefaultUnstructuredConverter.ToUnstructured(cert)
|
||||
obj, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&cert)
|
||||
if err != nil {
|
||||
return errors.Join(ErrCertificateToUnstructured, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue