Skip to content

Commit

Permalink
Merge pull request #1031 from fluxcd/omitempty-digest
Browse files Browse the repository at this point in the history
api: omit empty Digest in Artifact
  • Loading branch information
hiddeco authored Feb 16, 2023
2 parents 0f91a32 + 440f1d5 commit 7abdb55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta2/artifact_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Artifact struct {
// 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"`
Digest string `json:"digest,omitempty"`

// LastUpdateTime is the timestamp corresponding to the last update of the
// Artifact.
Expand Down

0 comments on commit 7abdb55

Please sign in to comment.