shukitchan commented on code in PR #300:
URL:
https://github.com/apache/trafficserver-ingress-controller/pull/300#discussion_r2321717072
##########
proxy/fakeATS.go:
##########
@@ -38,6 +39,16 @@ func (m *FakeATSManager) IncludeIngressClass(c string) bool {
return false
}
+func (m *FakeATSManager) CacheSet() (msg string, err error) {
+ cmd := exec.Command("traffic_ctl", "config", "reload")
+ stdoutStderr, err := cmd.CombinedOutput()
+ if err != nil {
+ return "", fmt.Errorf("failed to execute: traffic_ctl config
reload Error: %s", err.Error())
+ }
+ return fmt.Sprintf("Reload succesful --> stdoutStderr: %q",
stdoutStderr), nil
+
+}
+
Review Comment:
I think we don't actually need to do the real thing here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]