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

allocator draft #28

Merged
merged 6 commits into from
Oct 16, 2021
Merged

Conversation

onlyralphie
Copy link
Contributor

In this branch will be uploaded the proposed changes to the thundernetes allocator tool

"-o","jsonpath='{.status.loadBalancer.ingress[0].ip}'");
var ip string;
reqBody, err := json.Marshal(map[string] string {
"buildID": "85ffe8da-c82f-4035-86c5-9d2b5f42d6f6",
Copy link
Collaborator

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


if len(args) <= 1 {
fmt.Println("Usage of the allocator tool");
fmt.Println("\tallocate #Initialize a server with the given paramaters");
Copy link
Collaborator

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)?

args := os.Args;

if len(args) == 1 {
fmt.Println("Usage of the allocator tool (is highly recommended to have"+
Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: "it" is required

@@ -0,0 +1,146 @@
package main;
Copy link
Collaborator

@dgkanatsios dgkanatsios Oct 15, 2021

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

@@ -0,0 +1,146 @@
package main;
Copy link
Collaborator

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?

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:
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: "Once you run"


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).
Copy link
Collaborator

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

@dgkanatsios dgkanatsios merged commit 6598769 into PlayFab:master Oct 16, 2021
@dgkanatsios
Copy link
Collaborator

Fixes #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants