Apps and sources
Preview

Inspect a repository folder before making a source of it

Looks at the folder a git source would point at, on the given ref (the main branch when empty), and says how its manifests are best rendered: a Chart.yaml is Helm, a kustomization is Kustomize, other YAML is plain manifests. It reads one commit shallowly through the git provider, like a render does,

POST
/sources/inspect
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

application/json
  1. body
url*string

The git URL, as a source takes it.

Length1 <= length <= 2048
path?string
Lengthlength <= 512
Default""
ref?string

The branch or tag to read. Empty reads the main branch.

Lengthlength <= 256
Default""
credentialsRef?string
Lengthlength <= 256
Default""

Response Body

What the folder holds.

application/json
  1. response
found*boolean

False when the folder holds no chart, kustomization or manifests.

renderType?RenderType
Value in"helm""kustomize""plain"
reason*string

One short sentence naming the file that decided it, or what was not found.

ref?string

The branch or ref that was read.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/sources/inspect' \  -H 'Content-Type: application/json' \  -d '{  "url": "string"}'
Example Response
{  "found": true,  "renderType": "helm",  "reason": "string",  "ref": "string"}