Skip to content

Commit

Permalink
fix check error
Browse files Browse the repository at this point in the history
  • Loading branch information
anveshreddy18 committed Oct 24, 2024
1 parent 509f905 commit 840a487
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/miscellaneous/miscellaneous.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ func parseAdvertiseURLsConfig(configFile string) (*advertiseURLsConfig, error) {
return &advURLsConfig, nil
}

// GetInitialAdvertisePeerURLs retrieves the initial advertise peer URLs for the etcd member.
func GetInitialAdvertisePeerURLs(configFile string) ([]string, error) {
memberName, err := GetEnvVarOrError("POD_NAME")
if err != nil {
Expand All @@ -578,6 +579,7 @@ func GetInitialAdvertisePeerURLs(configFile string) ([]string, error) {
return peerURLs, nil
}

// GetAdvertiseClientURLs retrieves the advertise client URLs for the etcd member.
func GetAdvertiseClientURLs(configFile string) ([]string, error) {
memberName, err := GetEnvVarOrError("POD_NAME")
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/miscellaneous/miscellaneous_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ var _ = Describe("Miscellaneous Tests", func() {
BeforeEach(func() {
etcdConfigYaml := `name: etcd1
initial-advertise-peer-urls:
test_pod:
test_pod1:
- http://etcd-main-peer.default:2380
- http://etcd-main-peer.default:2381
test_pod2:
Expand All @@ -877,7 +877,7 @@ initial-cluster: etcd1=http://0.0.0.0:2380`
BeforeEach(func() {
etcdConfigYaml := `name: etcd1
initial-advertise-peer-urls:
test_pod:
test_pod1:
- https://etcd-main-peer.default:2380
- https://etcd-main-peer.default:2381
test_pod2:
Expand Down

0 comments on commit 840a487

Please sign in to comment.