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

extends is supported construct but conversion doc says opposite #475

Closed
surajssd opened this issue Mar 8, 2017 · 10 comments
Closed

extends is supported construct but conversion doc says opposite #475

surajssd opened this issue Mar 8, 2017 · 10 comments
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@surajssd
Copy link
Member

surajssd commented Mar 8, 2017

In conversion doc its mentioned that extends is unsupported which is not true.

Not all the forms of doing extends is supported right now but one specific way to do extends from docker-compose is supported in kompose and there is a issue in upstream libcompose to handle that: docker/libcompose#428

@cdrage
Copy link
Member

cdrage commented Mar 8, 2017

You say it's unsupported, but then say that not all forms are supported for libcompose. So at the moment, it is indeed unsupported until docker/libcompose#428 is fixed. I guess we can add that to the conversion doc?

@surajssd
Copy link
Member Author

surajssd commented Mar 9, 2017

What I mean here is you can still use extends and it works in one form and other one will fail.

@cdrage
Copy link
Member

cdrage commented Mar 9, 2017

So it's still not 100%-supported. I believe we should still say no, but add a note that traditionally Kubernetes a flat-network and everything is interconnected, but when you do extends for each Docker container, that functionality will not work and service discovery (such as etcd) is required if you wish to talk for example to the other Docker container via domain name.

@kadel
Copy link
Member

kadel commented Mar 9, 2017

As I understand it, only thing that is not working is when you use shorter version (when extends is string).
But if you use full format (extends is object) than everything is fine.

So it's still not 100%-supported. I believe we should still say no, but add a note that traditionally Kubernetes a flat-network and everything is interconnected, but when you do extends for each Docker container, that functionality will not work and service discovery (such as etcd) is required if you wish to talk for example to the other Docker container via domain name.

Maybe I missed something, but how can use of extends break service discovery?

@cdrage
Copy link
Member

cdrage commented Mar 9, 2017

@kadel Ah crap, I mixed up extends with external_links. Ignore my previous comment.

Okay, so implement using extends as a string would be the best solution so we have both extends working as an object + string variable

@kadel
Copy link
Member

kadel commented Mar 9, 2017

@kadel Ah crap, I mixed up extends with external_links. Ignore my previous comment.

now it makes sense 😆

Okay, so implement using extends as a string would be the best solution so we have both extends working as an object + string variable

that needs to be fixed in docker/libcompose#428

@kadel
Copy link
Member

kadel commented Mar 14, 2017

Documentation should say that Kompose supports extends

@kadel kadel added the kind/documentation Categorizes issue or PR as related to documentation. label Mar 14, 2017
@cdrage
Copy link
Member

cdrage commented Mar 14, 2017

@kadel @surajssd

Bit confused as to whether this is supported or not, see the below output:

▶ cat docker-compose.yaml 
version: '2' 
services:
  foo:
    image: foo 

  bar:
    extends:
      service: foo

~                                                                                                                                                                                                                                                                                
▶ kompose convert --stdout
WARN Unsupported extends key - ignoring   

@kadel
Copy link
Member

kadel commented Mar 15, 2017

yeah :-(

That warning is actually wrong. I've just tested it and it works correctly.

@kadel
Copy link
Member

kadel commented Mar 15, 2017

#493

cdrage added a commit to cdrage/kompose that referenced this issue Mar 15, 2017
This removes the "unsupported" extends from the list (since we actually
support) as well as add a clarificiation on the conversion.md document.

Closes kubernetes#475
Closes kubernetes#493
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

3 participants