Skip to content

Commit 08fa5c6

Browse files
committed
Add support for Hub RPC API through apache httpd.
Signed-off-by: Ricardo Mateus <rmateus@suse.com>
1 parent 5a53a69 commit 08fa5c6

6 files changed

Lines changed: 1 addition & 14 deletions

File tree

mgradm/shared/hub/xmlrpcapi.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ func generateHubXmlrpcSystemdService(systemd podman.Systemd, image string, serve
108108
hubXmlrpcData := templates.HubXmlrpcServiceTemplateData{
109109
CaSecret: podman.CASecret,
110110
CaPath: ssl.CAContainerPath,
111-
Ports: utils.HubXmlrpcPorts,
112111
NamePrefix: "uyuni",
113112
Network: podman.UyuniNetwork,
114113
Image: image,

mgradm/shared/kubernetes/ports.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ import (
1515
func getPortList(hub bool, debug bool) []types.PortMap {
1616
ports := utils.GetServerPorts(debug)
1717
ports = append(ports, utils.ReportDBPorts...)
18-
if hub {
19-
ports = append(ports, utils.HubXmlrpcPorts...)
20-
}
2118

2219
return ports
2320
}

mgradm/shared/templates/hubXmlrpcServiceTemplate.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ ExecStart=/usr/bin/podman run \
3333
--sdnotify=conmon \
3434
-d \
3535
--replace \
36-
{{- range .Ports }}
37-
-p {{ .Exposed }}:{{ .Port }}{{if .Protocol}}/{{ .Protocol }}{{end}} \
38-
{{- end }}
3936
-e HUB_API_URL \
4037
-e HUB_CONNECT_TIMEOUT \
4138
-e HUB_REQUEST_TIMEOUT \
@@ -61,7 +58,6 @@ WantedBy=multi-user.target default.target
6158
type HubXmlrpcServiceTemplateData struct {
6259
CaSecret string
6360
CaPath string
64-
Ports []types.PortMap
6561
NamePrefix string
6662
Image string
6763
Network string

shared/kubernetes/k3s_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
// Test that the generated endpoints are valid for traefik.
1414
func TestGetTraefikEndpointName(t *testing.T) {
1515
ports := utils.GetServerPorts(true)
16-
ports = append(ports, utils.HubXmlrpcPorts...)
1716
ports = append(ports, utils.GetProxyPorts()...)
1817

1918
for _, port := range ports {

shared/utils/ports.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ var TCPPodmanPorts = []types.PortMap{
142142
NewPortMap("tomcat", "node-exporter", 9100, 9100),
143143
}
144144

145-
// HubXmlrpcPorts are the tcp ports required by the Hub XMLRPC API service.
146-
var HubXmlrpcPorts = []types.PortMap{
147-
NewPortMap(HubAPIServiceName, "xmlrpc", 2830, 2830),
148-
}
149-
150145
// ProxyTCPPorts are the tcp ports required by the proxy.
151146
var ProxyTCPPorts = []types.PortMap{
152147
NewPortMap(ProxyTCPServiceName, "ssh", 8022, 22),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Add support for Hub RPC API through apache httpd.

0 commit comments

Comments
 (0)