[kubernetes/kubernetes] Move ClientConnectionConfiguration struct to its own api group (#54318)

1 view
Skip to first unread message

Andy Goldstein

unread,
Oct 20, 2017, 2:56:18 PM10/20/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

As we are working towards configuring all server components with configuration files instead of command line flags, most or all of them are going to need to be configured to talk to the apiserver. We should make sure there is a single struct definition for the client configuration. Currently, in the componentconfig api group, we have ClientConnectionConfiguration, and it's only used by the KubeProxyConfiguration right now. We have multiple PRs in flight related to configuration APIs:

#53645 - move KubeProxyConfiguration out of componentconfig and into its own api group
#52562 - convert kube-scheduler to use a configuration file

The first PR, if merged, will move ClientConnectionConfiguration from componentconfig to kubeproxyconfig.k8s.io.

The second PR also needs to use ClientConnectionConfiguration, and ultimately needs to have the new scheduler config structs in their own new api group.

I propose we create another api group, something like kubeconfig.k8s.io, to house the ClientConnectionConfiguration struct, so it can be shared by multiple API groups needing to specify client connection configuration details.

WDYT?

@kubernetes/sig-api-machinery-api-reviews @jbeda @smarterclayton @deads2k @liggitt @sttts @luxas @mikedanese @mtaufen @timothysc


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Kubernetes Submit Queue

unread,
Oct 20, 2017, 3:06:18 PM10/20/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Labels Incomplete

@ncdc

Action required: This issue requires label changes. If the required changes are not made within 2 days, the issue will be moved out of the v1.9 milestone.

kind: Must specify exactly one of kind/bug, kind/cleanup or kind/feature.
priority: Must specify exactly one of priority/critical-urgent, priority/important-longterm or priority/important-soon.

Help

Kubernetes Submit Queue

unread,
Oct 20, 2017, 3:08:18 PM10/20/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Issue Needs Approval

@ncdc @kubernetes/sig-api-machinery-misc

Action required: This issue must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 6 days, the issue will be moved out of the v1.9 milestone.

Issue Labels
  • sig/api-machinery: Issue will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the issue owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/feature: New functionality.

Andy Goldstein

unread,
Oct 20, 2017, 3:09:07 PM10/20/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@ironcladlou since you're working on the scheduler config

Peter (XiangPeng) Zhao

unread,
Oct 20, 2017, 11:47:23 PM10/20/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

FYI: Move KubeSchedulerConfiguration out of componentconfig API group #54211
@guangxuli

Clayton Coleman

unread,
Oct 21, 2017, 5:25:59 PM10/21/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention
If we created a Kubeconfig group, are there unopinionated structs we can
move from Kubeconfig or are people going to want to do big refactors?

Unrelated note - has someone queued up making kubectl explain works with
the new server config types? Not being able to see config docs sucks.


On Oct 20, 2017, at 11:46 PM, Peter (XiangPeng) Zhao <

notifi...@github.com> wrote:

FYI: Move KubeSchedulerConfiguration out of componentconfig API group #54211
<https://github.com/kubernetes/kubernetes/pull/54211>
@guangxuli <https://github.com/guangxuli>


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
<https://github.com/kubernetes/kubernetes/issues/54318#issuecomment-338361391>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p9N-D7dNx280Z7pnaN7T0Y1Fz_cEks5suWkrgaJpZM4QBFYT>
.

Kubernetes Submit Queue

unread,
Oct 21, 2017, 5:26:42 PM10/21/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Issue Needs Approval

@ncdc @kubernetes/sig-api-machinery-misc

Action required: This issue must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 5 days, the issue will be moved out of the v1.9 milestone.

Issue Labels
  • sig/api-machinery: Issue will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the issue owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/feature: New functionality.
Help

Andy Goldstein

unread,
Oct 22, 2017, 5:18:04 PM10/22/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@smarterclayton I did the ones for KubeProxyConfiguration and I hope they're reasonable, but I wouldn't say they have much use elsewhere.

As to docs on the config, I have #52198... I hadn't even considered doing this via kubectl explain, but I think that's potentially much nicer. WDYT?

Kubernetes Submit Queue

unread,
Oct 22, 2017, 5:18:20 PM10/22/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Issue Needs Approval

@ncdc @kubernetes/sig-api-machinery-misc

Action required: This issue must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 4 days, the issue will be moved out of the v1.9 milestone.

Issue Labels
  • sig/api-machinery: Issue will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the issue owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/feature: New functionality.
Help

Timothy St. Clair

unread,
Oct 23, 2017, 10:03:18 AM10/23/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

I'm a +1 for consolidating the data, but I question the long term utility of using the api for what are essentially command line args vs. a versioned config file.

/cc @mikedanese

David Eads

unread,
Oct 23, 2017, 11:12:44 AM10/23/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

If we created a Kubeconfig group, are there unopinionated structs we can
move from Kubeconfig or are people going to want to do big refactors?

The kubeconfig structs are fairly generic. I'm not sure we'd bring in the authProvider bits since support for those requires tight integration, but the basic connection information isn't specific.

Kubernetes Submit Queue

unread,
Oct 23, 2017, 3:52:10 PM10/23/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Issue Needs Approval

@ncdc @kubernetes/sig-architecture-misc

Action required: This issue must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 3 days, the issue will be moved out of the v1.9 milestone.

Issue Labels
  • sig/architecture: Issue will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the issue owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/feature: New functionality.

Daniel Smith

unread,
Oct 23, 2017, 3:52:25 PM10/23/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

This looks like an API change, not an API Machinery change? Feel free to reset the label if I misunderstood.

Kubernetes Submit Queue

unread,
Oct 25, 2017, 4:50:11 AM10/25/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Issue Needs Approval

@ncdc @kubernetes/sig-architecture-misc

Action required: This issue must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 2 days, the issue will be moved out of the v1.9 milestone.

Issue Labels
  • sig/architecture: Issue will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the issue owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/feature: New functionality.
Help

Kubernetes Submit Queue

unread,
Oct 26, 2017, 4:42:29 AM10/26/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Issue Needs Approval

@ncdc @kubernetes/sig-architecture-misc

Action required: This issue must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 1 day, the issue will be moved out of the v1.9 milestone.

Issue Labels
  • sig/architecture: Issue will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the issue owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/feature: New functionality.
Help

Josh Berkus

unread,
Oct 26, 2017, 5:21:57 PM10/26/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Should this be moved out of 1.9? The attached PRs for this issue don't seem to be near resolution.

Kubernetes Submit Queue

unread,
Oct 26, 2017, 5:22:39 PM10/26/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[MILESTONENOTIFIER] Milestone Issue Needs Approval

@ncdc @kubernetes/sig-architecture-misc

Action required: This issue must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 0 days, the issue will be moved out of the v1.9 milestone.

Issue Labels
  • sig/architecture: Issue will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the issue owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/feature: New functionality.
Help

Andy Goldstein

unread,
Oct 26, 2017, 5:25:29 PM10/26/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

I chatted with @luxas briefly yesterday and this probably isn't critical for either of those PRs, so I'm removing the 1.9 milestone. These config structs aren't using protobuf (since we want human-readable/writeable config files), so if we happen to move the structs somewhere else, the json tags would remain the same.

Lucas Käldström

unread,
Oct 27, 2017, 1:36:10 PM10/27/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

This will probably alpha in v1.9 anyway, right?
I'm fine with that

Mike Danese

unread,
Nov 10, 2017, 2:29:58 PM11/10/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

What part of ClientConnectionConfiguration is not expressable in a kubeconfig yet?

Mike Danese

unread,
Nov 10, 2017, 2:30:39 PM11/10/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

ref #30395

Andy Goldstein

unread,
Dec 22, 2017, 9:34:11 AM12/22/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Upon further reflection, I don't think we need a new api group for this. We just need a common package that component configuration api groups (kubeproxy, scheduler, etc) can import and use.

Lucas Käldström

unread,
Dec 25, 2017, 12:26:32 PM12/25/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@ncdc Go for it 😄!
This would be something like metav1 for kubeconfigs, right?

Gavin

unread,
Jan 23, 2018, 10:28:31 PM1/23/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@ncdc What's progress about creating a common package that put the common configuration? Need i start this work.

Andy Goldstein

unread,
Jan 25, 2018, 10:43:30 AM1/25/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@guangxuli sorry for the delayed response - I've been battling the flu.

We need to decide where to put it. Something like pkg/configapi maybe? I'm also wondering about how we deal with conversions between api versions for the actual config apis like kubeproxy. If we do this, ideally we'd just have a single package that has the common structs, and that could be referenced by both the internal and versioned component config api packages.

@liggitt do you have any recommendations?

Gavin

unread,
Jan 25, 2018, 8:49:23 PM1/25/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@ncdc that's ok, pay attention to your health.

fejta-bot

unread,
Apr 25, 2018, 10:24:46 PM4/25/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

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

fejta-bot

unread,
May 25, 2018, 11:11:01 PM5/25/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

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 rotten
/remove-lifecycle stale

fejta-bot

unread,
Jun 24, 2018, 11:58:29 PM6/24/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.


Mark the issue as fresh with /remove-lifecycle rotten.

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

k8s-ci-robot

unread,
Jun 24, 2018, 11:58:37 PM6/24/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Closed #54318.

Lucas Käldström

unread,
Jun 25, 2018, 4:11:38 PM6/25/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

/remove-lifecycle rotten

Lucas Käldström

unread,
Jun 25, 2018, 4:11:55 PM6/25/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Reopened #54318.

fejta-bot

unread,
Sep 23, 2018, 4:38:35 PM9/23/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

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

fejta-bot

unread,
Oct 23, 2018, 4:55:45 PM10/23/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

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 rotten

fejta-bot

unread,
Nov 22, 2018, 4:42:07 PM11/22/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.

Mark the issue as fresh with /remove-lifecycle rotten.

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

k8s-ci-robot

unread,
Nov 22, 2018, 4:42:24 PM11/22/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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

unread,
Nov 22, 2018, 4:42:25 PM11/22/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Closed #54318.

Lucas Käldström

unread,
Nov 26, 2018, 12:02:12 PM11/26/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

This has been fixed, we just forgot to close it. Good that the bot now closed it 👍

Reply all
Reply to author
Forward
0 new messages