Skip to content

Commit

Permalink
Merge pull request #8 from ventx/feat-add-kube-json-schema
Browse files Browse the repository at this point in the history
Local Kubernetes Schema JSON files for air-gapped environments
  • Loading branch information
hajowieland committed Jul 4, 2023
2 parents 2e03bc2 + d2a26ba commit e6a577f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ jobs:
uses: hadolint/hadolint-action@master
with:
dockerfile: "Dockerfile"
ignore: "DL3003"
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ repos:
rev: v2.12.0
hooks:
- id: hadolint
args:
- --ignore
- DL3003
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$
curl -sLS "https://github.com/yannh/kubeconform/releases/download/v${KUBECONFORM}/kubeconform-linux-${ARCHITECTURE}.tar.gz" | tar -xzO kubeconform > /usr/local/bin/kubeconform && \
chmod +x /usr/local/bin/kubeconform

# kubernetes-json-schema
RUN git clone --depth 1 --branch master --no-checkout https://github.com/yannh/kubernetes-json-schema.git && \
cd kubernetes-json-schema && git sparse-checkout set v${KUBECTL}-standalone-strict && git checkout master && \
mkdir -p /schema && cp -r v${KUBECTL}-standalone-strict /schema/ && cd .. && rm -rf kubernetes-json-schema

WORKDIR /work

CMD ["helm", "version"]

0 comments on commit e6a577f

Please sign in to comment.