Installer: Move port forwarding config into the apps

Change-Id: I6d70c8ce72d21ebe74d126a680fa66ba6c3f2857
diff --git a/core/installer/values-tmpl/gerrit.cue b/core/installer/values-tmpl/gerrit.cue
index 6d232f7..2c57ed5 100644
--- a/core/installer/values-tmpl/gerrit.cue
+++ b/core/installer/values-tmpl/gerrit.cue
@@ -45,6 +45,15 @@
 		}
 	}
 
+	openPort: [{
+		network: input.network
+		port: input.sshPort
+		service: {
+			name: "gerrit-gerrit-service"
+			port: _sshPort
+		}
+	}]
+
 	// TODO(gio): configure busybox
 	images: {
 		gerrit: {
@@ -315,14 +324,5 @@
 _httpPort: 80
 _sshPort: 22
 
-portForward: [#PortForward & {
-	allocator: input.network.allocatePortAddr
-	reservator: input.network.reservePortAddr
-	deallocator: input.network.deallocatePortAddr
-	sourcePort: input.sshPort
-	serviceName: "gerrit-gerrit-service"
-	targetPort: _sshPort
-}]
-
 _oauth2ClientCredentials: "gerrit-oauth2-credentials"
 _gerritConfigMapName: "gerrit-config"