Skip to content

Commit ff5db52

Browse files
authored
Merge pull request #1 from sfotony/remove-pem-file-support
Remove pem file support
2 parents 8f82693 + efc75b0 commit ff5db52

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM golang:1.15.3-alpine AS build-env
22
RUN apk add --no-cache git make ca-certificates
3-
LABEL maintaner="@amimof (github.com/amimof)"
4-
COPY . /go/src/github.com/amimof/node-cert-exporter
5-
WORKDIR /go/src/github.com/amimof/node-cert-exporter
3+
LABEL maintainer="@sfotony (github.com/sfotony), based on project by @amimof (github.com/amimof)""
4+
COPY . /go/src/github.com/sfotony/node-cert-exporter
5+
WORKDIR /go/src/github.com/sfotony/node-cert-exporter
66
RUN make
77
88
FROM scratch
9-
COPY --from=build-env /go/src/github.com/amimof/node-cert-exporter/bin/node-cert-exporter /go/bin/node-cert-exporter
9+
COPY --from=build-env /go/src/github.com/sfotony/node-cert-exporter/bin/node-cert-exporter /go/bin/node-cert-exporter
1010
COPY --from=build-env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1111
ENTRYPOINT ["/go/bin/node-cert-exporter"]

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# node-cert-exporter
2-
[![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)
3-
2+
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.
43
---
54

65
`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`.

pkg/exporter/exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
var (
19-
extensions = []string{".pem", ".crt", ".cert", ".cer", ".pfx"}
19+
extensions = []string{".crt", ".cert", ".cer", ".pfx"}
2020
hostname, _ = os.Hostname()
2121
nodename = os.Getenv("NODE_NAME")
2222
)

0 commit comments

Comments
 (0)