Skip to content

Commit 8395ab7

Browse files
Merge pull request #1019 from skitt/dns-suffix
Bug 1748914: Drop the hard-coded DNS suffix
2 parents f3bdafc + a011531 commit 8395ab7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/api/apis/operators/catalogsource_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type GRPCConnectionState struct {
7474
}
7575

7676
func (s *RegistryServiceStatus) Address() string {
77-
return fmt.Sprintf("%s.%s.svc.cluster.local:%s", s.ServiceName, s.ServiceNamespace, s.Port)
77+
return fmt.Sprintf("%s.%s.svc:%s", s.ServiceName, s.ServiceNamespace, s.Port)
7878
}
7979

8080
type CatalogSourceStatus struct {

pkg/api/apis/operators/v1alpha1/catalogsource_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type RegistryServiceStatus struct {
7575
}
7676

7777
func (s *RegistryServiceStatus) Address() string {
78-
return fmt.Sprintf("%s.%s.svc.cluster.local:%s", s.ServiceName, s.ServiceNamespace, s.Port)
78+
return fmt.Sprintf("%s.%s.svc:%s", s.ServiceName, s.ServiceNamespace, s.Port)
7979
}
8080

8181
type GRPCConnectionState struct {

0 commit comments

Comments
 (0)