Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit a9f6614

Browse files
committed
chore(cfd) add function stubs for unimplemented prepare steps
1 parent 2f2bc5c commit a9f6614

2 files changed

Lines changed: 23 additions & 6 deletions

File tree

runner-manager/cfd/cloudgov/cf_client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,8 @@ func (cf *CFClientAPI) mapRoute(
131131
)
132132
return err
133133
}
134+
135+
// addNetworkPolicy implements ClientAPI.
136+
func (cf *CFClientAPI) addNetworkPolicy(app *App, dest string, space string, port string) error {
137+
panic("unimplemented")
138+
}

runner-manager/cfd/cmd/drive/prepare.go

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ func (s *prepStage) exec() (err error) {
6060
return err
6161
}
6262

63-
// TODO:
64-
// install deps
65-
// allow access to services
63+
err = s.installDeps()
64+
if err != nil {
65+
return err
66+
}
6667

67-
return err
68+
return s.setNetworkPolicies()
6869
}
6970

7071
// TODO: refactor to include a service manifests slice and
@@ -77,10 +78,21 @@ func (s *prepStage) startServices() error {
7778
for _, serv := range s.config.Services {
7879
s.client.Push(serv.Manifest)
7980
// map-route containerID apps.internal --hostname containerID
80-
//
81+
82+
// TODO: implement WSR_ vars
83+
// Leaving this until more is implemented so the form can fit function
8184
// export WSR_SERVICE_HOST_$alias=$containerID.apps.internal
82-
//
8385
}
8486

8587
return nil
8688
}
89+
90+
// TODO: implement
91+
func (s *prepStage) installDeps() error {
92+
panic("unimplemented")
93+
}
94+
95+
// TODO: implement
96+
func (s *prepStage) setNetworkPolicies() error {
97+
panic("unimplemented")
98+
}

0 commit comments

Comments
 (0)