-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use statik to generate statusz template as code. (#206)
* Moving var statuszTmpl to func ServeHTTP When trying to run $GOPATH/bin/stackdriver-prometheus-sidecar --help ,I get error panic: open statusz-tmpl.html: no such file or directory. Moving the intialization of the statuszTmpl to func ServeHTTP which allows the use of --help * Moving statusz-tmpl.html to a const in statusz.go and updating related files. * Using statik as a code generator * Updating statusz.go * Updating statusz.go and main.go * Updating statusz.go * Adding dependcies from running go mod vendor * Updating statik Co-authored-by: Javier Kohen <[email protected]>
- Loading branch information
Showing
9 changed files
with
539 additions
and
2 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ FROM gcr.io/distroless/static:latest | |
LABEL maintainer "Stackdriver Engineering <[email protected]>" | ||
|
||
COPY stackdriver-prometheus-sidecar /bin/stackdriver-prometheus-sidecar | ||
COPY cmd/stackdriver-prometheus-sidecar/statusz-tmpl.html /statusz-tmpl.html | ||
|
||
EXPOSE 9091 | ||
ENTRYPOINT [ "/bin/stackdriver-prometheus-sidecar" ] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.