Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle nil build spec when reading creation time #1053

Merged
merged 3 commits into from
Oct 31, 2022
Merged

Conversation

tomkennedy513
Copy link
Collaborator

No description provided.

Copy link
Contributor

@tylerphelan tylerphelan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch!!

is a quick test worth it?

@tomkennedy513
Copy link
Collaborator Author

great catch!!

is a quick test worth it?

Ya I'll write one now

@@ -349,6 +349,24 @@ func testImageBuilds(t *testing.T, when spec.G, it spec.S) {
assert.Equal(t, image.Spec.Notary, build.Spec.Notary)
assert.Equal(t, image.Spec.Cosign, build.Spec.Cosign)
})

it("sets the creation time when present", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh snap assumed we at least had this one

Copy link
Contributor

@tylerphelan tylerphelan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@chenbh
Copy link
Contributor

chenbh commented Oct 31, 2022

If you don't mind a little scope creep, do you mind adding documentation for Image.build.creationTime? I had to go back and read the code changes in #1032 to figure out what this field does and how to configure it.

@tomkennedy513 tomkennedy513 merged commit 2b03cf0 into main Oct 31, 2022
@tomkennedy513 tomkennedy513 deleted the nil-build-spec branch October 31, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants