feat: update schema

This commit is contained in:
Kevin Franklin Kim 2025-04-07 16:11:35 +02:00
parent 3c3b26fc13
commit dcc3292be7
No known key found for this signature in database
4 changed files with 98 additions and 0 deletions

View File

@ -39,6 +39,7 @@ schema:
--resolve ./jondot/hygen/config.schema.json \
--resolve ./k3d-io/k3d/config.schema.json \
--resolve ./kubernets/kubectl/config.schema.json \
--resolve ./kubernets/kubeforward/config.schema.json \
--resolve ./onepassword/config.schema.json \
--resolve ./pivotal/licensefinder/config.schema.json \
--resolve ./pulumi/pulumi/azure/config.schema.json \

View File

@ -108,6 +108,9 @@
},
"harbor": {
"$ref": "https://github.com/foomo/posh-providers/goharbor/harbor/config"
},
"kubeforward": {
"$ref": "https://github.com/foomo/posh-providers/kubernets/kubeforward/config"
}
},
"additionalProperties": false,

View File

@ -53,6 +53,9 @@
"kubectl": {
"$ref": "#/$defs/https%3A~1~1github.com~1foomo~1posh-providers~1kubernets~1kubectl~1config"
},
"kubeforward": {
"$ref": "#/$defs/https%3A~1~1github.com~1foomo~1posh-providers~1kubernets~1kubeforward~1config"
},
"licensefinder": {
"$ref": "#/$defs/https%3A~1~1github.com~1foomo~1posh-providers~1pivotal~1licensefinder~1config"
},
@ -1188,6 +1191,51 @@
}
}
},
"https://github.com/foomo/posh-providers/kubernets/kubeforward/config": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/https%3A~1~1github.com~1foomo~1posh-providers~1kubernets~1kubeforward~1config/$defs/Config",
"$defs": {
"Config": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/https%3A~1~1github.com~1foomo~1posh-providers~1kubernets~1kubeforward~1config/$defs/PortForward"
}
},
"PortForward": {
"type": "object",
"required": [
"cluster",
"namespace",
"description",
"target",
"port"
],
"properties": {
"description": {
"description": "Optional description",
"type": "string"
},
"cluster": {
"description": "Target cluster",
"type": "string"
},
"namespace": {
"description": "Target namespace",
"type": "string"
},
"port": {
"description": "Target and host port mapping",
"type": "string"
},
"target": {
"description": "Target name",
"type": "string"
}
},
"additionalProperties": false
}
}
},
"https://github.com/foomo/posh-providers/onepassword/config": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/https%3A~1~1github.com~1foomo~1posh-providers~1onepassword~1config/$defs/Config",

View File

@ -0,0 +1,46 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/foomo/posh-providers/kubernets/kubeforward/config",
"$ref": "#/$defs/Config",
"$defs": {
"Config": {
"additionalProperties": {
"$ref": "#/$defs/PortForward"
},
"type": "object"
},
"PortForward": {
"properties": {
"cluster": {
"type": "string",
"description": "Target cluster"
},
"namespace": {
"type": "string",
"description": "Target namespace"
},
"description": {
"type": "string",
"description": "Optional description"
},
"target": {
"type": "string",
"description": "Target name"
},
"port": {
"type": "string",
"description": "Target and host port mapping"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"cluster",
"namespace",
"description",
"target",
"port"
]
}
}
}