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

Support log streaming on build resource #25902

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,14 @@
"description": "Configuration of the build."
},
"uploadEndpoint": {
"type": "string",
"$ref": "#/definitions/Endpoint",
"description": "Endpoint to which the source code should be uploaded.",
"readOnly": true
},
"logStreamEndpoint": {
"$ref": "#/definitions/Endpoint",
"description": "Endpoint from which the build logs can be streamed.",
"readOnly": true
}
},
"description": "The build properties."
Expand Down Expand Up @@ -388,6 +393,24 @@
"server"
]
},
"Endpoint": {
"type": "object",
"properties": {
"endpoint": {
"type": "string",
"description": "Endpoint url."
},
"token": {
"type": "string",
pauld-msft marked this conversation as resolved.
Show resolved Hide resolved
"x-ms-secret": true,
"description": "Authentication token to be passed to the endpoint via headers."
}
},
"description": "Endpoint to interact with the build once it has been provisioned.",
"required": [
"endpoint"
]
},
"EnvironmentVariable": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/upload",
"token": "asdf"
},
"logStreamEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/logstream",
"token": "asdf"
}
},
"systemData": {
"createdBy": "[email protected]",
Expand Down Expand Up @@ -194,7 +201,14 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/upload",
"token": "asdf"
},
"logStreamEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/logstream",
"token": "asdf"
}
},
"systemData": {
"createdBy": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@
"properties": {
"provisioningState": "Succeeded",
"buildStatus": "InProgress",
"uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
"uploadEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/upload",
"token": "asdf"
},
"logStreamEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/logstream",
"token": "asdf"
}
},
"systemData": {
"createdBy": "[email protected]",
Expand All @@ -41,7 +48,14 @@
"properties": {
"provisioningState": "Creating",
"buildStatus": "InProgress",
"uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
"uploadEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/upload",
"token": "asdf"
},
"logStreamEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/logstream",
"token": "asdf"
}
},
"systemData": {
"createdBy": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/upload",
"token": "asdf"
},
"logStreamEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/logstream",
"token": "asdf"
}
},
"systemData": {
"createdBy": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/upload",
"token": "asdf"
},
"logStreamEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/logstream",
"token": "asdf"
}
},
"systemData": {
"createdBy": "[email protected]",
Expand Down Expand Up @@ -137,7 +144,14 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/upload",
"token": "asdf"
},
"logStreamEndpoint": {
"endpoint": "foo.azurecontainerapps.dev/logstream",
"token": "asdf"
}
},
"systemData": {
"createdBy": "[email protected]",
Expand Down