forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This builds on top of the existing azure-containerapp-template JSON schema add defines additional properties from https://learn.microsoft.com/en-us/azure/container-apps/azure-resource-manager-api-spec that are required when using 'az containerapp update --yaml'.
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://faithlife.github.io/schemastore/src/schemas/json/azure-containerapp.json", | ||
"description": "Container App definition (for use with 'az containerapp update --yaml').\nSee https://learn.microsoft.com/en-us/azure/container-apps/azure-resource-manager-api-spec?tabs=arm-template#container-app.", | ||
"properties": { | ||
"properties": { | ||
"type": "object", | ||
"properties": { | ||
"template": { | ||
"$ref": "https://json.schemastore.org/azure-containerapp-template.json", | ||
"description": "The template for the container app. See https://learn.microsoft.com/en-us/azure/container-apps/azure-resource-manager-api-spec?tabs=arm-template#propertiestemplate." | ||
}, | ||
"configuration": { | ||
"type": "object", | ||
"properties": { | ||
"secrets": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"pattern": "^[a-z0-9-]{1,63}$", | ||
"description": "The name of the secret in the container app, which will be referenced by secretRef. Must be lowercase." | ||
}, | ||
"keyVaultUrl": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "The Key Vault URL containing the secret" | ||
}, | ||
"identity": { | ||
"type": "string", | ||
"pattern": "^system$", | ||
"description": "The identity to use to access the secret. Currently only 'system' is supported." | ||
} | ||
}, | ||
"required": ["name", "keyVaultUrl", "identity"], | ||
"additionalProperties": false | ||
}, | ||
"description": "A list of secrets from Key Vault." | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"required": ["secrets"], | ||
"additionalProperties": false, | ||
"description": "Configuration for the container app. See https://learn.microsoft.com/en-us/azure/container-apps/azure-resource-manager-api-spec?tabs=arm-template#propertiesconfiguration." | ||
} | ||
}, | ||
"required": [ | ||
"template" | ||
], | ||
"description": "Root of the Container App definition.", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": [ | ||
"properties" | ||
] | ||
} |