[#92] Add SSO proxy
Merge request reports
Activity
Filter activity
added 11 commits
-
240ffdcd...524d78f9 - 10 commits from branch
master
- 894ca91c - First working prototype of SSO proxy
-
240ffdcd...524d78f9 - 10 commits from branch
- Resolved by Francisco Borges Aurindo Barros
- Resolved by Francisco Borges Aurindo Barros
- Resolved by Francisco Borges Aurindo Barros
- Resolved by Francisco Borges Aurindo Barros
- Resolved by Francisco Borges Aurindo Barros
- Resolved by Francisco Borges Aurindo Barros
changed title from [wip] [#92 (closed)] Add SSO proxy to [#92 (closed)] Add SSO proxy
added 1 commit
- 5655dd11 - Added new comments and changed code based on review
Thanks a lot for the input @jhensche !
- Resolved by Francisco Borges Aurindo Barros
846 860 }, 847 861 } 848 862 849 863 // TODO: gradually migrate this code outside of the `CreationTimestamp.IsZero` check 1213 1403 1214 1404 addOwnerRefToObject(currentobject, asOwner(d)) 1215 1405 currentobject.Spec.Selector = ls 1406 if d.Labels[SSOProxyLabel] == "true" { For a little less code repetition I'd replace with
serverName := "nginx" serverPort := 8080 if d.Labels[ssoProxyLabel] == "true" { serverName = "sso-proxy" serverPort = ssoProxyPort } currentobject.Spec.Ports = []corev1.ServicePort{ { TargetPort: intstr.FromInt(serverPort), Name: serverName, Port: 80, Protocol: "TCP", }, { TargetPort: intstr.FromInt(9253), Name: "php-fpm-exporter", Port: 9253, Protocol: "TCP", }}
Also consider moving "sso-proxy" to a variable.
changed this line in version 7 of the diff
Please register or sign in to reply