-
Notifications
You must be signed in to change notification settings - Fork 64
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
Clarify on how to use image name in image component and how tools can consume it #985
Comments
Shouldn't tools also allow overriding the image name? |
Considering the We should rather consider it an image selector as
So the proposal is to
example components:
- name: devtools-image
image:
imageNameSelector: devtools # <=== image selector
autoBuild: true
dockerfile:
uri: Dockerfile
- name: devtools-container1
container:
image: devtools # <=== matches selector ✅
memoryLimit: 512Mi
command: ['sleep', 'infinity']
- name: devtools-container2
container:
image: quay.io/devfile/devtools:ubi8-latest # <=== matches selector ✅
memoryLimit: 512Mi
command: ['sleep', 'infinity']
- name: devtools-container3
container:
image: quay.io/devfile/devtools2:ubi8-latest # <=== doesn't match selector ❌
memoryLimit: 512Mi
command: ['sleep', 'infinity'] Tools implementing the devfile spec will:
|
This goal of this field is to provide a replacement (as a format string) that will be used as selector for all matching (relative) image names. See [1] for more details. [1] devfile/api#985
The goal of this field is to allow tools to provide information (currently registry and tag) allowing to replace matching image names. See [1] for more details. [1] devfile/api#985
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment)
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment)
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment)
The goal of this field is to allow tools to provide information (currently registry and tag) allowing to replace matching image names. See [1] for more details. [1] devfile/api#985 Signed-off-by: Armel Soro <[email protected]>
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment) Signed-off-by: Armel Soro <[email protected]>
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment) Signed-off-by: Armel Soro <[email protected]>
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment) Signed-off-by: Armel Soro <[email protected]>
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment) Signed-off-by: Armel Soro <[email protected]>
I've created a PR in the Devfile library to handle There is also a draft PR in |
The goal of this field is to allow tools to provide information (currently registry and tag) allowing to replace matching image names. See [1] for more details. [1] devfile/api#985 Signed-off-by: Armel Soro <[email protected]>
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment) Signed-off-by: Armel Soro <[email protected]>
The goal of this field is to allow tools to provide information (currently registry and tag) allowing to replace matching image names. See [1] for more details. [1] devfile/api#985 Signed-off-by: Armel Soro <[email protected]>
… Kubernetes components This relies on the Docker Distribution library to parse image references in order to detect if they are absolute or relative. See [1] for more details about the proposal. [1] devfile/api#985 (comment) Signed-off-by: Armel Soro <[email protected]>
Which area this feature is related to?
/area documentation
Which area is this documentation change is related to?
/area api
Issue details
What mistake did you find / what is missing in the documentation?
The existing
imageName
field in the image component only has a brief field description. Based on the discussion on the community call on 11/14 (see the recording https://drive.google.com/file/d/1XLTdizST_LeoKpF7xw4Q9k__6LoXKCmo/view?usp=sharing for details), we need to clarify how the imageName field is set and handled by the tools.Summary of the change:
imageName
with either a full URL or a relative location of the image within an image registry to store the built image.The text was updated successfully, but these errors were encountered: