Skip to content

Commit be26f9a

Browse files
Fix creating sync components with EA type set to Managed and headless svc (#1314)
1 parent 0bbf335 commit be26f9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- (Feature) PV Unschedulable condition
99
- (Feature) Features startup logging
1010
- (Maintenance) Generics for type handling
11+
- (Bugfix) Fix creating sync components with EA type set to Managed and headless svc
1112

1213
## [1.2.27](https://github.com/arangodb/kube-arangodb/tree/1.2.27) (2023-04-27)
1314
- (Feature) Add InSync Cache

pkg/deployment/resources/pod_creator_sync.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// DISCLAIMER
33
//
4-
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -454,7 +454,7 @@ func (m *MemberSyncPod) syncHostAlias() *core.HostAlias {
454454

455455
endpoint := k8sutil.CreateSyncMasterClientServiceDNSNameWithDomain(m.apiObject, m.spec.ClusterDomain)
456456

457-
if svc.Spec.ClusterIP == "" {
457+
if svc.Spec.ClusterIP == "" || svc.Spec.ClusterIP == core.ClusterIPNone {
458458
return nil
459459
}
460460

0 commit comments

Comments
 (0)