Installer: fix they way secret is sent to the port allocator
Change-Id: I483f0560be289b4bcf80cc2d344d497693b1357e
diff --git a/core/port-allocator/main.go b/core/port-allocator/main.go
index 861b1dd..48ffd35 100644
--- a/core/port-allocator/main.go
+++ b/core/port-allocator/main.go
@@ -88,7 +88,7 @@
SourcePort int `json:"sourcePort"`
TargetService string `json:"targetService"`
TargetPort int `json:"targetPort"`
- Secret string `json:"secret,omitempty"`
+ Secret string `json:"secret"`
}
func extractAllocateReq(r io.Reader) (allocateReq, error) {
@@ -183,10 +183,6 @@
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
- if req.Secret != "" {
- http.Error(w, "secret missing", http.StatusBadRequest)
- return
- }
s.l.Lock()
defer s.l.Unlock()
ingressRel, err := s.client.ReadRelease()