Skip to content

Webhook support referencing existing CertManager Certificate #4522

@phuhung273

Description

@phuhung273

Describe the feature you are requesting
Allow the AWS Load Balancer Controller webhook to consume an existing CertManager Certificate by name directly.

Motivation
My Certificate is very different from the one created by current chart. So instead of asking for each configuration added, it's better to just reference one.

Describe the proposed solution you'd like

enableCertManager: true

certManager:
  webhookCert: my-certificate-name 

Then in webhook.yaml

{{- if $.Values.enableCertManager }}
  annotations:
    {{- if $.Values.certManager.webhookCert }}
    cert-manager.io/inject-ca-from: {{ .Values.certManager.webhookCert }}
    {{- else }}
    cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ template "aws-load-balancer-controller.namePrefix" . }}-serving-cert
    {{- end }}
{{- end }}

Describe alternatives you've considered
This request and #4464 are alternatives

Contribution Intention (Optional)

  • Yes, I am willing to contribute a PR to implement this feature
  • No, I cannot work on a PR at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions