Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Use ingresses for iframe resources #28

Merged
merged 4 commits into from
Nov 10, 2018
Merged

Use ingresses for iframe resources #28

merged 4 commits into from
Nov 10, 2018

Conversation

Mierdin
Copy link
Member

@Mierdin Mierdin commented Nov 7, 2018

Currently, iframe resources are a bit neglected. I moved to make them more generic, instead of specifically using jupyter notebooks, but this is still not ideal. In addition to the issue brought up in #27, the current method of exposing these via NodePort, in spite of the fact that EVERYTHING ELSE goes through the nginx ingress controller, is a bit silly, and the DNS based load balancing wasn't ever fully automated.

This PR solves both problems by having Syringe create Ingress objects for each iframe resource, so that the iframe within the antidote-web page is pointing to the exact same domain, using the same certs - just a different path, managed by the nginx controller.

TODOs

  • Make domain configurable (see TODO in ingresses.go)
  • changelog

Closes #27

@Mierdin Mierdin added the WIP Work in progress. Please hold off on reviews for now label Nov 7, 2018
@Mierdin Mierdin requested a review from cloudtoad November 7, 2018 06:37
@Mierdin Mierdin changed the title WIP: Add ingresses for iframe resources instead of nodeport WIP: Use ingresses for iframe resources Nov 7, 2018
Signed-off-by: Matt Oswalt <[email protected]>
Signed-off-by: Matt Oswalt <[email protected]>
@Mierdin Mierdin changed the title WIP: Use ingresses for iframe resources Use ingresses for iframe resources Nov 10, 2018
@Mierdin Mierdin removed the WIP Work in progress. Please hold off on reviews for now label Nov 10, 2018
@Mierdin Mierdin merged commit 9d7594c into master Nov 10, 2018
@Mierdin Mierdin deleted the iframe-ingress branch November 10, 2018 06:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant