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

feat: Add image content section to images page #46440

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sergeyshevch
Copy link
Member

Hello! This PR is aiming to solve the remaining items in #4502 especially addressing #4502 (comment)

@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label May 18, 2024
@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 18, 2024
Copy link

netlify bot commented May 18, 2024

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 86e48d7
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/66489a3cd29b1200089f0426
😎 Deploy Preview https://deploy-preview-46440--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@thisisharrsh thisisharrsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we make a tooltip for OCI artefact so that readers can get more information about OCI?

@thisisharrsh
Copy link
Contributor

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. With tweaks this could merge; without them, I need to request changes.

@@ -10,7 +10,7 @@ hide_summary: true # Listed separately in section index

<!-- overview -->

A container image represents binary data that encapsulates an application and all its
A container image is an OCI artifact that that encapsulates an application and all its
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does need either a glossary tooltip or a plain hyperlink. Without it, we're making the page more confusing, not less.

@@ -63,6 +63,21 @@ Some image name examples that Kubernetes can use are:
- `registry.k8s.io/pause@sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07` - Image name with digest.
- `registry.k8s.io/pause:3.5@sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07` - Image name with tag and digest. Only digest will be used for pulling.

## Image content

OCI images are composed of layers. Each layer is a set of files that are added to the image.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
OCI images are composed of layers. Each layer is a set of files that are added to the image.
Container images are composed of _layers_. Each layer is a set of files that are added to the image.

Docker-format images have layers too. It'd be wrong to imply that only OCI images have layers.

Comment on lines +76 to +79
{{< note >}}
Other types of artifacts that are OCI compliant but not container images
cannot be used by Kubernetes as images. You can read more about them in the [OCI Manifest Spec](https://github.com/opencontainers/image-spec/blob/main/manifest.md).
{{< /note >}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this important to mention? I wouldn't use a note callout here.

Try this:

Suggested change
{{< note >}}
Other types of artifacts that are OCI compliant but not container images
cannot be used by Kubernetes as images. You can read more about them in the [OCI Manifest Spec](https://github.com/opencontainers/image-spec/blob/main/manifest.md).
{{< /note >}}
### Artifacts that are _not_ images {#other-oci-artifacts}
Container images are only one kind of OCI artifact. You can read more about them in the [OCI Manifest Spec](https://github.com/opencontainers/image-spec/blob/main/manifest.md). Types of artifacts that are OCI compliant but not container images cannot be used by Kubernetes as container images.

OCI images are composed of layers. Each layer is a set of files that are added to the image.
Each layer and final image are identified by a digest. The digest of layer is a hash of the layer's content.

OCI Container images can be created using various tools and techniques.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
OCI Container images can be created using various tools and techniques.
Container images can be created using various tools and techniques.

Each layer and final image are identified by a digest. The digest of layer is a hash of the layer's content.

OCI Container images can be created using various tools and techniques.
Some examples are: Docker, Buildah, Kaniko, and Buildpacks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign sftim for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants