Expected Behaviour
Instead of using the custom spec.tls.* definition to generate certificates we can use the default cert-manager annotations (certmanager.k8s.io/issuer or certmanager.k8s.io/cluster-issuer), since #7 was implemented.
Current Behaviour
We need to use a custom spec.tls.* definition to enable the certificate creation.
Even though we are copying all the annotations to the Ingress, the current implementation of the controller doesn't support the default cert-manager ones.
Possible Solution
Remove the special case for TLS annotations inside makeAnnotations and change the makeTLS functions to look into the annotations instead of function.Spec.UseTLS().
I didn't try these changes, just an idea by taking a quick look into the code. It may be more complicated than that.
Context
Using the same Ingress behaviour to create TLS certificates in the FunctionIngress would require a lower learning curve, less docs and make configurations more standard across the cluster.
Expected Behaviour
Instead of using the custom
spec.tls.*definition to generate certificates we can use the default cert-manager annotations (certmanager.k8s.io/issuerorcertmanager.k8s.io/cluster-issuer), since #7 was implemented.Current Behaviour
We need to use a custom
spec.tls.*definition to enable the certificate creation.Even though we are copying all the annotations to the Ingress, the current implementation of the controller doesn't support the default
cert-managerones.Possible Solution
Remove the special case for TLS annotations inside makeAnnotations and change the makeTLS functions to look into the annotations instead of
function.Spec.UseTLS().I didn't try these changes, just an idea by taking a quick look into the code. It may be more complicated than that.
Context
Using the same
Ingressbehaviour to create TLS certificates in theFunctionIngresswould require a lower learning curve, less docs and make configurations more standard across the cluster.