Skip to content

Commit

Permalink
fixed image pull (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgrath207 authored Oct 15, 2023
1 parent 362d36a commit 8bfdfa4
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN go mod download
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-X main.Commit=$(git rev-parse HEAD)" -a -o app main.go

FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static:nonroot
LABEL org.opencontainers.image.source="https://github.com/jmcgrath207/k8s-ephemeral-storage-metrics"
WORKDIR /
COPY --from=builder /code/app .
USER 65532:65532
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Currently, this image is not being hosted and so you have to build it yourself a

```bash
helm repo add k8s-ephemeral-storage-metrics https://jmcgrath207.github.io/k8s-ephemeral-storage-metrics/chart
helm install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-metrics
helm upgrade --install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-metrics
```

## Values
Expand All @@ -28,7 +28,7 @@ helm install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-m
| deploy_type | string | `"DaemonSet"` | |
| dev.enabled | bool | `false` | |
| image.imagePullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/jmcgrath207/k8s-ephermeral-storage-metrics"` | |
| image.repository | string | `"ghcr.io/jmcgrath207/k8s-ephemeral-storage-metrics"` | |
| image.tag | string | `"1.0.0"` | |
| interval | int | `15` | |
| log_level | string | `"info"` | |
Expand Down
4 changes: 2 additions & 2 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

```bash
helm repo add k8s-ephemeral-storage-metrics https://jmcgrath207.github.io/k8s-ephemeral-storage-metrics/chart
helm install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-metrics
helm upgrade --install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-metrics
```

## Values
Expand All @@ -12,7 +12,7 @@ helm install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-m
| deploy_type | string | `"DaemonSet"` | |
| dev.enabled | bool | `false` | |
| image.imagePullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/jmcgrath207/k8s-ephermeral-storage-metrics"` | |
| image.repository | string | `"ghcr.io/jmcgrath207/k8s-ephemeral-storage-metrics"` | |
| image.tag | string | `"1.0.0"` | |
| interval | int | `15` | |
| log_level | string | `"info"` | |
Expand Down
2 changes: 1 addition & 1 deletion chart/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

```bash
helm repo add k8s-ephemeral-storage-metrics https://jmcgrath207.github.io/k8s-ephemeral-storage-metrics/chart
helm install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-metrics
helm upgrade --install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral-storage-metrics
```

{{ template "chart.valuesSection" . }}
Expand Down
6 changes: 3 additions & 3 deletions chart/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ entries:
artifacthub.io/prerelease: "false"
apiVersion: v2
appVersion: 1.0.0
created: "2023-10-15T15:11:30.087231962-05:00"
created: "2023-10-15T15:42:13.072877463-05:00"
description: Ephemeral storage metrics for prometheus operator.
digest: 6ac76f8747e5c6cda194fa2b1b45a4e44f9ecbf77e7dd6bd5b6f35c39a9a0ec9
digest: 1b3adbccb37a844e66826426c3e735f65f65639f910eafc9ca2ff85b5f083a40
home: https://github.com/jmcgrath207/k8s-ephemeral-storage-metrics
keywords:
- kubernetes
Expand All @@ -23,4 +23,4 @@ entries:
urls:
- k8s-ephemeral-storage-metrics-1.0.0.tgz
version: 1.0.0
generated: "2023-10-15T15:11:30.086931384-05:00"
generated: "2023-10-15T15:42:13.071453743-05:00"
Binary file modified chart/k8s-ephemeral-storage-metrics-1.0.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image:
repository: ghcr.io/jmcgrath207/k8s-ephermeral-storage-metrics
repository: ghcr.io/jmcgrath207/k8s-ephemeral-storage-metrics
tag: 1.0.0
imagePullPolicy: IfNotPresent
log_level: info
Expand Down
2 changes: 1 addition & 1 deletion scripts/release-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -e


package=k8s-ephermeral-storage-metrics
package=k8s-ephemeral-storage-metrics

if [ -z "$VERSION" ]; then
echo "The VERSION env is not set."
Expand Down

0 comments on commit 8bfdfa4

Please sign in to comment.