Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

feature: allow dfdaemon to listen port on 0~65535 #1300

Merged
merged 1 commit into from
Apr 26, 2020

Conversation

Komey
Copy link
Contributor

@Komey Komey commented Apr 25, 2020

Ⅰ. Describe what this PR did

modify dfdaemon port validate method, allow to expose more port to listen.

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

test case
dfdaemon/config/config_test.go

Ⅴ. Special notes for reviews

Here is a case:
We have a private docker registry, named https://docker.pt.komey.com.
and we want to make our user to None care about the registry address,
So we'd like to config our DNS(docker.pt.komey.com) record for a specific region to 127.0.0.1 and expose dfdaemon on 443 port. Which may make our users have No feeling about the difference between the regions which didn't deploy dragonfly.

@pouchrobot
Copy link
Collaborator

We found this is your first time to contribute to Dragonfly, @Komey
👏 We really appreciate it.
Just remind that you have read the contribution guide: https://github.com/dragonflyoss/Dragonfly/blob/master/CONTRIBUTING.md
If you didn't, you should do that first. If done, welcome again and please enjoy hacking! 🍻

@Komey Komey force-pushed the feature_expose_more_ports branch from 329c2f9 to c84e38d Compare April 25, 2020 08:49
@codecov-io
Copy link

codecov-io commented Apr 25, 2020

Codecov Report

Merging #1300 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1300   +/-   ##
=======================================
  Coverage   51.11%   51.11%           
=======================================
  Files         122      122           
  Lines        8082     8082           
=======================================
  Hits         4131     4131           
  Misses       3622     3622           
  Partials      329      329           
Impacted Files Coverage Δ
dfdaemon/config/config.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06d2368...c84e38d. Read the comment docs.

Copy link
Member

@lowzj lowzj left a comment

Choose a reason for hiding this comment

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

LGTM

@lowzj lowzj changed the title feature: modify dfdaemon port validate method, allow to expose more p… feature: allow dfdaemon to listen port on range 0~65535 Apr 26, 2020
@lowzj lowzj changed the title feature: allow dfdaemon to listen port on range 0~65535 feature: allow dfdaemon to listen port on 0~65535 Apr 26, 2020
@lowzj lowzj merged commit 97d20db into dragonflyoss:master Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants