Skip to content

Commit

Permalink
revert root user
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhachyan committed Aug 13, 2024
1 parent 982e9d1 commit eea4d0e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ COPY . ./
RUN CGO_ENABLED=0 go build -o /etcd-defrag-controller

## Deploy
FROM gcr.io/distroless/static:nonroot
FROM debian:buster-slim
WORKDIR /

USER 65532:65532

COPY --from=builder /etcd-defrag-controller .

ENTRYPOINT ["/etcd-defrag-controller"]
4 changes: 2 additions & 2 deletions helm/charts/etcd-defrag-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: etcd-defrag-controller
description: A Helm chart to install etcd defrag controller
type: application
version: 0.0.4
appVersion: "v0.0.4"
version: 0.0.5
appVersion: "v0.0.5"

home: https://github.com/kaasops/etcd-defrag-controller
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
fieldPath: status.hostIP
- name: ETCD_CERTS_PATH
value: "/etc/ssl/etcd/ssl"
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
image: {{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}
resources:
limits:
Expand Down
23 changes: 18 additions & 5 deletions helm/index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
apiVersion: v1
entries:
etcd-defrag-controller:
- apiVersion: v2
appVersion: v0.0.5
created: "2024-08-13T22:31:09.390522+03:00"
description: A Helm chart to install etcd defrag controller
digest: 6ac9f80ce4e843096af0da94d07692d73cdb85160170a11f71a5e538e9581d30
home: https://github.com/kaasops/etcd-defrag-controller
name: etcd-defrag-controller
sources:
- https://github.com/kaasops/etcd-defrag-controller
type: application
urls:
- https://kaasops.github.io/etcd-defrag-controller/helm/packages/etcd-defrag-controller-0.0.5.tgz
version: 0.0.5
- apiVersion: v2
appVersion: v0.0.4
created: "2024-08-13T22:12:19.785575+03:00"
created: "2024-08-13T22:31:09.390436+03:00"
description: A Helm chart to install etcd defrag controller
digest: 812f9141cf014c327a8ab927dc4e2739bc11573959c42ebe4d0a985c4aa98377
home: https://github.com/kaasops/etcd-defrag-controller
Expand All @@ -16,7 +29,7 @@ entries:
version: 0.0.4
- apiVersion: v2
appVersion: v0.0.3
created: "2024-08-13T22:12:19.785486+03:00"
created: "2024-08-13T22:31:09.390221+03:00"
description: A Helm chart to install etcd defrag controller
digest: cc55f9c036e91b701622b95f498965cc938c30aefd7da23eb883242886ea1912
home: https://github.com/kaasops/etcd-defrag-controller
Expand All @@ -29,7 +42,7 @@ entries:
version: 0.0.3
- apiVersion: v2
appVersion: v0.0.2
created: "2024-08-13T22:12:19.785159+03:00"
created: "2024-08-13T22:31:09.389895+03:00"
description: A Helm chart to install etcd defrag controller
digest: dc9e51104acd617568ba247d45c34ff32b258964e5700a1277604795ea00e60d
home: https://github.com/kaasops/etcd-defrag-controller
Expand All @@ -42,7 +55,7 @@ entries:
version: 0.0.2
- apiVersion: v2
appVersion: v0.0.1
created: "2024-08-13T22:12:19.784721+03:00"
created: "2024-08-13T22:31:09.389537+03:00"
description: A Helm chart to install etcd defrag controller
digest: 4a0c32850669adb1ac2d7ad3940da2e0faf4eb3ad773887f97e2180fc2baffe4
home: https://github.com/kaasops/etcd-defrag-controller
Expand All @@ -53,4 +66,4 @@ entries:
urls:
- https://kaasops.github.io/etcd-defrag-controller/helm/packages/etcd-defrag-controller-0.0.1.tgz
version: 0.0.1
generated: "2024-08-13T22:12:19.783953+03:00"
generated: "2024-08-13T22:31:09.388687+03:00"
Binary file added helm/packages/etcd-defrag-controller-0.0.5.tgz
Binary file not shown.

0 comments on commit eea4d0e

Please sign in to comment.