Skip to content

Commit

Permalink
allow specifying credentials for source registry on import image (#4049)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathana1 authored and marstr committed Oct 8, 2018
1 parent 98a0dba commit 3396533
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1201,15 +1201,35 @@
"type": "string"
},
"registryUri": {
"description": "The address of the source registry.",
"description": "The address of the source registry (e.g. 'mcr.microsoft.com').",
"type": "string"
},
"credentials": {
"$ref": "#/definitions/ImportSourceCredentials",
"description": "Credentials used when importing from a registry uri."
},
"sourceImage": {
"description": "Repository name of the source image.\r\nSpecify an image by repository ('hello-world'). This will use the 'latest' tag.\r\nSpecify an image by tag ('hello-world:latest').\r\nSpecify an image by sha256-based manifest digest ('hello-world@sha256:abc123').",
"type": "string"
}
}
},
"ImportSourceCredentials": {
"required": [
"password"
],
"type": "object",
"properties": {
"username": {
"description": "The username to authenticate with the source registry.",
"type": "string"
},
"password": {
"description": "The password used to authenticate with the source registry.",
"type": "string"
}
}
},
"RegistryNameCheckRequest": {
"description": "A request to check whether a container registry name is available.",
"required": [
Expand Down

0 comments on commit 3396533

Please sign in to comment.