Provisioning: Update types (#100722)
* Provisioning: Remove S3 * Provisioning: Use URL for GitHub Co-Authored-By: Ryan McKinley <ryantxu@gmail.com> Co-Authored-By: Alex Khomenko <Clarity-89@users.noreply.github.com> * Provisioning: Use workflow list Co-Authored-By: =?UTF-8?q?Roberto=20Jim=C3=A9nez=20S=C3=A1nchez?= <roberto.jimenez@grafana.com> * Provisioning: Model secrets * Provisioning: Define a total in the job summary * Provisioning: Generate code * Provisioning: Update testdata --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com> Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> Co-authored-by: =?UTF-8?q?Roberto=20Jim=C3=A9nez=20S=C3=A1nchez?= <roberto.jimenez@grafana.com>
This commit is contained in:
co-authored by
Ryan McKinley
Alex Khomenko
Roberto Jiménez Sánchez
parent
a05ba6ff41
commit
f535a7804f
@@ -1306,21 +1306,35 @@
|
||||
"description": "Whether we should commit to change branches and use a Pull Request flow to achieve this. By default, this is false (i.e. we will commit straight to the main branch).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"generateDashboardPreviews": {
|
||||
"description": "Whether we should show dashboard previews in the pull requests caused by the BranchWorkflow option. By default, this is false (i.e. we will not create previews). This option is a no-op if BranchWorkflow is `false` or default.",
|
||||
"description": "Whether we should show dashboard previews for pull requests. By default, this is false (i.e. we will not create previews).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"owner": {
|
||||
"description": "The owner of the repository (e.g. example in `example/test` or `https://github.com/example/test`).",
|
||||
"type": "string"
|
||||
},
|
||||
"repository": {
|
||||
"description": "The name of the repository (e.g. test in `example/test` or `https://github.com/example/test`).",
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "Token for accessing the repository.",
|
||||
"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`).",
|
||||
"type": "string"
|
||||
},
|
||||
"workflows": {
|
||||
"description": "Workflow allowed for changes to the repository. The order is relevant for defining the precedence of the workflows. Possible values: pull-request, branch, push.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"branch",
|
||||
"push"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1468,7 +1482,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"github": {
|
||||
"description": "The repository on GitHub. Mutually exclusive with local | s3 | github.",
|
||||
"description": "The repository on GitHub. Mutually exclusive with local | github.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.GitHubRepositoryConfig"
|
||||
@@ -1476,7 +1490,7 @@
|
||||
]
|
||||
},
|
||||
"local": {
|
||||
"description": "The repository on the local file system. Mutually exclusive with local | s3 | github.",
|
||||
"description": "The repository on the local file system. Mutually exclusive with local | github.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.LocalRepositoryConfig"
|
||||
@@ -1488,14 +1502,6 @@
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"s3": {
|
||||
"description": "The repository in an S3 bucket. Mutually exclusive with local | s3 | github.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.S3RepositoryConfig"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sync": {
|
||||
"description": "Sync settings -- how values are pulled from the repository into grafana",
|
||||
"default": {},
|
||||
@@ -1511,13 +1517,12 @@
|
||||
"default": ""
|
||||
},
|
||||
"type": {
|
||||
"description": "The repository type. When selected oneOf the values below should be non-nil\n\nPossible enum values:\n - `\"github\"`\n - `\"local\"`\n - `\"s3\"`",
|
||||
"description": "The repository type. When selected oneOf the values below should be non-nil\n\nPossible enum values:\n - `\"github\"`\n - `\"local\"`",
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"github",
|
||||
"local",
|
||||
"s3"
|
||||
"local"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1605,17 +1610,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.S3RepositoryConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"bucket": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.SyncOptions": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -1703,6 +1697,10 @@
|
||||
"com.github.grafana.grafana.pkg.apis.provisioning.v0alpha1.WebhookStatus": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"encryptedSecret": {
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
"description": "load resources from github",
|
||||
"type": "github",
|
||||
"github": {
|
||||
"owner": "grafana",
|
||||
"repository": "git-ui-sync-demo",
|
||||
"url": "https://github.com/grafana/git-ui-sync-demo",
|
||||
"branch": "dummy-branch",
|
||||
"branchWorkflow": true,
|
||||
"generateDashboardPreviews": true,
|
||||
|
||||
Reference in New Issue
Block a user