Definitions for @turbot/azure-aks
aks
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "AKS" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/aksAka" } }, "title": { "const": "AKS" }, "custom": { "type": "object", "properties": { "azure": { "$ref": "azure#/definitions/azureMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "base", "input": { "name": "AKS", "turbot": { "akas": [ "azure:///subscriptions/ec7a5a3a-4225-474f-9dbe-bf477c8ea51b/providers/Microsoft.ContainerService/services/aks" ], "title": "AKS", "custom": { "azure": { "subscriptionId": "ec7a5a3a-4225-474f-9dbe-bf477c8ea51b" } } } } }, { "description": "invalid - wrong title", "input": { "name": "AKS", "turbot": { "akas": [ "azure:///subscriptions/ec7a5a3a-4225-474f-9dbe-bf477c8ea51b/providers/Microsoft.ContainerService/services/aks" ], "title": "azure-aks", "custom": { "azure": { "subscriptionId": "ec7a5a3a-4225-474f-9dbe-bf477c8ea51b" } } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/azure-aks#/definitions/aks", "modUri": "tmod:@turbot/azure-aks" }}
aksAka
Schema
{ "type": "string", "pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/providers/Microsoft.ContainerService/services/aks", "tests": [ { "description": "base case", "input": "azure:///subscriptions/ec7a5a3a-4225-474f-9dbe-bf477c8ea51b/providers/Microsoft.ContainerService/services/aks" }, { "description": "invalid - account ID too long", "input": "azure:///subscriptions/ec7a5a3a-4225-474f-9dbejhg-bf477c8ea51b/providers/Microsoft.ContainerService/services/aks", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/azure-aks#/definitions/aksAka", "modUri": "tmod:@turbot/azure-aks" }}
managedCluster
Schema
{ "type": "object", "properties": { "id": { "type": "string" }, "name": { "$ref": "#/definitions/managedClusterName" }, "type": { "type": "string" }, "location": { "type": "string" }, "tags": { "$ref": "azure#/definitions/tags" }, "provisioningState": { "type": "string" }, "maxAgentPools": { "type": "integer" }, "kubernetesVersion": { "type": "string" }, "dnsPrefix": { "type": "string" }, "fqdn": { "type": "string" }, "agentPoolProfiles": { "type": "array" }, "servicePrincipalProfile": { "type": "object" }, "addonProfiles": { "type": "object" }, "nodeResourceGroup": { "type": "string" }, "enableRBAC": { "type": "boolean" }, "networkProfile": { "type": "object" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/managedClusterAka" } }, "title": { "$ref": "#/definitions/managedClusterName" }, "tags": { "$ref": "azure#/definitions/tags" }, "custom": { "type": "object", "properties": { "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" }, "azure": { "$ref": "azure#/definitions/azureMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Base - All valid Properties", "input": { "name": "test-cluster", "turbot": { "akas": [ "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.ContainerService/managedClusters/test01" ], "title": "test-cluster", "custom": { "azure": { "subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7", "resourceGroupName": "dev" } } } } }, { "description": "Invalid - Incorrect name", "input": { "name": "-test", "turbot": { "akas": [ "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.ContainerService/managedClusters/test01" ], "title": "-test", "custom": { "azure": { "subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7", "resourceGroupName": "dev" } } } }, "expected": false }, { "description": "Invalid - name missing", "input": { "turbot": { "akas": [ "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.ContainerService/managedClusters/test01" ], "title": "test-02", "custom": { "azure": { "subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7", "resourceGroupName": "dev" } } } } } ], ".turbot": { "uri": "tmod:@turbot/azure-aks#/definitions/managedCluster", "modUri": "tmod:@turbot/azure-aks" }}
managedClusterAka
Schema
{ "type": "string", "pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.ContainerService/managedClusters/[a-zA-Z0-9][a-zA-Z0-9-_]+[a-zA-Z0-9]$", "tests": [ { "description": "base case", "input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.ContainerService/managedClusters/test01" }, { "description": "invalid - Wrong Account id", "input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2dfghtc77f7/resourceGroups/dev/providers/Microsoft.ContainerService/managedClusters/test01", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/azure-aks#/definitions/managedClusterAka", "modUri": "tmod:@turbot/azure-aks" }}
managedClusterName
Schema
{ "type": "string", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_]+[a-zA-Z0-9]$", "tests": [ { "descritpion": "base case", "input": "test-cluster" }, { "description": "invalid - Cannot start with Hyphen", "input": "-test", "expected": false }, { "description": "invalid - too short", "input": "te", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/azure-aks#/definitions/managedClusterName", "modUri": "tmod:@turbot/azure-aks" }}