Skip to content

Commit f059556

Browse files
committed
Fix
1 parent 7a8c220 commit f059556

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

install/installer/pkg/components/public-api-server/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ package public_api_server
77
const (
88
Component = "public-api-server"
99
ContainerPort = 9000
10+
ServicePort = 9000
1011
PortName = "http"
1112
)

install/installer/pkg/components/public-api-server/service.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ import (
66
)
77

88
func service(ctx *common.RenderContext) ([]runtime.Object, error) {
9+
if cfg := getExperimentalPublicAPIConfig(ctx); cfg == nil {
10+
return nil, nil
11+
}
912

1013
return common.GenerateService(Component, map[string]common.ServicePort{
1114
PortName: {
1215
ContainerPort: ContainerPort,
1316
ServicePort: ServicePort,
1417
},
15-
}), nil
18+
})(ctx)
1619
}

0 commit comments

Comments
 (0)