Skip to content

Commit 7abdb55

Browse files
authored
Merge pull request #1031 from fluxcd/omitempty-digest
api: omit empty Digest in Artifact
2 parents 0f91a32 + 440f1d5 commit 7abdb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1beta2/artifact_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Artifact struct {
5151
// Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
5252
// +optional
5353
// +kubebuilder:validation:Pattern="^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$"
54-
Digest string `json:"digest"`
54+
Digest string `json:"digest,omitempty"`
5555

5656
// LastUpdateTime is the timestamp corresponding to the last update of the
5757
// Artifact.

0 commit comments

Comments
 (0)