Provisioning: Add pure git repository type (#106815)
* Add repository type git to spec * Register git type * Update test checks
This commit is contained in:
committed by
GitHub
parent
806068b9de
commit
3cb62e370b
@@ -2622,6 +2622,37 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.GitRepositoryConfig": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"branch"
|
||||
],
|
||||
"properties": {
|
||||
"branch": {
|
||||
"description": "The branch to use in the repository.",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"encryptedToken": {
|
||||
"description": "Token for accessing the repository, but encrypted. This is not possible to read back to a user decrypted.",
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"path": {
|
||||
"description": "Path is the subdirectory for the Grafana data. If specified, Grafana will ignore anything that is outside this directory in the repository. This is usually something like `grafana/`. Trailing and leading slash are not required. They are always added when needed. The path is relative to the root of the repository, regardless of the leading slash.\n\nWhen specifying something like `grafana-`, we will not look for `grafana-*`; we will only look for files under the directory `/grafana-/`. That means `/grafana-example.json` would not be found.",
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "Token for accessing the repository. If set, it will be encrypted into encryptedToken, then set to an empty string again.",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"description": "The repository URL (e.g. `https://github.com/example/test.git`).",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.HealthStatus": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -3127,8 +3158,16 @@
|
||||
"description": "Repository description",
|
||||
"type": "string"
|
||||
},
|
||||
"git": {
|
||||
"description": "The repository on Git. Mutually exclusive with local | github | git.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.GitRepositoryConfig"
|
||||
}
|
||||
]
|
||||
},
|
||||
"github": {
|
||||
"description": "The repository on GitHub. Mutually exclusive with local | github.",
|
||||
"description": "The repository on GitHub. Mutually exclusive with local | github | git.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.GitHubRepositoryConfig"
|
||||
@@ -3158,10 +3197,11 @@
|
||||
"default": ""
|
||||
},
|
||||
"type": {
|
||||
"description": "The repository type. When selected oneOf the values below should be non-nil\n\nPossible enum values:\n - `\"github\"`\n - `\"local\"`",
|
||||
"description": "The repository type. When selected oneOf the values below should be non-nil\n\nPossible enum values:\n - `\"git\"`\n - `\"github\"`\n - `\"local\"`",
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"git",
|
||||
"github",
|
||||
"local"
|
||||
]
|
||||
@@ -3271,10 +3311,11 @@
|
||||
"default": ""
|
||||
},
|
||||
"type": {
|
||||
"description": "The repository type\n\nPossible enum values:\n - `\"github\"`\n - `\"local\"`",
|
||||
"description": "The repository type\n\nPossible enum values:\n - `\"git\"`\n - `\"github\"`\n - `\"local\"`",
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"git",
|
||||
"github",
|
||||
"local"
|
||||
]
|
||||
@@ -3523,10 +3564,11 @@
|
||||
"default": ""
|
||||
},
|
||||
"type": {
|
||||
"description": "The repository type\n\nPossible enum values:\n - `\"github\"`\n - `\"local\"`",
|
||||
"description": "The repository type\n\nPossible enum values:\n - `\"git\"`\n - `\"github\"`\n - `\"local\"`",
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"git",
|
||||
"github",
|
||||
"local"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user