-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize Ingress creation, use wildcard cert with OCP apps domain #305
base: master
Are you sure you want to change the base?
Conversation
a323c63
to
6eb56a4
Compare
7723aa8
to
67142f8
Compare
d07552d
to
23f77bb
Compare
a58dfd8
to
80c9829
Compare
Previously, ingresses were (mostly) created using helm values. With this change, ingresses are generated in the common package. Meaning: Ingresses are now explicitly defined and no longer templated. This also allows to properly handle OCP default apps wildcard certs without the need of copy/pasting the same code for each service.
80c9829
to
f6fb4eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR will touch existing services. Make sure you check the crossplane-diff of this change.
// Generate an Ingress containing a single FQDN using a TLS config as such: | ||
// FQDN is one subdomain ON defaultAppsDomain (e.g. sub1.apps.cluster.com) -> Empty TLS config (uses wildcard cert on OCP). | ||
// FQDN does not statisfy the former -> TLS config using a Let's Encrypt certificate. | ||
func GenerateIngress(comp InfoGetter, svc *runtime.ServiceRuntime, ingressConfig IngressConfig) (*netv1.Ingress, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would definitely add some unit tests for this function, also for others as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added such in 4b1aa1e
Summary
sub1.apps...
)sub2.sub1.apps...
)Given an apps domain
example.com
:This affects the following services:
Related PR in
component-appcat
: vshn/component-appcat#623Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog