Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Crash fixed when no tag is provided for the container image#40

Merged
lfrancke merged 3 commits intostackabletech:mainfrom
siegfriedweber:fix_crash_on_missing_reference_tag
Jan 22, 2021
Merged

Crash fixed when no tag is provided for the container image#40
lfrancke merged 3 commits intostackabletech:mainfrom
siegfriedweber:fix_crash_on_missing_reference_tag

Conversation

@siegfriedweber
Copy link
Copy Markdown
Member

Fixes #39

When no tag is provided for the container image then the agent crashes:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/provider/repository/package.rs:42:35

With this change the pod is rejected with an according log message:

2021-01-20T14:18:58Z WARN  kubelet::kubelet] Error resyncing pods: Invalid content in pod object: Unable to get package reference from pod "kafka": Tag is required.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 20, 2021

CLA assistant check
All committers have signed the CLA.

soenkeliebau
soenkeliebau previously approved these changes Jan 20, 2021
Copy link
Copy Markdown
Member

@soenkeliebau soenkeliebau left a comment

Choose a reason for hiding this comment

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

Looks very good to me!

@soenkeliebau
Copy link
Copy Markdown
Member

I spoke with Lars this morning and he will try to review this PR this afternoon.

Copy link
Copy Markdown
Member

@lfrancke lfrancke left a comment

Choose a reason for hiding this comment

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

Only minor stuff.
This looks fabulous.
If this is your first Rust PR I'm depressed :) Good job!

Comment thread src/provider/repository/package.rs Outdated
Comment thread src/provider/mod.rs Outdated
Comment thread src/provider/mod.rs Outdated
Comment thread src/provider/mod.rs
Comment thread Cargo.toml
Copy link
Copy Markdown
Member

@lfrancke lfrancke left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@lfrancke lfrancke merged commit 1c3c34f into stackabletech:main Jan 22, 2021
@siegfriedweber siegfriedweber deleted the fix_crash_on_missing_reference_tag branch January 22, 2021 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash if no tag is provided for the container image

4 participants