Skip to content

Commit

Permalink
Merge pull request #1 from sfotony/remove-pem-file-support
Browse files Browse the repository at this point in the history
Remove pem file support
  • Loading branch information
sfotony authored Nov 4, 2021
2 parents 8f82693 + efc75b0 commit ff5db52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.15.3-alpine AS build-env
RUN apk add --no-cache git make ca-certificates
LABEL maintaner="@amimof (github.com/amimof)"
COPY . /go/src/github.com/amimof/node-cert-exporter
WORKDIR /go/src/github.com/amimof/node-cert-exporter
LABEL maintainer="@sfotony (github.com/sfotony), based on project by @amimof (github.com/amimof)""
COPY . /go/src/github.com/sfotony/node-cert-exporter
WORKDIR /go/src/github.com/sfotony/node-cert-exporter
RUN make
FROM scratch
COPY --from=build-env /go/src/github.com/amimof/node-cert-exporter/bin/node-cert-exporter /go/bin/node-cert-exporter
COPY --from=build-env /go/src/github.com/sfotony/node-cert-exporter/bin/node-cert-exporter /go/bin/node-cert-exporter
COPY --from=build-env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/go/bin/node-cert-exporter"]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# node-cert-exporter
[![Go Workflow](https://github.com/amimof/node-cert-exporter/actions/workflows/go.yaml/badge.svg)](https://github.com/amimof/node-cert-exporter/actions/workflows/go.yaml) [![Go Report Card](https://goreportcard.com/badge/github.com/amimof/node-cert-exporter)](https://goreportcard.com/report/github.com/amimof/node-cert-exporter) [![huego](https://godoc.org/github.com/amimof/node-cert-exporter?status.svg)](https://godoc.org/github.com/amimof/node-cert-exporter)

This project is a fork to remove *.pem support from node-cert-exporter. Hopefully I'll be able to circle back to this and parameterize file types to scan for an upstream PR.
---

`Prometheus` exporter for x509 certificates written in Go. `node-cert-exporter` will parse SSL certificates in a number of directories recursively and expose their expiry as a Prometheus metric at `/metrics`. It can run on `Kubernetes` as a `Deployment` or `DaemonSet`, or using `Docker`.
Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

var (
extensions = []string{".pem", ".crt", ".cert", ".cer", ".pfx"}
extensions = []string{".crt", ".cert", ".cer", ".pfx"}
hostname, _ = os.Hostname()
nodename = os.Getenv("NODE_NAME")
)
Expand Down

0 comments on commit ff5db52

Please sign in to comment.