Skip to content

Commit 689fb46

Browse files
Merge pull request #218 from stlaz/version_remove
Bug 1980235: deprecate version
2 parents 4033641 + d80e018 commit 689fb46

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
providerOpenShift.SetReviewCAs(openshiftCAs.Get().([]string))
110110

111111
if *showVersion {
112-
fmt.Printf("oauth2_proxy v%s (built with %s)\n", VERSION, runtime.Version())
112+
fmt.Printf("oauth2_proxy was built with %s\n", runtime.Version())
113113
return
114114
}
115115

oauthproxy.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,15 +473,13 @@ func (p *OAuthProxy) SignInPage(rw http.ResponseWriter, req *http.Request, code
473473
SignInMessage string
474474
CustomLogin bool
475475
Redirect string
476-
Version string
477476
ProxyPrefix string
478477
Footer template.HTML
479478
}{
480479
ProviderName: p.provider.Data().ProviderName,
481480
SignInMessage: p.SignInMessage,
482481
CustomLogin: p.displayCustomLoginForm(),
483482
Redirect: redirect_url,
484-
Version: VERSION,
485483
ProxyPrefix: p.ProxyPrefix,
486484
Footer: template.HTML(p.Footer),
487485
}

templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func getTemplates() *template.Template {
310310
<footer>
311311
{{ if eq .Footer "-" }}
312312
{{ else if eq .Footer ""}}
313-
Secured with <a href="https://github.com/openshift/oauth-proxy#oauth2_proxy">OpenShift oauth-proxy</a> version {{.Version}}
313+
Secured with <a href="https://github.com/openshift/oauth-proxy#oauth2_proxy">OpenShift oauth-proxy</a>
314314
{{ else }}
315315
{{.Footer}}
316316
{{ end }}

version.go

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)