Skip to content

Conversation

@tiewei
Copy link
Contributor

@tiewei tiewei commented Dec 11, 2017

In the past, the state store driver address's schema part indicates
the state store driver type, however, it limits https endpoints.
This commit separates the driver type and address to make it align
with updated netplugin and netmaster's CLI.

Signed-off-by: Wei Tie nuaafe@gmail.com

@tiewei
Copy link
Contributor Author

tiewei commented Dec 11, 2017

build PR

@dseevr
Copy link
Contributor

dseevr commented Dec 11, 2017

build pr

--network $NETWORK_NAME \
$PROXY_IMAGE \
--data-store-address="etcd://$ETCD_CONTAINER_IP:2379" \
--data-store-driver="etcd" \
Copy link
Contributor

Choose a reason for hiding this comment

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

fix indentation here please

-e NO_NETMASTER_STARTUP_CHECK=true \
$PROXY_IMAGE \
--data-store-address="consul://$CONSUL_CONTAINER_IP:8500" \
--data-store-driver="consul" \
Copy link
Contributor

Choose a reason for hiding this comment

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

and here

if err != nil {
return err
}
if endpoint.Scheme == "consul" {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice 👍

if endpoint.Scheme == "etcd" {
endpoint.Scheme = "http"
} else if endpoint.Scheme != "http" && endpoint.Scheme != "https" {
return fmt.Errorf("invalid consul URL scheme %q", endpoint.Scheme)
Copy link
Contributor

Choose a reason for hiding this comment

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

consul -> etcd

In the past, the state store driver address's schema part indicates
the state store driver type, however, it limits https endpoints.
This commit separates the driver type and address to make it align
with updated netplugin and netmaster's CLI.

Signed-off-by: Wei Tie <nuaafe@gmail.com>
@tiewei
Copy link
Contributor Author

tiewei commented Dec 12, 2017

@dseevr updated

@dseevr
Copy link
Contributor

dseevr commented Dec 12, 2017

merging because CI was verified manually

@dseevr dseevr merged commit 0374e5d into contiv:master Dec 12, 2017
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.

2 participants