Skip to content
Snippets Groups Projects
Commit 716b41e9 authored by Chanwit Kaewkasi's avatar Chanwit Kaewkasi
Browse files

publish json schemas as a single URL


Signed-off-by: default avatarChanwit Kaewkasi <chanwit@gmail.com>

This change publishes the auto-generated JSON schemas as a single URL,
so that it is consumable by a tool like VS Code.

The CRD generator creates 2 files, a tar.gz for Kubeval,
and another one is a JSON file. The JSON file is a combination of
all schemas, put under the "oneOf" operator.
parent e72214e2
No related branches found
No related tags found
No related merge requests found
...@@ -61,8 +61,10 @@ jobs: ...@@ -61,8 +61,10 @@ jobs:
with: with:
crd: all-crds.yaml crd: all-crds.yaml
output: schemas output: schemas
combined_filename: crd-schemas.json
- name: Archive the OpenAPI JSON schemas - name: Archive the OpenAPI JSON schemas
run: | run: |
mv schemas/crd-schemas.json ./output/crd-schemas.json
tar -czvf ./output/crd-schemas.tar.gz -C schemas . tar -czvf ./output/crd-schemas.tar.gz -C schemas .
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1 uses: goreleaser/goreleaser-action@v1
......
...@@ -83,6 +83,7 @@ release: ...@@ -83,6 +83,7 @@ release:
- glob: ./output/crd-schemas.tar.gz - glob: ./output/crd-schemas.tar.gz
- glob: ./output/manifests.tar.gz - glob: ./output/manifests.tar.gz
- glob: ./output/install.yaml - glob: ./output/install.yaml
- glob: ./output/crd-schemas.json
dockers: dockers:
- image_templates: - image_templates:
- 'fluxcd/flux-cli:{{ .Tag }}-amd64' - 'fluxcd/flux-cli:{{ .Tag }}-amd64'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment