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

support coredns v1.11.0 #76

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

tukwila
Copy link
Contributor

@tukwila tukwila commented Aug 9, 2023

Now coredns release new version: https://github.com/coredns/coredns/releases/tag/v1.11.0, so do upgrade in corefile-migration.

docker.io/coredns/coredns:1.11.0:                                                 resolved       |++++++++++++++++++++++++++++++++++++++| 
index-sha256:cc3ebb05fbdba439d2d69813f162aa204b027098c8244fb3156e6e7c0f31c548:    done           |++++++++++++++++++++++++++++++++++++++| 
manifest-sha256:28cccdd25b4d971951d50fd6e08ab5fe9a894d04db03557f2713bdf0347e7ddc: done           |++++++++++++++++++++++++++++++++++++++| 
config-sha256:321c7cb4ac8b4bc06b4e71e1b2526972245292a8502dce49d98843a271b3ba20:   done           |++++++++++++++++++++++++++++++++++++++| 
layer-sha256:caa886227134d11f25a4cf824034a597eb7ec611bccdfc2785f7f342ed3e2c27:    done           |++++++++++++++++++++++++++++++++++++++| 
layer-sha256:b28ed2365b9cb98936f0420af9de5343264762eb3e20fed4989e22149176664d:    done           |++++++++++++++++++++++++++++++++++++++| 
elapsed: 22.6s                                                                    total:  122.5  (5.4 KiB/s) 

And some plugin changes please review if it is right in versions.go?
@chrisohaver @miekg

image

@tukwila
Copy link
Contributor Author

tukwila commented Aug 11, 2023

@chrisohaver Could you please review this PR?

Copy link
Member

@chrisohaver chrisohaver left a comment

Choose a reason for hiding this comment

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

The plugins map is not correct. It adds plugins that are not supported by the migration, and is missing plugins that it does support. If any new options have been added to supported plugins, those will need to be added.

@tukwila
Copy link
Contributor Author

tukwila commented Aug 13, 2023

The plugins map is not correct. It adds plugins that are not supported by the migration, and is missing plugins that it does support. If any new options have been added to supported plugins, those will need to be added.

Do you mean i need not to add any plugins currently? so i modify plugin definition like this,
image
Am i right?

@chrisohaver
Copy link
Member

I don’t know how to interpret your marked up screen shot. Please take a look at some of the prior PRs in this repo that have added a support for a new coredns version to see how they are done.

Please look at the release notes for the list of plugins the migration package supports. I would not recommend adding to that list at this time.

@tukwila
Copy link
Contributor Author

tukwila commented Aug 14, 2023

I don’t know how to interpret your marked up screen shot. Please take a look at some of the prior PRs in this repo that have added a support for a new coredns version to see how they are done.

Please look at the release notes for the list of plugins the migration package supports. I would not recommend adding to that list at this time.

Yes, i read prior plugins and coredns release-notes, then append plugins_1_11_0 cause's in v1.11.0 release-notes there are two new function added into plugins:
plugin/dnstap: add tls support (coredns/coredns#5917)
plugin/k8s_external: add fallthrough option (coredns/coredns#5959)

so, please review my code again. Big thanks.

migration/versions.go Outdated Show resolved Hide resolved
migration/versions.go Show resolved Hide resolved
migration/versions.go Show resolved Hide resolved
Copy link
Member

@chrisohaver chrisohaver left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good! Just some minor changes requested on comments.

"answer name": {},
"edns0": {},
"ttl": {}, // new option
"cname_target": {},
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"cname_target": {},
"cname_target": {}, // new option

namedOptions: map[string]option{
"apex": {},
"ttl": {},
"Fall": {},
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"Fall": {},
"fallthrough": {}, // new option

"name": {},
"answer name": {},
"edns0": {},
"ttl": {}, // new option
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"ttl": {}, // new option
"ttl": {},

"reload": {},
"loadbalance": {},
"hosts": plugins["hosts"]["v1"],
"rewrite": plugins["rewrite"]["v3"],
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"rewrite": plugins["rewrite"]["v3"],
"rewrite": plugins["rewrite"]["v3"], // add cname_target option

Copy link
Member

@chrisohaver chrisohaver left a comment

Choose a reason for hiding this comment

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

There was also a new option added to the cache plugin: keepttl coredns/coredns#5879

Nevermind - that was added in 1.10.1 ...

... Although it looks like it's missing from the 1.10.1 migration. Eventually that should be fixed, but OK if you don't want to do it in this PR.

@tukwila
Copy link
Contributor Author

tukwila commented Aug 21, 2023

There was also a new option added to the cache plugin: keepttl coredns/coredns#5879

Nevermind - that was added in 1.10.1 ...

... Although it looks like it's missing from the 1.10.1 migration. Eventually that should be fixed, but OK if you don't want to do it in this PR.

yes,i review coredns v1.10.1 releasenotes and append cache plugin new added option keepttl. Please review it. -:)

@tukwila
Copy link
Contributor Author

tukwila commented Aug 22, 2023

@chrisohaver Could you review my commit again? i hope my commit is within your expected. :)

Copy link
Member

@chrisohaver chrisohaver 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! Thanks! Just one fix required to the name of the new fallthrough option in k8s_external.

namedOptions: map[string]option{
"apex": {},
"ttl": {},
"Fall": {}, // new option
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"Fall": {}, // new option
"fallthtrough": {}, // new option

@@ -15,7 +15,7 @@ func TestNewValidVersionsCmd(t *testing.T) {
{
name: "Works without error",
expectedOutput: `The following are valid CoreDNS versions:
1.1.3, 1.1.4, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.9, 1.7.0, 1.7.1, 1.8.0, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10.0, 1.10.1
1.1.3, 1.1.4, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.9, 1.7.0, 1.7.1, 1.8.0, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10.0, 1.10.1, v1.11.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
1.1.3, 1.1.4, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.9, 1.7.0, 1.7.1, 1.8.0, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10.0, 1.10.1, v1.11.0
1.1.3, 1.1.4, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.9, 1.7.0, 1.7.1, 1.8.0, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10.0, 1.10.1, 1.11.0

Copy link
Member

@chrisohaver chrisohaver left a comment

Choose a reason for hiding this comment

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

... and also fix to version string in valid versions test.

correct plugins
modify plugins definitions
append some annotation and 1.10.1 migration
update based on review comments

Signed-off-by: guangli.bao <guangli.bao@daocloud.io>
@tukwila
Copy link
Contributor Author

tukwila commented Aug 22, 2023

... and also fix to version string in valid versions test.

@chrisohaver yes, it's my fault and I corrected. I hope you are online now then review it again. Cross my finger to pray that it can be ok this time.

@chrisohaver chrisohaver merged commit 90369fb into coredns:master Aug 22, 2023
3 checks passed
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