Skip to content

Commit a011531

Browse files
committed
Drop the hard-coded DNS suffix
Having the catalog source hard-code its cluster.local suffix makes it impossible to deploy in environments which use different suffixes. This patch drops it, relying on the default search which K8s setups expect to be set correctly anyway. Signed-off-by: Stephen Kitt <[email protected]>
1 parent 0953728 commit a011531

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)