Skip to content

Commit

Permalink
Merge pull request #182 from open-component-model/explain-versions
Browse files Browse the repository at this point in the history
explain versions
  • Loading branch information
hilmarf authored Feb 29, 2024
2 parents 0657b0c + fe5d8b7 commit d62e7dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions content/en/docs/component-descriptors/version-2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Version 2 (legacy)"
title: "Version 2"
description: ""
lead: ""
date: 2023-01-17T10:22:20Z
Expand All @@ -14,7 +14,7 @@ weight: 200
toc: false
---

The following is an example of a signed component descriptor containing a resource, source and one component reference. It uses the `v2` schema.
The following is an example of a signed component descriptor containing a resource, source and one component reference. It uses the `v2` schema. There are no differences in the semantics between v2 and v3. "version" is used as kind of moniker for different serializing/deserializing formats (`v3` has the format of Kubbernetes resources).

This component is publicly available and can be inspected using the following command:

Expand All @@ -29,14 +29,14 @@ component:
name: github.com/weaveworks/weave-gitops # name of the component
version: v1.0.0 # version of the component
provider: weaveworks # component provider information
repositoryContexts: # origin of this document
repositoryContexts: # list of repository context the component version "lived" in, with the current one at the top
- baseUrl: ghcr.io
componentNameMapping: urlPath
subPath: phoban01/ocm
type: OCIRegistry
resources: # list of resources modelled by the component
- name: image # resource name
relation: external # resource location
relation: external # resource location (external repository or internal to this repository)
type: ociImage # resource type
version: v0.14.1 # resource version
access: # metadata describing how to access the resource
Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/component-descriptors/version-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ weight: 100
toc: false
---

The following is an example of a signed component descriptor containing a resource, source and one component reference. It uses the `v3alpha1` schema.
The following is an example of a signed component descriptor containing a resource, source and one component reference. It uses the `v3alpha1` schema. There are no differences in the semantics between v2 and v3. "version" is used as kind of moniker for different serializing/deserializing formats (`v3` has the format of Kubbernetes resources).

This component is publicly available and can be inspected using the following command:

Expand All @@ -32,7 +32,7 @@ metadata:
provider: # component provider information
name: weaveworks
version: v1.0.0 # version of the component
repositoryContexts: # origin of this document
repositoryContexts: # list of repository context the component version "lived" in, with the current one at the top
- baseUrl: ghcr.io
componentNameMapping: urlPath
subPath: phoban01/ocm
Expand Down

0 comments on commit d62e7dd

Please sign in to comment.