Skip to content

Commit f9771d6

Browse files
feat(image): add kubectl and jq for kpack builds
Install kubectl and jq in the runner image so green ARC runners can manage in-cluster kpack Build CRs and run the git-token refresher CronJob. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent bef420b commit f9771d6

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

.cursorignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.venv/
2+
node_modules/
3+
**/__pycache__/
4+
**/.mypy_cache/
5+
**/.pytest_cache/
6+
**/.ruff_cache/
7+
build/
8+
dist/
9+
.env
10+
*.pem
11+
*.key
12+
poetry.lock
13+
package-lock.json
14+
15+
build/

Containerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN apt-get update \
1818
python3.12 python3.12-dev \
1919
python3.13 python3.13-dev \
2020
skopeo buildah \
21+
jq \
2122
unzip \
2223
&& apt-get autoremove -y \
2324
&& apt-get clean \
@@ -102,6 +103,12 @@ RUN curl -sSL -o /usr/local/bin/kargo \
102103
"https://github.com/akuity/kargo/releases/download/v${KARGO_VERSION}/kargo-linux-amd64" \
103104
&& chmod +x /usr/local/bin/kargo
104105

106+
# Install kubectl (in-cluster kpack Build CRs from green ARC runners)
107+
ARG KUBECTL_VERSION=1.33.2
108+
RUN curl -sSL -o /usr/local/bin/kubectl \
109+
"https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
110+
&& chmod +x /usr/local/bin/kubectl
111+
105112
# Install pack (Cloud Native Buildpacks CLI)
106113
ARG PACK_VERSION=0.40.2
107114
RUN curl -sSL -o /tmp/pack.tgz \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Container image based on the [GitHub Actions Runner](https://github.com/actions/
2222
|------|-------------|
2323
| [Argo Workflows CLI](https://github.com/argoproj/argo-workflows) | Workflow orchestration on Kubernetes |
2424
| [Kargo CLI](https://github.com/akuity/kargo) | Application lifecycle orchestration |
25+
| [kubectl](https://kubernetes.io/docs/reference/kubectl/) | Kubernetes CLI (in-cluster kpack builds from green ARC runners) |
26+
| [jq](https://jqlang.org/) | JSON processor (kpack git-token refresher CronJob) |
2527
| [pack](https://github.com/buildpacks/pack) | Cloud Native Buildpacks CLI |
2628
| [skopeo](https://github.com/containers/skopeo) | Container image registry operations |
2729
| [Node.js](https://nodejs.org/) / npm | JavaScript runtime and package manager (npm/npx bundled) |

0 commit comments

Comments
 (0)