zync
zync copied to clipboard
Added support for falling back to native ingress if not on Openshift
This PR adds support for falling back to native kubernetes ingress objects if not on openshift. It determines this based on whether the 'route.openshift.io/v1' api is present.
I'm not very proficient in Ruby so please review carefully.
Looks reasonable on quick look. Are you still interested to move this forward?
@akostadinov Yea I think so. This would be helpful to be able to provide a fully automated certificate configuration using CertManager.
@akostadinov one thing I am noticing as I test this in my new environment is that the Kubernetes Nginx Ingress controller now requires a ingress class. Before it would just chose the default. See here. This wasn't required at the time I originally created this PR. So I think we should probably have an environment variable to specify the ingress class. WDYT?