-
Notifications
You must be signed in to change notification settings - Fork 16
Separate state store driver and address #168
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
Conversation
|
build PR |
|
build pr |
scripts/systemtests.sh
Outdated
| --network $NETWORK_NAME \ | ||
| $PROXY_IMAGE \ | ||
| --data-store-address="etcd://$ETCD_CONTAINER_IP:2379" \ | ||
| --data-store-driver="etcd" \ |
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.
fix indentation here please
scripts/systemtests.sh
Outdated
| -e NO_NETMASTER_STARTUP_CHECK=true \ | ||
| $PROXY_IMAGE \ | ||
| --data-store-address="consul://$CONSUL_CONTAINER_IP:8500" \ | ||
| --data-store-driver="consul" \ |
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.
and here
| if err != nil { | ||
| return err | ||
| } | ||
| if endpoint.Scheme == "consul" { |
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.
nice 👍
state/etcdstatedriver.go
Outdated
| 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) |
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.
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>
|
@dseevr updated |
|
merging because CI was verified manually |
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