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

add suport docker and refresh token #3

Merged
merged 5 commits into from
Jun 24, 2021
Merged

Conversation

zhaojizhuang
Copy link
Contributor

Changes

  • 🎁 Add new feature: support docker and refresh token in freeze-proxy

/kind

Fixes #

Release Note


Docs


Copy link
Owner

@julz julz left a comment

Choose a reason for hiding this comment

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

Thanks so much for the PR @zhaojizhuang, this is super cool!

config/daemon.yaml Outdated Show resolved Hide resolved
pkg/freezer/docker/pause.go Outdated Show resolved Hide resolved
pkg/freezer/docker/pause.go Outdated Show resolved Hide resolved
pkg/freezer/docker/pause.go Outdated Show resolved Hide resolved
pkg/freezer/factory_test.go Outdated Show resolved Hide resolved
config/daemon.yaml Outdated Show resolved Hide resolved
pkg/freezer/docker/pause.go Outdated Show resolved Hide resolved
pkg/freezer/docker/pause.go Outdated Show resolved Hide resolved
pkg/gate/gate.go Outdated Show resolved Hide resolved
pkg/freezer/factory_test.go Outdated Show resolved Hide resolved
@zhaojizhuang zhaojizhuang force-pushed the master branch 7 times, most recently from e611937 to f6e93ae Compare June 23, 2021 16:47
@zhaojizhuang
Copy link
Contributor Author

@julz Thanks for your review, PR has been updated!

@zhaojizhuang zhaojizhuang requested a review from julz June 23, 2021 16:50
Copy link
Owner

@julz julz left a comment

Choose a reason for hiding this comment

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

looks pretty good, few more nits

config/300-daemon-containerd.yaml Show resolved Hide resolved
cmd/daemon/main.go Outdated Show resolved Hide resolved
pkg/freezer/docker/pause.go Outdated Show resolved Hide resolved
pkg/freezer/docker/pause.go Outdated Show resolved Hide resolved
pkg/freezer/factory.go Outdated Show resolved Hide resolved
cmd/daemon/main.go Outdated Show resolved Hide resolved
Copy link
Owner

@julz julz left a comment

Choose a reason for hiding this comment

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

there's a couple small nits it'd be good to fix at some point, but let's get this merged and clean those up in another PR. This is really great, thanks @zhaojizhuang!

const (
RuntimeTypeDocker string = "docker"
RuntimeTypeContainerd string = "contaienrd"
RuntimeTypeCriO string = "cri-o"
Copy link
Owner

Choose a reason for hiding this comment

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

these could be private

var freezeThaw daemon.FreezeThawer
switch runtimeType {
case RuntimeTypeDocker:
freezeThaw, err = docker.NewDockerService()
Copy link
Owner

Choose a reason for hiding this comment

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

might be nice to make both methods be called New or Connect so they match. Either way ideally we wouldn't have docker.NewDockerService because it stutters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both New sounds like a good idea

@julz julz merged commit 90dbec1 into julz:master Jun 24, 2021
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.

None yet

2 participants