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

Bug 1924913: A valid etcd endpoint should have the URL scheme prepended. #536

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/cmd/rollbackcopy/backuputils.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func archiveLatestResources(configDir, backupFile string) error {
}

func backup(configDir string) error {
cli, err := getEtcdClient([]string{"localhost:2379"})
cli, err := getEtcdClient([]string{"https://localhost:2379"})
if err != nil {
return fmt.Errorf("backup: failed to get etcd client: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/rollbackcopy/etcdclientutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func getClusterVersionAndUpgradeInfo(cli *clientv3.Client) (string, bool, error)
}

func checkLeadership(name string) (bool, error) {
cli, err := getEtcdClient([]string{"localhost:2379"})
cli, err := getEtcdClient([]string{"https://localhost:2379"})
if err != nil {
return false, fmt.Errorf("checkLeadership: failed to get etcd client: %w", err)
}
Expand Down