Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit 0f0ef80

Browse files
authored
Merge pull request #113 from ClarkSource/fix-vulners
chore: Update docker image to mitigate vulnerabilities BREAKING CHANGE: Docker image no longer includes kubeval, use kubectl --dry-run=server to validate schemas going forward.
2 parents 45a9b3f + 6fbb9b4 commit 0f0ef80

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/release-drafter.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ categories:
1010
- 'fix'
1111
- 'bugfix'
1212
- 'bug'
13+
- title: 'Other changes'
14+
labels:
15+
- 'chore'
16+
- 'docs'
17+
- 'style'
18+
- 'perf'
19+
- 'test'
20+
- title: 'Breaking Changes'
21+
labels:
22+
- 'chore!'
23+
- 'fix!'
24+
- 'bugfix!'
25+
- 'bug!'
1326
template: |
1427
## Changes
1528

Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,21 @@ FROM python:3-alpine
22

33
LABEL maintainer="CloudOps <cloudops@clark.de>"
44

5-
ARG KUBECTL_VERSION="1.20.5"
6-
ARG KUBEVAL_VERSION="0.16.1"
7-
ARG KUBECTL_SHA="7f9dbb80190945a5077dc5f4230202c22f68f9bd7f20c213c3cf5a74abf55e56"
8-
ARG KUBEVAL_SHA="2d6f9bda1423b93787fa05d9e8dfce2fc1190fefbcd9d0936b9635f3f78ba790"
5+
ARG KUBECTL_VERSION="1.22.6"
6+
ARG KUBECTL_SHA="1ab07643807a45e2917072f7ba5f11140b40f19675981b199b810552d6af5c53"
97

108
# Download and install tools
119
RUN apk update && apk upgrade && \
1210
apk add --no-cache openssl curl tar gzip bash ca-certificates py3-wheel
1311

1412
RUN \
15-
echo -e "${KUBECTL_SHA} /tmp/kubectl\n${KUBEVAL_SHA} /tmp/kubeval.tar.gz" >> /tmp/CHECKSUMS && \
13+
echo -e "${KUBECTL_SHA} /tmp/kubectl" >> /tmp/CHECKSUMS && \
1614
curl -L -o /tmp/kubectl "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \
17-
curl -L -o /tmp/kubeval.tar.gz "https://github.com/instrumenta/kubeval/releases/download/v${KUBEVAL_VERSION}/kubeval-linux-amd64.tar.gz" && \
1815
sha256sum /tmp/kub* && \
1916
sha256sum -c /tmp/CHECKSUMS && \
2017
# install kubectl
2118
mv /tmp/kubectl /usr/bin/kubectl && \
2219
chmod +x /usr/bin/kubectl && \
23-
# install kubeval
24-
mkdir /opt/kubeval && \
25-
tar -xzf /tmp/kubeval.tar.gz -C /opt/kubeval && \
26-
ln -s /opt/kubeval/kubeval /usr/bin/kubeval && \
2720
pip install --upgrade awscli
2821

2922
# Install app

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ You can also run k8t via docker
6161
$ docker run clarksource/k8t:latest
6262
```
6363

64-
**hint**: the docker image comes with [aws-cli](https://aws.amazon.com/cli/), [kubectl](https://github.com/kubernetes/kubectl) and [kubeval](https://github.com/instrumenta/kubeval).
64+
**hint**: the docker image comes with [aws-cli](https://aws.amazon.com/cli/), and [kubectl](https://github.com/kubernetes/kubectl).
6565

6666
### Completion
6767

0 commit comments

Comments
 (0)