-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from fydrah/evacuate_html_templates
Evacuate html templates from binary
- Loading branch information
Showing
6 changed files
with
82 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ LABEL maintainer="Flavien Hardy <[email protected]>" | |
|
||
COPY --from=build /go/src/${REPO}/bin/loginapp-static /loginapp | ||
COPY --from=build /go/src/${REPO}/assets /assets | ||
COPY --from=build /go/src/${REPO}/templates /templates | ||
|
||
ENTRYPOINT ["/loginapp"] | ||
CMD [""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href= | ||
"assets/css/form-style.min.css"> | ||
<script type="text/javascript"> | ||
function adjust_textarea(t){t.style.height="20px",t.style.height=t.scrollHeight+"px"} | ||
</script> | ||
<title>{{ .Name }}</title> | ||
</head> | ||
<body> | ||
<form class="form-style-7" action="/login" method="post"> | ||
<h1>{{ .Name }}</h1> | ||
<ul> | ||
<li><label for="access">CLI access</label> <input name= | ||
"access" type="submit" value="CLI"> <span>Login and retrieve | ||
your kubeconfig for CLI authentication</span></li> | ||
</ul> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href= | ||
"assets/css/code-box-copy.min.css"> | ||
<link rel="stylesheet" type="text/css" href= | ||
"assets/css/prism.min.css"> | ||
<link rel="stylesheet" type="text/css" href= | ||
"assets/css/form-style.min.css"> | ||
<title>{{ .Name }}</title> | ||
</head> | ||
<body> | ||
<div class="form-style-7"> | ||
<h1>{{ .Name }}</h1> | ||
<form class="form-style-7" action="/" method="get"> | ||
<ul> | ||
<li> | ||
<label>Copy this in your ~/.kube/config file</label> | ||
<div class="code-box-copy"> | ||
<button class="code-box-copy__btn" title= | ||
"Copy" type="button" data-clipboard-target="#kubeconfig"> | ||
</button> | ||
<pre><code class="language-yaml" id= | ||
"kubeconfig">- name: {{ .UsernameClaim }} | ||
user: | ||
auth-provider: | ||
config: | ||
idp-issuer-url: {{ .Claims.iss }} | ||
client-id: {{ .ClientID }} | ||
id-token: {{ .IDToken }} | ||
{{- if ne .RefreshToken "" }} | ||
client-secret: {{ .ClientSecret }} | ||
refresh-token: {{ .RefreshToken }} | ||
{{- end }} | ||
name: oidc</code></pre> | ||
</div> | ||
</li> | ||
<li><label>Return to login page</label> <input type= | ||
"submit" value="Home"></li> | ||
</ul> | ||
</form> | ||
</div> | ||
<script src="assets/js/clipboard.min.js"> | ||
</script> | ||
<script src="assets/js/jquery.min.js"> | ||
</script> | ||
<script src="assets/js/prism.min.js"> | ||
</script> | ||
<script src="assets/js/code-box-copy.min.js"> | ||
</script> | ||
<script> | ||
$('.code-box-copy').codeBoxCopy(); | ||
</script> | ||
</body> | ||
</html> |