api: introduce `Digest` field to `Artifact`
As discussed in RFC-0005, this introduces a `Digest` field to the `Artifact` in favor of the now deprecated `Checksum`. Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
d18988e81a
commit
964b2d3f00
|
|
@ -43,8 +43,14 @@ type Artifact struct {
|
|||
Revision string `json:"revision"`
|
||||
|
||||
// Checksum is the SHA256 checksum of the Artifact file.
|
||||
// Deprecated: use Artifact.Digest instead.
|
||||
// +optional
|
||||
Checksum string `json:"checksum"`
|
||||
Checksum string `json:"checksum,omitempty"`
|
||||
|
||||
// Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
|
||||
// +optional
|
||||
// +kubebuilder:validation:Pattern="^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$"
|
||||
Digest string `json:"digest"`
|
||||
|
||||
// LastUpdateTime is the timestamp corresponding to the last update of the
|
||||
// Artifact.
|
||||
|
|
|
|||
|
|
@ -377,7 +377,12 @@ spec:
|
|||
description: Artifact represents the last successful Bucket reconciliation.
|
||||
properties:
|
||||
checksum:
|
||||
description: Checksum is the SHA256 checksum of the Artifact file.
|
||||
description: 'Checksum is the SHA256 checksum of the Artifact
|
||||
file. Deprecated: use Artifact.Digest instead.'
|
||||
type: string
|
||||
digest:
|
||||
description: Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
|
||||
pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the timestamp corresponding to
|
||||
|
|
|
|||
|
|
@ -554,7 +554,12 @@ spec:
|
|||
reconciliation.
|
||||
properties:
|
||||
checksum:
|
||||
description: Checksum is the SHA256 checksum of the Artifact file.
|
||||
description: 'Checksum is the SHA256 checksum of the Artifact
|
||||
file. Deprecated: use Artifact.Digest instead.'
|
||||
type: string
|
||||
digest:
|
||||
description: Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
|
||||
pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the timestamp corresponding to
|
||||
|
|
@ -676,8 +681,13 @@ spec:
|
|||
description: Artifact represents the output of a Source reconciliation.
|
||||
properties:
|
||||
checksum:
|
||||
description: Checksum is the SHA256 checksum of the Artifact
|
||||
file.
|
||||
description: 'Checksum is the SHA256 checksum of the Artifact
|
||||
file. Deprecated: use Artifact.Digest instead.'
|
||||
type: string
|
||||
digest:
|
||||
description: Digest is the digest of the file in the form of
|
||||
'<algorithm>:<checksum>'.
|
||||
pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the timestamp corresponding to
|
||||
|
|
|
|||
|
|
@ -452,7 +452,12 @@ spec:
|
|||
reconciliation.
|
||||
properties:
|
||||
checksum:
|
||||
description: Checksum is the SHA256 checksum of the Artifact file.
|
||||
description: 'Checksum is the SHA256 checksum of the Artifact
|
||||
file. Deprecated: use Artifact.Digest instead.'
|
||||
type: string
|
||||
digest:
|
||||
description: Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
|
||||
pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the timestamp corresponding to
|
||||
|
|
|
|||
|
|
@ -369,7 +369,12 @@ spec:
|
|||
reconciliation.
|
||||
properties:
|
||||
checksum:
|
||||
description: Checksum is the SHA256 checksum of the Artifact file.
|
||||
description: 'Checksum is the SHA256 checksum of the Artifact
|
||||
file. Deprecated: use Artifact.Digest instead.'
|
||||
type: string
|
||||
digest:
|
||||
description: Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
|
||||
pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the timestamp corresponding to
|
||||
|
|
|
|||
|
|
@ -195,7 +195,12 @@ spec:
|
|||
OCI Repository sync.
|
||||
properties:
|
||||
checksum:
|
||||
description: Checksum is the SHA256 checksum of the Artifact file.
|
||||
description: 'Checksum is the SHA256 checksum of the Artifact
|
||||
file. Deprecated: use Artifact.Digest instead.'
|
||||
type: string
|
||||
digest:
|
||||
description: Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
|
||||
pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the timestamp corresponding to
|
||||
|
|
|
|||
|
|
@ -1253,7 +1253,20 @@ string
|
|||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Checksum is the SHA256 checksum of the Artifact file.</p>
|
||||
<p>Checksum is the SHA256 checksum of the Artifact file.
|
||||
Deprecated: use Artifact.Digest instead.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>digest</code><br>
|
||||
<em>
|
||||
string
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Digest is the digest of the file in the form of ‘<algorithm>:<checksum>’.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue