Skip to content

Commit 476e44a

Browse files
add kubeconform plugin
kubeval is deprecated. kubeconform is a replacement. Kubeval stays for backward compatibility but will be removed in future releases eventually
1 parent 99a2495 commit 476e44a

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/actions/build-and-test/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ runs:
3232
shell: bash
3333
run: docker run --rm helm-docker-test kubeval --version
3434

35+
- name: Test helm-kubeconform
36+
shell: bash
37+
run: docker run --rm helm-docker-test kubeconform --help
38+
3539
- name: Cleanup
3640
shell: bash
3741
run: sudo rm -rf test-chart val1.yaml val2.yaml

.github/workflows/automaticRelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
4949
- [Helm](https://www.helm.sh):${{ steps.compare_releases.outputs.helmRelease }}
5050
- [Helm-kubeval](https://github.com/instrumenta/helm-kubeval):0.13.0
51+
- [Helm-kubeconform](https://github.com/jtyr/kubeconform-helm):0.2.0
5152
- [Helm-values](https://github.com/shihyuho/helm-values):1.2.0
5253
5354
The image can be pulled with `$ docker pull ghcr.io/cloudogu/helm:${{ steps.compare_releases.outputs.helmRelease }}-1`

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ ARG HELM_VERSION=4.1.1
66
# Kubeval does not have tags, so we use a commit
77
ARG HELM_KUBEVAL_VERSION=7476464
88
ARG HELM_VALUES_VERSION=1.2.0
9+
ARG HELM_KUBECONFORM_VERSION=v0.2.0
910

1011
# Make helm install everything in defined folder
1112
ENV HOME=/helm
13+
ENV HELM_PLUGINS=${HOME}/.local/share/helm/plugins
1214

1315
RUN apk add --no-cache curl git bash gnupg outils-sha256
1416

@@ -30,6 +32,9 @@ RUN git clone -n https://github.com/instrumenta/helm-kubeval ${HOME}/.local/shar
3032
HELM_PLUGIN_DIR=$(pwd) scripts/install.sh && \
3133
rm -rf .git
3234

35+
# install helm-kubeconform
36+
RUN helm plugin install https://github.com/jtyr/kubeconform-helm --version ${HELM_KUBECONFORM_VERSION} || helm plugin install https://github.com/jtyr/kubeconform-helm --version ${HELM_KUBECONFORM_VERSION} --verify=false
37+
3338
# install helm-values
3439
RUN git clone --depth 1 --branch ${HELM_VALUES_VERSION} https://github.com/shihyuho/helm-values /tmp/helm-values
3540
# helm 3 removed the option "home" to get helms home-path, so "helm home" won't work with helm 3
@@ -56,9 +61,9 @@ ENV HELM_CACHE_HOME="/helm/.cache/helm" \
5661
HELM_REGISTRY_CONFIG="/helm/.config/helm/registry.json" \
5762
HELM_REPOSITORY_CACHE="/helm/.cache/helm/repository" \
5863
HELM_REPOSITORY_CONFIG="/helm/.config/helm/repositories.yaml" \
59-
PATH="/helm/.local/share/helm/plugins/helm-kubeval/bin:$PATH"
64+
PATH="/helm/.local/share/helm/plugins/helm-kubeval/bin:/helm/.local/share/helm/plugins/kubeconform-helm/bin:$PATH"
6065

61-
RUN apk add --update --no-cache ca-certificates curl git openssl bash
66+
RUN apk add --update --no-cache ca-certificates curl git openssl bash python3 py3-yaml
6267
COPY --from=builder /dist /
6368

6469
ENTRYPOINT ["helm"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Containerized Kubernetes Helm client with support for plugins
77

88
```bash
99
helm kubeval
10+
helm kubeconform
1011
helm values
1112
```
1213

0 commit comments

Comments
 (0)