Skip to content

Commit

Permalink
add csi-addons-controller
Browse files Browse the repository at this point in the history
Signed-off-by: Shinya Hayashi <[email protected]>
  • Loading branch information
peng225 committed Dec 17, 2024
1 parent 9c933b5 commit 21db953
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
container-image: "contour"
- dir: "./coredns"
container-image: "coredns"
- dir: "csi-addons-controller"
container-image: "csi-addons-controller"
- dir: "csi-attacher"
container-image: "csi-attacher"
- dir: "csi-node-driver-registrar"
Expand Down
1 change: 1 addition & 0 deletions csi-addons-controller/BRANCH
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.11
26 changes: 26 additions & 0 deletions csi-addons-controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ARG SRC_DIR=/work/go/src/github.com/csi-addons/kubernetes-csi-addons
# Build the manager binary
FROM ghcr.io/cybozu/golang:1.22-jammy AS builder

ARG SRC_DIR
ARG VERSION=0.11.0

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN git clone -b v${VERSION} --depth=1 https://github.com/csi-addons/kubernetes-csi-addons.git ${SRC_DIR}

ENV CGO_ENABLED=0
WORKDIR ${SRC_DIR}

# Build
RUN make build

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
ARG SRC_DIR
WORKDIR /
COPY --from=builder ${SRC_DIR}/bin/csi-addons-manager .
USER 65532:65532

ENTRYPOINT ["/csi-addons-manager"]
1 change: 1 addition & 0 deletions csi-addons-controller/TAG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.11.0.1
10 changes: 10 additions & 0 deletions maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ In case of components whose Go source code are in neco-containers, all dependent
- [configmap-reload](#configmap-reload)
- [contour](#contour)
- [coredns](#coredns)
- [csi addons controller](#csi-addons-controller)
- [csi sidecars](#csi-sidecars)
- [dex](#dex)
- [envoy](#envoy)
Expand Down Expand Up @@ -417,6 +418,15 @@ follow these steps.
4. Update image tag in `README.md`.
5. Update `BRANCH` and `TAG` files.

## csi addons controller

![CSA Update](./csa_update.svg)

1. Update `VERSION` in Dockerfile.
2. See the upstream Dockerfile of the appropriate tag, and update our Dockerfile if necessary. The upstream Dockerfile is [here](https://github.com/csi-addons/kubernetes-csi-addons/blob/main/Dockerfile).
3. update image tag in `Dockerfile` if necessary.
4. Update `BRANCH` and `TAG` files.

## csi sidecars

![CSA Update](./csa_update.svg)
Expand Down

0 comments on commit 21db953

Please sign in to comment.