Skip to content

Commit

Permalink
Merge pull request #975 from fluxcd/fix-snaphot-drift
Browse files Browse the repository at this point in the history
Prevent snapshot drift when upgrading to API v2
  • Loading branch information
stefanprodan authored May 9, 2024
2 parents 538d48e + 56b5f14 commit 461d45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/release/digest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestDigest(t *testing.T) {
rel: Observation{
Name: "foo",
},
exp: "sha256:ca8901e499a79368647134cc4f1c2118f8e7ec64c8a4703b281d17fb01acfbed",
exp: "sha256:91b6773f7696d3eb405708a07e2daedc6e69664dabac8e10af7d570d09f947d5",
},
}
for _, tt := range tests {
Expand Down
2 changes: 1 addition & 1 deletion internal/release/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type Observation struct {
// Namespace is the Kubernetes namespace of the release.
Namespace string `json:"namespace"`
// OCIDigest is the digest of the OCI artifact that was used to
OCIDigest string `json:"ociDigest"`
OCIDigest string `json:"ociDigest,omitempty"`
}

// Targets returns if the release matches the given name, namespace and
Expand Down

0 comments on commit 461d45d

Please sign in to comment.