Skip to content

k8s: add a work-around for bugs in container status image refs#1554

Merged
nicks merged 1 commit into
masterfrom
nicks/badtag
Apr 29, 2019
Merged

k8s: add a work-around for bugs in container status image refs#1554
nicks merged 1 commit into
masterfrom
nicks/badtag

Conversation

@nicks

@nicks nicks commented Apr 29, 2019

Copy link
Copy Markdown
Contributor

Hello @maiamcc,

Please review the following commits I made in branch nicks/badtag:

aea59f8 (2019-04-29 17:09:34 -0400)
k8s: add a work-around for bugs in container status image refs
kubernetes/kubernetes#51017

@maiamcc maiamcc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😱 gnarly. good catch.

Comment thread internal/k8s/container.go

"github.com/pkg/errors"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is just what goimports does


"github.com/stretchr/testify/assert"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

?

Comment thread internal/k8s/container.go Outdated
return false, ""
}

// Kubernetes has a bug where the image ref in the container status can be wrong.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mayyybe worth mentioning

Although it doesn't really make a difference as both image tags share the same digest it is technically wrong.

(i.e. "though this bug does NOT result in the container running unexpected code"). but also, 🤷‍♀

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@nicks
nicks merged commit da462c1 into master Apr 29, 2019
@nicks
nicks deleted the nicks/badtag branch April 29, 2019 21:46
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.

2 participants