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

feat(launch): Provider for Run queues #22

Merged
merged 21 commits into from
Aug 25, 2024
Merged

Conversation

KyleGoyette
Copy link
Collaborator

@KyleGoyette KyleGoyette commented Jun 14, 2024

Initial implementation of a terraform provider for W&B Run Queues

@KyleGoyette KyleGoyette changed the title Launch/run queues 2 feat(launch): Provider for Run queues Jun 17, 2024
@KyleGoyette KyleGoyette marked this pull request as ready for review June 20, 2024 16:44
@KyleGoyette KyleGoyette reopened this Jun 24, 2024
Copy link

@bcsherma bcsherma left a comment

Choose a reason for hiding this comment

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

I had one naming nit and I think we need to either make template_variables and resource_config required or have it so they don't error when not provided. Once I added those fields in my test it worked super smoothly!

internal/provider/types.go Outdated Show resolved Hide resolved
internal/provider/run_queue_resource.go Show resolved Hide resolved
internal/provider/run_queue_resource.go Show resolved Hide resolved
@KyleGoyette KyleGoyette requested a review from bcsherma July 2, 2024 23:46
baseURL := os.Getenv("WANDB_BASE_URL")
apiKey := os.Getenv("WANDB_API_KEY")
headers := http.Header{}
headers.Set("Authorization", "Basic "+base64.StdEncoding.EncodeToString([]byte("api:"+apiKey)))

Choose a reason for hiding this comment

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

@wandb-kc
Should we be using Bearer Token instead of Basic authorization here?

Choose a reason for hiding this comment

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

I think this should be okay since we're not using OAuth tokens. I tend to think of username:password with Basic Authorization but have seen instances where Basic is used to send tokens. I think Stripe does this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@KyleGoyette KyleGoyette merged commit d44d450 into main Aug 25, 2024
4 checks passed
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.

4 participants