# CertManagerResource

- Module: [Aspire.Hosting.Kubernetes](/reference/api/go/aspire.hosting.kubernetes.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents a cert-manager installation on a Kubernetes environment.

## Remarks

cert-manager is a Kubernetes add-on that provisions and renews X.509
certificates from sources such as Let's Encrypt. Aspire models cert-manager
as a typed resource so that issuer resources (`CertManagerIssuerResource`)
can be parented to it and gateways/ingresses can reference issuers in a strongly-typed
way via `WithTls(issuer)`.
Under the covers, `AddCertManager` installs cert-manager
using a `KubernetesHelmChartResource` pointed at the upstream
`oci://quay.io/jetstack/charts/cert-manager` chart, with CRDs and Gateway API
support enabled. The chart resource is registered in the model under
`"{name}-chart"` (so the cert-manager wrapper itself can keep the natural
`"{name}"` identifier) and is exposed via `HelmChart` for advanced
configuration.

## Definition

```go
type CertManagerResource interface {
    Resource
    ResourceWithParent
}
```

## Embeds

- `Resource`
- `ResourceWithParent`

## Methods

- [AddIssuer](/reference/api/go/aspire.hosting.kubernetes/certmanagerresource/addissuer.md) -- `method` -- Adds a cert-manager `ClusterIssuer` to this cert-manager installation.
  ```go
  AddIssuer(name string) CertManagerIssuerResource
  ```
