Skip to content

Interfacing Go with Kops to create a cluster#1

Open
kevinrodrigues13 wants to merge 5 commits intobu-528-sp19:masterfrom
kevinrodrigues13:master
Open

Interfacing Go with Kops to create a cluster#1
kevinrodrigues13 wants to merge 5 commits intobu-528-sp19:masterfrom
kevinrodrigues13:master

Conversation

@kevinrodrigues13
Copy link
Collaborator

@kevinrodrigues13 kevinrodrigues13 commented Feb 27, 2019

Hello Dan and Ravi,

I am adding two files in the repository that i found in the official documentation of cops.
The link is
https://github.com/kubernetes/kops/blob/master/cmd/kops/create.go
https://github.com/kubernetes/kops/blob/master/cmd/kops/create_cluster.go
I am really struggling to understand if these files are executed at the backend when we write kops commands in the shell to create clusters or are these files that can be executed writing a main.go file that will call the functions within these files to create a cluster. There are many such files within the cmd/kops folder of the above link, I have just pushed two of them to understand what needs to be done.

Best,
Kevin

@kevinrodrigues13 kevinrodrigues13 added the help wanted Extra attention is needed label Feb 27, 2019
Copy link

@ravisantoshgudimetla ravisantoshgudimetla left a comment

Choose a reason for hiding this comment

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

I think you're having issues in understanding how to import go packages and use them. You cannot add couple of files to repo and expect the code to execute. It is similar to taking 2 files(from 1000 odd) files in a package and trying to execute them. Please have a look at https://blog.gopheracademy.com/advent-2015/vendor-folder/. Basically, it tells you how to import & use other go packages within your code. Let me know, if you still are still stuck, I can show you vendoring works with an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants