-
Notifications
You must be signed in to change notification settings - Fork 68
Adding code to create Target http proxies #9
Adding code to create Target http proxies #9
Conversation
LGTM Reviewed 11 of 11 files at r1. app/mci/pkg/gcp/namer/namer.go, line 26 at r1 (raw file):
We don't need "k8s-*" prefixes for our resources? app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 44 at r1 (raw file):
app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 49 at r1 (raw file):
Is it trivial to throw an error if HTTPS was requested? Or will HTTPS be implemented soon enough that it's not worth it? app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 92 at r1 (raw file):
app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 92 at r1 (raw file):
app/mci/pkg/gcp/targetproxy/targetproxysyncer_test.go, line 32 at r1 (raw file):
ums? Should this be tps (target proxy syncer)? app/mci/pkg/gcp/urlmap/urlmapsyncer.go, line 59 at r1 (raw file):
Do we comment at both the interface and the implementation? On my last google3/C++ project, we only commented the impl if there were notes to add about the impl. Usually there was no comment at all. anyway, I ask because you updated the interface comment but not the impl comment. app/mci/pkg/gcp/urlmap/urlmapsyncer_test.go, line 53 at r1 (raw file):
minor: check that the urlmap name is correct. Comments from Reviewable |
Review status: all files reviewed at latest revision, 8 unresolved discussions. app/mci/pkg/gcp/namer/namer.go, line 26 at r1 (raw file): Previously, G-Harmon wrote…
No we add mci prefix instead. app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 49 at r1 (raw file): Previously, G-Harmon wrote…
We need logic to detect if HTTPS was requested. I will try to implement HTTPS soon, but if not will atleast add HTTPS request detection logic soon enough so that we can generate an error and remove this generic scary warning. Now that kubernetes/ingress-gce#58 is merged, that should make it easier to detect annotations to figure out if HTTPS was requested. We still need additional logic to load the certs. app/mci/pkg/gcp/urlmap/urlmapsyncer.go, line 59 at r1 (raw file): Previously, G-Harmon wrote…
Yes that sounds good to me. Comments from Reviewable |
726b458
to
5280757
Compare
Review status: all files reviewed at latest revision, 8 unresolved discussions. app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 44 at r1 (raw file): Previously, G-Harmon wrote…
Done. app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 92 at r1 (raw file): Previously, G-Harmon wrote…
Right, done app/mci/pkg/gcp/targetproxy/targetproxysyncer.go, line 92 at r1 (raw file): Previously, G-Harmon wrote…
Updated to "that can be different". app/mci/pkg/gcp/targetproxy/targetproxysyncer_test.go, line 32 at r1 (raw file): Previously, G-Harmon wrote…
Done. app/mci/pkg/gcp/urlmap/urlmapsyncer_test.go, line 53 at r1 (raw file): Previously, G-Harmon wrote…
Done. Comments from Reviewable |
Thanks for the review @G-Harmon |
/lgtm pending Greg's |
Reviewed 3 of 3 files at r2. app/mci/pkg/gcp/namer/namer.go, line 26 at r1 (raw file): Previously, nikhiljindal (Nikhil Jindal) wrote…
ah, right. I saw that when I ran mci again yesterday :) app/mci/pkg/gcp/urlmap/urlmapsyncer.go, line 59 at r1 (raw file): Previously, nikhiljindal (Nikhil Jindal) wrote…
okay! Comments from Reviewable |
This uses the URLMap created in #7 to create target proxies.
This PR contains logic to create HTTP proxies only. HTTPS proxies require additional logic of managing SSL certs. Will add support for that in a separate PR.
cc @bowei @nicksardo @csbell @G-Harmon @madhusudancs
This change is