From f736a8b6e19724c018b1b2592b1474e803c27116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Thu, 8 Jul 2021 05:18:59 +0000 Subject: [PATCH 1/3] adding ContainerService eventgrid event schema --- .../ContainerService.json | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json diff --git a/specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json b/specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json new file mode 100644 index 000000000000..e87c1c4e5db1 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json @@ -0,0 +1,33 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-01-01", + "title": "Schema of Azure Kubernetes Service events published to Azure Event Grid", + "description": "Describes the schema of the Azure Kubernetes Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent" + }, + "paths": {}, + "definitions": { + "ContainerServiceNewKubernetesVersionAvailableEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NewKubernetesVersionAvailable event", + "type": "object", + "properties": { + "latestSupportedKubernetesVersion": { + "description": "The highest PATCH Kubernetes version for the highest MINOR version supported by ManagedCluster resource", + "type": "string" + }, + "latestStableKubernetesVersion": { + "description": "The highest PATCH Kubernetes version for the MINOR version considered stable for the ManagedCluster resource", + "type": "string" + }, + "lowestMinorKubernetesVersion": { + "description": "The highest PATCH Kubernetes version for the lowest applicable MINOR version available for the ManagedCluster resource", + "type": "string" + }, + "latestPreviewKubernetesVersion": { + "description": "The highest PATCH Kubernetes version considered preview for the ManagedCluster resource. There might not be any version in preview at the time of publishing the event", + "type": "string" + } + } + } + } +} \ No newline at end of file From 3d8d2c66d896d4bacffc8129381f39f4e786adca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Tue, 13 Jul 2021 06:41:02 +0000 Subject: [PATCH 2/3] add ref in readme --- specification/eventgrid/data-plane/readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md index 555b2d27c3c4..6fcfc2401860 100644 --- a/specification/eventgrid/data-plane/readme.md +++ b/specification/eventgrid/data-plane/readme.md @@ -86,7 +86,7 @@ input-file: - Microsoft.Web/stable/2018-01-01/Web.json - Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json - Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json - +- Microsoft.ContainerService/stable/2018-01-01/ContainerService.json ``` ### Suppression @@ -180,6 +180,7 @@ input-file: - $(this-folder)/Microsoft.Cache/stable/2018-01-01/RedisCache.json - $(this-folder)/Microsoft.Web/stable/2018-01-01/Web.json - $(this-folder)/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json + - $(this-folder)/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json ``` From 4894edb8349155c2c7f6677eee57c09c9b94f389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Tue, 13 Jul 2021 06:46:53 +0000 Subject: [PATCH 3/3] move to correct folder --- .../ContainerService.json | 33 ------------------- .../stable/2018-01-01/ContainerService.json | 33 +++++++++++++++++++ 2 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json create mode 100644 specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json diff --git a/specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json b/specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json deleted file mode 100644 index e87c1c4e5db1..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.ContainerService/ContainerService.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2018-01-01", - "title": "Schema of Azure Kubernetes Service events published to Azure Event Grid", - "description": "Describes the schema of the Azure Kubernetes Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent" - }, - "paths": {}, - "definitions": { - "ContainerServiceNewKubernetesVersionAvailableEventData": { - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NewKubernetesVersionAvailable event", - "type": "object", - "properties": { - "latestSupportedKubernetesVersion": { - "description": "The highest PATCH Kubernetes version for the highest MINOR version supported by ManagedCluster resource", - "type": "string" - }, - "latestStableKubernetesVersion": { - "description": "The highest PATCH Kubernetes version for the MINOR version considered stable for the ManagedCluster resource", - "type": "string" - }, - "lowestMinorKubernetesVersion": { - "description": "The highest PATCH Kubernetes version for the lowest applicable MINOR version available for the ManagedCluster resource", - "type": "string" - }, - "latestPreviewKubernetesVersion": { - "description": "The highest PATCH Kubernetes version considered preview for the ManagedCluster resource. There might not be any version in preview at the time of publishing the event", - "type": "string" - } - } - } - } -} \ No newline at end of file diff --git a/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json b/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json new file mode 100644 index 000000000000..14308bc7a6d6 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json @@ -0,0 +1,33 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-01-01", + "title": "Schema of Azure Kubernetes Service events published to Azure Event Grid", + "description": "Describes the schema of the Azure Kubernetes Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent" + }, + "paths": {}, + "definitions": { + "ContainerServiceNewKubernetesVersionAvailableEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NewKubernetesVersionAvailable event", + "type": "object", + "properties": { + "latestSupportedKubernetesVersion": { + "description": "The highest PATCH Kubernetes version for the highest MINOR version supported by ManagedCluster resource", + "type": "string" + }, + "latestStableKubernetesVersion": { + "description": "The highest PATCH Kubernetes version for the MINOR version considered stable for the ManagedCluster resource", + "type": "string" + }, + "lowestMinorKubernetesVersion": { + "description": "The highest PATCH Kubernetes version for the lowest applicable MINOR version available for the ManagedCluster resource", + "type": "string" + }, + "latestPreviewKubernetesVersion": { + "description": "The highest PATCH Kubernetes version considered preview for the ManagedCluster resource. There might not be any version in preview at the time of publishing the event", + "type": "string" + } + } + } + } +}