-
Notifications
You must be signed in to change notification settings - Fork 47
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
allocator draft #28
allocator draft #28
Conversation
tools/allocator/main.go
Outdated
"-o","jsonpath='{.status.loadBalancer.ingress[0].ip}'"); | ||
var ip string; | ||
reqBody, err := json.Marshal(map[string] string { | ||
"buildID": "85ffe8da-c82f-4035-86c5-9d2b5f42d6f6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should be updateable by the user
tools/allocator/main.go
Outdated
|
||
if len(args) <= 1 { | ||
fmt.Println("Usage of the allocator tool"); | ||
fmt.Println("\tallocate #Initialize a server with the given paramaters"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we specify that the valid input for this is (1)?
tools/allocator/main.go
Outdated
args := os.Args; | ||
|
||
if len(args) == 1 { | ||
fmt.Println("Usage of the allocator tool (is highly recommended to have"+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say its required, not just recommended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: "it" is required
tools/allocator/main.go
Outdated
@@ -0,0 +1,146 @@ | |||
package main; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go.mod is missing, did you run go mod init? #Resolved
tools/allocator/main.go
Outdated
@@ -0,0 +1,146 @@ | |||
package main; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, any chance you can add a README.md with some basic instructions?
tools/allocator/README.md
Outdated
Thanks for using the allocator tool for thundernetes. To use it: | ||
- `kubectl` is required to be in $PATH. for more information, please refer to the following [guide](https://kubernetes.io/docs/tasks/tools/#kubectl) | ||
- Compile the main.go file (optional to provide a meaningful name like allocator, thunderallocator or something similar). | ||
- Once you the executable, you can: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "Once you run"
tools/allocator/README.md
Outdated
|
||
Thanks for using the allocator tool for thundernetes. To use it: | ||
- `kubectl` is required to be in $PATH. for more information, please refer to the following [guide](https://kubernetes.io/docs/tasks/tools/#kubectl) | ||
- Compile the main.go file (optional to provide a meaningful name like allocator, thunderallocator or something similar). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add go run main.go
to compile it
Fixes #14 |
In this branch will be uploaded the proposed changes to the thundernetes allocator tool