This repository has been archived by the owner on Jan 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
allowing for http api to be used for fleet provider #1
Open
brendangibat
wants to merge
12
commits into
makethunder:master
Choose a base branch
from
brendangibat:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5c55564
allowing for http api to be used for fleet provider
brendangibat 738ebee
fixing hook that returns null api for api client
brendangibat 830c568
adding in etcd client for fleet v0.10.2 (need to update next to using…
brendangibat cd25c63
changing around to make code flow better
brendangibat 07b193a
updating comments
brendangibat f506ec6
updating outputed text and fallthrough on empty string for tunnel
brendangibat 67d9b0f
adding test for empty tunnel endpoint
brendangibat db56e45
updating readme and etcd config value
brendangibat 7769f61
mimicking fleetctl a little better
brendangibat 0d3546a
mixing up endpoints
brendangibat 0941405
not showing port 4001 so as to not confuse people about the api endpoint
brendangibat d370dfb
changing name for golint
brendangibat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bin/* | ||
terraform-provider-fleet | ||
|
This file contains 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
This file contains 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
This file contains 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
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.
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.
This seems a bit at odds with the capabilities of
fleetctl
, where the--driver
option can be "API" or "etcd".--tunnel
is a different option, and it's possible to combine with--endpoint
, for instance if you want to tunnel to some host and then access the endpoint there at something other than the defaultunix:///var/run/fleet.sock
. I think it would be good to provide a similar functionality here, and keep the configuration item names consistent with thefleetctl
option names.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.
Gotcha, I saw the difference but wasn't sure about modifying your static setting of that tunnel socket location, I've updated that so it makes sense.
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.
Modify all you want. I doubt many people are using this provider, so it's probably more important that we get it right than it is to maintain backwards compatibility.
I think we should more or less be able to use the code from https://github.com/coreos/fleet/blob/master/fleetctl/fleetctl.go with some modifications to get the configuration from Terraform instead of
globalFlags
. It's a shame it's not exported in a more easily reused way, so I guess some copy & paste could be fine. 😞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.
Ahh, yeah it would be good to mimic more completely how they build the client. Do you want that refactor in this PR or another one?
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.
@bitglue hey Can I open a new PR for pulling in what the main fleetctl config is doing? I want to be sure I've got enough PR's for this: https://hacktoberfest.digitalocean.com/
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.
Heh, I was trying to do hacktoberfest too. Open as many PRs as you want, as long as each one has a more or less coherent purpose.