Skip to content

Commit 4007f8b

Browse files
authored
Add go proxy prompt to go samples (OpenFunction#119)
Signed-off-by: Benjamin Huo <[email protected]>
1 parent c19fe4c commit 4007f8b

File tree

10 files changed

+20
-4
lines changed

10 files changed

+20
-4
lines changed

functions/async/bindings/cron-input-kafka-output/cron-input-kafka-output.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ spec:
2020
env:
2121
FUNC_NAME: "HandleCronInput"
2222
FUNC_CLEAR_SOURCE: "true"
23+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
24+
# FUNC_GOPROXY: "https://goproxy.cn"
2325
srcRepo:
2426
url: "https://github.com/OpenFunction/samples.git"
2527
sourceSubPath: "functions/async/bindings/cron-input-kafka-output"

functions/async/bindings/cron-input/cron-input.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ spec:
1212
env:
1313
FUNC_NAME: "HandleCronInput"
1414
FUNC_CLEAR_SOURCE: "true"
15+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
16+
# FUNC_GOPROXY: "https://goproxy.cn"
1517
srcRepo:
1618
url: "https://github.com/OpenFunction/samples.git"
1719
sourceSubPath: "functions/async/bindings/cron-input"

functions/async/bindings/kafka-input/kafka-input.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ spec:
1212
env:
1313
FUNC_NAME: "HandleKafkaInput"
1414
FUNC_CLEAR_SOURCE: "true"
15+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
16+
# FUNC_GOPROXY: "https://goproxy.cn"
1517
srcRepo:
1618
url: "https://github.com/OpenFunction/samples.git"
1719
sourceSubPath: "functions/async/bindings/kafka-input"

functions/async/logs-handler-function/logs-handler-function.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ spec:
1212
env:
1313
FUNC_NAME: "LogsHandler"
1414
FUNC_CLEAR_SOURCE: "true"
15-
# Use FUNC_GOPROXY to set the goproxy
16-
# FUNC_GOPROXY: "https://goproxy.cn"
15+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
16+
# FUNC_GOPROXY: "https://goproxy.cn"
1717
srcRepo:
1818
url: "https://github.com/OpenFunction/samples.git"
1919
sourceSubPath: "functions/async/logs-handler-function/"

functions/async/pubsub/subscriber/function-subscriber.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ spec:
1212
env:
1313
FUNC_NAME: "Subscriber"
1414
FUNC_CLEAR_SOURCE: "true"
15-
# Use FUNC_GOPROXY to set the goproxy
16-
# FUNC_GOPROXY: "https://goproxy.cn"
15+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
16+
# FUNC_GOPROXY: "https://goproxy.cn"
1717
srcRepo:
1818
url: "https://github.com/OpenFunction/samples.git"
1919
sourceSubPath: "functions/async/pubsub/subscriber"

functions/knative/hello-world-go/function-sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
env:
1414
FUNC_NAME: "HelloWorld"
1515
FUNC_CLEAR_SOURCE: "true"
16+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
17+
# FUNC_GOPROXY: "https://goproxy.cn"
1618
srcRepo:
1719
url: "https://github.com/OpenFunction/samples.git"
1820
sourceSubPath: "functions/knative/hello-world-go"

functions/knative/logs-handler-function/logs-handler-function.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ spec:
1212
env:
1313
FUNC_NAME: "LogsHandler"
1414
FUNC_CLEAR_SOURCE: "true"
15+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
16+
# FUNC_GOPROXY: "https://goproxy.cn"
1517
srcRepo:
1618
url: "https://github.com/OpenFunction/samples.git"
1719
sourceSubPath: "functions/knative/logs-handler-function/"

functions/knative/multiple-functions-go/function-sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
env:
1414
FUNC_NAME: "MultipleFunctions"
1515
FUNC_CLEAR_SOURCE: "true"
16+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
17+
# FUNC_GOPROXY: "https://goproxy.cn"
1618
srcRepo:
1719
url: "https://github.com/OpenFunction/samples.git"
1820
sourceSubPath: "functions/knative/multiple-functions-go"

functions/knative/path-parameters-function-go/function-sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
env:
1414
FUNC_NAME: "pathParametersFunction"
1515
FUNC_CLEAR_SOURCE: "true"
16+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
17+
# FUNC_GOPROXY: "https://goproxy.cn"
1618
srcRepo:
1719
url: "https://github.com/OpenFunction/samples.git"
1820
sourceSubPath: "functions/knative/path-parameters-function-go"

functions/knative/with-output-binding/function-front.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ spec:
2121
env:
2222
FUNC_NAME: "ForwardToKafka"
2323
FUNC_CLEAR_SOURCE: "true"
24+
# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules
25+
# FUNC_GOPROXY: "https://goproxy.cn"
2426
srcRepo:
2527
url: "https://github.com/OpenFunction/samples.git"
2628
sourceSubPath: "functions/knative/with-output-binding"

0 commit comments

Comments
 (0)