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

Improve CoreDNS support and validation in KubeadmControlPlane #2599

Closed
wfernandes opened this issue Mar 9, 2020 · 26 comments
Closed

Improve CoreDNS support and validation in KubeadmControlPlane #2599

wfernandes opened this issue Mar 9, 2020 · 26 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@wfernandes
Copy link
Contributor

User Story

As part of issue #2545, we added a dependency on github.com/coredns/migration. It was added in PR: #2574.

This library needs to be kept up to date if we are to support future coredns version upgrades so we will need automation to check for upgrades in this library and update our modules.
OR
We decouple ourselves from this library somehow. 🙂

See comment below from @detiber:

I'm wondering if we should think about some type of automated checking to see if it is out of date, since the current implementation will require us to cut a new release if a newer version of CoreDNS is released prior to us being able to support it (based on the version comparison check)

https://github.com/kubernetes-sigs/cluster-api/pull/2574/files/9cb95d52d539b8b3109951909588388781ba7acd#r389755735

/cc @vincepri @ncdc
/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 9, 2020
@ncdc ncdc added this to the v0.4.0 milestone Mar 11, 2020
@ncdc
Copy link
Contributor

ncdc commented Mar 11, 2020

We should look into switching over to using the CoreDNS operator as soon as it's mature and stable.

@timothysc
Copy link
Member

@stealthybox @neolit123 - What's the state of the addons, and the latest CoreDNS operator?

@neolit123
Copy link
Member

neolit123 commented Mar 13, 2020 via email

@vincepri
Copy link
Member

Where is the coredns operator code hosted today?

@neolit123
Copy link
Member

neolit123 commented Mar 16, 2020

there is a coredns operator here:
https://github.com/kubernetes-sigs/cluster-addons/tree/master/coredns
but AFAIK this is not the operator that the coredns maintainers created.

i also see there is a related GSoC task for this opened 5 days ago that includes ConfigMap updates:
kubernetes-sigs/cluster-addons#47
cc @johnsonj

@rajansandeep mentioned to me that he is personally working on the operator, so i do not know how/if this intersects with GSoC and if there is source code in another repository.

is the GSoC task supposed to be completed by a student or is this adjacent work? my personal preference would be to delegate the main body of work away from GSoC - i.e. have a working version with CRv2 ideally sooner than end-of-GSoC.

@wfernandes
Copy link
Contributor Author

A couple of questions I had:

  • Will this CoreDNS Operator be installed and/or managed by clusterctl?
  • What is GSoC?

@vincepri
Copy link
Member

For v0.3.x we might need a different issue to add a verification script to update to the latest version of the module, if it's available

@neolit123
Copy link
Member

Will this CoreDNS Operator be installed and/or managed by clusterctl?

unclear to me. would make sense to install it in an "addons phase" of sorts.

What is GSoC?

google summer of code.

@johnsonj
Copy link

Thanks for the cc @neolit123 - I'll discuss this in cluster-addons and with @rajansandeep

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 15, 2020
@vincepri
Copy link
Member

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 15, 2020
@vincepri
Copy link
Member

/milestone v0.4.x

@k8s-ci-robot k8s-ci-robot modified the milestones: v0.4.0, v0.4.x Feb 19, 2021
@CecileRobertMichon CecileRobertMichon modified the milestones: v0.4.x, v0.4 Mar 22, 2021
@vincepri
Copy link
Member

/milestone Next

@k8s-ci-robot k8s-ci-robot modified the milestones: v0.4, Next Oct 19, 2021
@vincepri
Copy link
Member

vincepri commented Feb 11, 2022

/milestone v1.2
/retitle Improve CoreDNS support and validation in KubeadmControlPlane
/assign @sbueringer

  • Automate the version bump of the coredns migration library (somehow)
  • Validate that users won't be able to set a version higher than the maximum supported within the library
  • Validate that the version has a prefix (v)

@k8s-ci-robot k8s-ci-robot changed the title Update CAPI when coredns/migration has new release Improve CoreDNS support and validation in KubeadmControlPlane Feb 11, 2022
@k8s-ci-robot k8s-ci-robot removed this from the Next milestone Feb 11, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.2 milestone Feb 11, 2022
@sbueringer
Copy link
Member

xref: #4463
(there's a bunch of information in this issue)

@sbueringer
Copy link
Member

sbueringer commented Mar 7, 2022

  • we should double-check if migration.ValidUpMigration actually works as expected. In our upgrade tests there seem to be cases where we migrate from v1.8.0 => v1.8.4 which should not be supported according to ValidUpMigration

@killianmuldoon
Copy link
Contributor

@sbueringer I'll take a look at this. - In which case shouldn't we be allowed to go to v1.8.4 ?

@sbueringer
Copy link
Member

sbueringer commented Mar 9, 2022

@killianmuldoon I think we kind of should, but it looks like the migration might have a problem migrating the CoreDNS config then. (based on ValidUpMigration it seems to migrate from one version to another, so we would need v1.8.0=>v1.8.1=>v1.8.2=>v1.8.3=>v1.8.4)

There's an error somewhere in those assumptions, but I don't know where and we should find it out :)

@killianmuldoon
Copy link
Contributor

/assign

@sbueringer sbueringer removed their assignment Mar 9, 2022
@sbueringer
Copy link
Member

We realized that I misread ValidUpMigration

@killianmuldoon
Copy link
Contributor

killianmuldoon commented Apr 11, 2022

@vincepri #6406 is a solution to the first item on your list:

  • Automate the version bump of the coredns migration library (somehow)
  • Validate that users won't be able to set a version higher than the maximum supported within the library
  • Validate that the version has a prefix (v)

@fabriziopandini fabriziopandini added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Jul 29, 2022
@fabriziopandini fabriziopandini removed this from the v1.2 milestone Jul 29, 2022
@fabriziopandini fabriziopandini removed the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Jul 29, 2022
@fabriziopandini
Copy link
Member

/triage accepted

@k8s-ci-robot k8s-ci-robot added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Sep 30, 2022
@fabriziopandini
Copy link
Member

/help
/unassign @killianmuldoon

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help
/unassign @killianmuldoon

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Sep 30, 2022
@fabriziopandini
Copy link
Member

(doing some cleanup on old issues without updates)
/close
we now have dependabot helping us in keeping up with this dependency, and I'm not aware of issues about recent version validation so I'm closing this for now

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: Closing this issue.

In response to this:

(doing some cleanup on old issues without updates)
/close
we now have dependabot helping us in keeping up with this dependency, and I'm not aware of issues about recent version validation so I'm closing this for now

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests