kubernetes / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
110.28k stars 39.45k forks source link

CustomResourceDefinition support for federation #53432

Closed ljmatkins closed 6 years ago

ljmatkins commented 7 years ago

Is this a BUG REPORT or FEATURE REQUEST?: /kind feature

What happened: When I attempt to kubectl apply a CustomResourceDefinition to a federation, I receive the following error:

error: unable to recognize "resourcedefinition.yaml": no matches for apiextensions.k8s.io/, Kind=CustomResourceDefinition

What you expected to happen:

It would be nice if federations supported this resource type, so that we can run applications expecting it on top of federated clusters.

How to reproduce it (as minimally and precisely as possible):

1) Bring up a federated cluster 2) Create a resourcedefinition.yaml file (e.g. https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/) 2) Run kubectl apply -f resourcedefinition.yaml against the federated cluster

Environment:

ljmatkins commented 7 years ago

/sig federation /cc @kubernetes/sig-federation-feature-requests

k8s-ci-robot commented 7 years ago

@ljmatkins: Reiterating the mentions to trigger a notification: @kubernetes/sig-federation-feature-requests

In response to [this](https://github.com/kubernetes/kubernetes/issues/53432#issuecomment-334147584): >/sig federation >/cc @kubernetes/sig-federation-feature-requests Instructions for interacting with me using PR comments are available [here](https://github.com/kubernetes/community/blob/master/contributors/devel/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
ghost commented 6 years ago

/sig multicluster

ghost commented 6 years ago

Sounds like a useful feature. @ljmatkins are you willing/able to submit a design proposal?

ljmatkins commented 6 years ago

While willing, I'm not yet sufficiently familiar with the k8s federation design to provide much input!

I had some vague sense that this could maybe "just work like ConfigMaps or Secrets" -- although that might just be wishful thinking. 😄

ghost commented 6 years ago

@ljmatkins I think you're probably right, but someone would need to think through the details. Even if you don't design the internal implementation, if you could describe what you would like it to look like from the outside (i.e. how the API would look and behave, in your ideal world), that would be useful.

irfanurrehman commented 6 years ago

This issue was labelled only for sig/multicluster and is thus moved over to kubernetes/federation#9. If this does not seem to be right, please reopen this and notify us @kubernetes/sig-multicluster-misc. /close