Provisioning: Add inline secure values to repository schema (#109594)
This commit is contained in:
@@ -2375,6 +2375,9 @@
|
||||
"metadata": {
|
||||
"default": {}
|
||||
},
|
||||
"secure": {
|
||||
"default": {}
|
||||
},
|
||||
"spec": {
|
||||
"default": {}
|
||||
},
|
||||
@@ -3464,6 +3467,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"secure": {
|
||||
"default": {},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.apps.provisioning.pkg.apis.provisioning.v0alpha1.SecureValues"
|
||||
}
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"default": {},
|
||||
"allOf": [
|
||||
@@ -4193,6 +4204,30 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"com.github.grafana.grafana.apps.provisioning.pkg.apis.provisioning.v0alpha1.SecureValues": {
|
||||
"description": "NOT YET USED FOR REAL -- testing secure value workflow",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"token": {
|
||||
"description": "Token used to connect the configured repository",
|
||||
"default": {},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.InlineSecureValue"
|
||||
}
|
||||
]
|
||||
},
|
||||
"webhookSecret": {
|
||||
"description": "Some webhooks (github) require a secret key value",
|
||||
"default": {},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.InlineSecureValue"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"com.github.grafana.grafana.apps.provisioning.pkg.apis.provisioning.v0alpha1.SyncJobOptions": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -4406,6 +4441,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.InlineSecureValue": {
|
||||
"description": "Allow access to a secure value inside",
|
||||
"oneOf": [
|
||||
{
|
||||
"required": [
|
||||
"name"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"create"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"remove"
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"create": {
|
||||
"description": "Create a secure value -- this is only used for POST/PUT",
|
||||
"type": "string",
|
||||
"maxLength": 24576,
|
||||
"minLength": 1
|
||||
},
|
||||
"name": {
|
||||
"description": "Name in the secret service (reference)",
|
||||
"type": "string",
|
||||
"maxLength": 253,
|
||||
"minLength": 1
|
||||
},
|
||||
"remove": {
|
||||
"description": "Remove this value from the secure value map Values owned by this resource will be deleted if necessary",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.Unstructured": {
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
|
||||
Reference in New Issue
Block a user