Skip to content

Commit

Permalink
docs: copy generated JSON schema to host
Browse files Browse the repository at this point in the history
After the JSON schema is generated in a build container, copy it over to the host, so it becomes a part of the codebase.

This is required as the location of the schema changed recently from being under `pkg/machinery/config/types/` to be under `pkg/machinery/config/schemas/`.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
  • Loading branch information
utkuozdemir committed Jan 26, 2024
1 parent f11139c commit cf06033
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -300,6 +300,7 @@ COPY --from=generate-build /api/inspect/*.pb.go /pkg/machinery/api/inspect/
COPY --from=go-generate /src/pkg/flannel/ /pkg/flannel/
COPY --from=go-generate /src/pkg/imager/profile/ /pkg/imager/profile/
COPY --from=go-generate /src/pkg/machinery/resources/ /pkg/machinery/resources/
COPY --from=go-generate /src/pkg/machinery/config/schemas/ /pkg/machinery/config/schemas/
COPY --from=go-generate /src/pkg/machinery/config/types/ /pkg/machinery/config/types/
COPY --from=go-generate /src/pkg/machinery/nethelpers/ /pkg/machinery/nethelpers/
COPY --from=go-generate /src/pkg/machinery/extensions/ /pkg/machinery/extensions/
Expand Down
7 changes: 7 additions & 0 deletions pkg/machinery/config/schemas/config.schema.json
Expand Up @@ -2604,6 +2604,13 @@
"description": "Kernel driver, supports matching by wildcard.\n",
"markdownDescription": "Kernel driver, supports matching by wildcard.",
"x-intellij-html-description": "\u003cp\u003eKernel driver, supports matching by wildcard.\u003c/p\u003e\n"
},
"physical": {
"type": "boolean",
"title": "physical",
"description": "Select only physical devices.\n",
"markdownDescription": "Select only physical devices.",
"x-intellij-html-description": "\u003cp\u003eSelect only physical devices.\u003c/p\u003e\n"
}
},
"additionalProperties": false,
Expand Down
7 changes: 7 additions & 0 deletions website/content/v1.7/schemas/config.schema.json
Expand Up @@ -2604,6 +2604,13 @@
"description": "Kernel driver, supports matching by wildcard.\n",
"markdownDescription": "Kernel driver, supports matching by wildcard.",
"x-intellij-html-description": "\u003cp\u003eKernel driver, supports matching by wildcard.\u003c/p\u003e\n"
},
"physical": {
"type": "boolean",
"title": "physical",
"description": "Select only physical devices.\n",
"markdownDescription": "Select only physical devices.",
"x-intellij-html-description": "\u003cp\u003eSelect only physical devices.\u003c/p\u003e\n"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit cf06033

Please sign in to comment.