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#1kevinrodrigues13 wants to merge 5 commits intobu-528-sp19:masterfrom kevinrodrigues13:master
kevinrodrigues13 wants to merge 5 commits intobu-528-sp19:masterfrom
kevinrodrigues13:master
Conversation
ravisantoshgudimetla
left a comment
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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