Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update EventGrid Schema for Azure Container Registry #16776

Merged
merged 2 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"description": "The action that encompasses the provided event.",
"type": "string"
},
"location": {
"description": "The location of the event.",
"type": "string"
},
"target": {
"$ref": "#/definitions/ContainerRegistryEventTarget",
"description": "The target of the event."
Expand All @@ -74,6 +78,10 @@
"source": {
"$ref": "#/definitions/ContainerRegistryEventSource",
"description": "The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it."
},
"connectedRegistry": {
"$ref": "#/definitions/ContainerRegistryEventConnectedRegistry",
"description": "The connected registry information if the event is generated by a connected registry."
}
}
},
Expand All @@ -93,9 +101,17 @@
"description": "The action that encompasses the provided event.",
"type": "string"
},
"location": {
"description": "The location of the event.",
"type": "string"
},
"target": {
"$ref": "#/definitions/ContainerRegistryArtifactEventTarget",
"description": "The target of the event."
},
"connectedRegistry": {
"$ref": "#/definitions/ContainerRegistryEventConnectedRegistry",
"description": "The connected registry information if the event is generated by a connected registry."
}
}
},
Expand Down Expand Up @@ -214,6 +230,15 @@
"type": "string"
}
}
},
"ContainerRegistryEventConnectedRegistry": {
"description": "The connected registry information if the event is generated by a connected registry.",
"properties": {
"name": {
"description": "The name of the connected registry that generated this event.",
"type": "string"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"id":"ea3a9c28-5b17-40f6-a500-3f02b682927",
"timestamp":"2019-03-12T22:42:08.3783775+00:00",
"action":"chart_delete",
"location": "westus",
"target":{
"mediaType":"application/vnd.acr.helm.chart",
"size":25265,
Expand All @@ -16,8 +17,11 @@
"tag":"mychart-1.0.0.tgz",
"name":"mychart",
"version":"1.0.0"
},
"connectedRegistry": {
"name": "edge1"
}
},
"dataVersion": "1.0",
"dataVersion": "2.0",
"metadataVersion": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"id":"ea3a9c28-5b17-40f6-a500-3f02b682927",
"timestamp":"2019-03-12T22:16:31.0087496+00:00",
"action":"chart_push",
"location": "westus",
"target":{
"mediaType":"application/vnd.acr.helm.chart",
"size":25265,
Expand All @@ -16,8 +17,11 @@
"tag":"mychart-1.0.0.tgz",
"name":"mychart",
"version":"1.0.0"
},
"connectedRegistry": {
"name": "edge1"
}
},
"dataVersion": "1.0",
"dataVersion": "2.0",
"metadataVersion": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"id": "6fdef14c-2594-41e8-9156-c0376eb0a190",
"timestamp": "2021-09-08T06:49:40.1850248Z",
"action": "delete",
"location": "westus",
"target": {
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:57a94fc99816c6aa225678b738ac40d85422e75dbb96115f1bb9b6ed77176166",
Expand All @@ -17,9 +18,12 @@
"host": "jolovcr.azurecr.io",
"method": "DELETE",
"useragent": "python-requests/2.22.0"
},
"connectedRegistry": {
"name": "edge1"
}
},
"dataVersion": "1.0",
"dataVersion": "2.0",
"metadataVersion": "1",
"eventTime": "2021-09-08T06:49:40.5342401Z"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"id": "c25fdb80-ebbd-4dd0-a29c-a7349e6388f6",
"timestamp": "2021-09-08T06:37:45.4681009Z",
"action": "push",
"location": "westus",
"target": {
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 1153,
Expand All @@ -20,9 +21,12 @@
"host": "jolovcr.azurecr.io",
"method": "PUT",
"useragent": "docker/20.10.7 go/go1.13.15 git-commit/b0f5bc3 kernel/5.10.16.3-microsoft-standard-WSL2 os/linux arch/amd64 UpstreamClient(Docker-Client/20.10.7 \\(windows\\))"
},
"connectedRegistry": {
"name": "edge1"
}
},
"dataVersion": "1.0",
"dataVersion": "2.0",
"metadataVersion": "1",
"eventTime": "2021-09-08T06:37:45.6609948Z"
}