Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add csi-addons-controller #1494

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading