Skip to content

Commit 87a98a1

Browse files
🐓 ADD - kube-linter to the jenkins image for helm 🐓 (#524)
* 🐻 ADD - hugo static site builder 🐻 * 🐭 ADD - Hugo Extended binary for scss compilation 🐭 * 🐲 ADD - yq to tekkers task and version bump 🐲 * 🤗 Update tekton-task-images/helm/Dockerfile Co-authored-by: Petter Abrahamsson <petter@jebus.nu> * 🤗🤗 Update tekton-task-images/helm/Dockerfile Co-authored-by: Petter Abrahamsson <petter@jebus.nu> * 🐧 ADD - xargs to container cuz tekkton 🐧 * 🐉 ADD - wider group of people to help maintain repo 🐉 * 🐓 ADD - kube-linter to the jenkins image for helm 🐓 Co-authored-by: Petter Abrahamsson <petter@jebus.nu>
1 parent 933031b commit 87a98a1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

jenkins-agents/jenkins-agent-helm/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
FROM quay.io/openshift/origin-jenkins-agent-base:4.7
1+
FROM quay.io/openshift/origin-jenkins-agent-base:4.8
22

33
ARG VERSION=3.5.2
44
ARG YQ_VERSION=v4.5.1
55
ARG CT_VERSION=3.3.1
66
ARG OPENSHIFT_CLIENT_VERSION=4.7.5
77
ARG CONFTEST_VERSION=0.23.0
8+
ARG KUBE_LINTER_VERSION=0.2.3
89

910
## Required in order to avoid ct "ascii codec can't encode character" error
1011
ENV PYTHONIOENCODING=utf-8
@@ -14,10 +15,12 @@ COPY ubi8.repo /tmp/
1415
## Install helm and yq and conftest
1516
RUN curl -skL -o /tmp/helm.tar.gz https://get.helm.sh/helm-v${VERSION}-linux-amd64.tar.gz && \
1617
curl -skL -o /tmp/conftest.tar.gz https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz && \
18+
curl -skL -o /tmp/kube-linter.tar.gz https://github.com/stackrox/kube-linter/releases/download/${KUBE_LINTER_VERSION}/kube-linter-linux.tar.gz && \
1719
tar -C /tmp -xzf /tmp/helm.tar.gz && \
1820
tar -C /tmp -xzf /tmp/conftest.tar.gz && \
19-
mv -v /tmp/linux-amd64/helm /tmp/conftest /usr/local/bin && \
20-
chmod -R 775 /usr/local/bin/helm /usr/local/bin/conftest && \
21+
tar -C /tmp -xzf /tmp/kube-linter.tar.gz && \
22+
mv -v /tmp/linux-amd64/helm /tmp/conftest /tmp/kube-linter /usr/local/bin && \
23+
chmod -R 775 /usr/local/bin/helm /usr/local/bin/conftest /usr/local/bin/kube-linter && \
2124
rm -rf /tmp/*.tar.gz && \
2225
rm -rf /tmp/linux-amd64 && \
2326
curl -sL https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -o /usr/local/bin/yq && \

jenkins-agents/jenkins-agent-helm/Jenkinsfile.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pipeline {
1515
oc version
1616
kubectl version
1717
conftest --version
18+
kube-linter version
1819
"""
1920
}
2021
}

0 commit comments

Comments
 (0)