diff --git a/functions/async/bindings/cron-input-kafka-output/cron-input-kafka-output.yaml b/functions/async/bindings/cron-input-kafka-output/cron-input-kafka-output.yaml index 57b1405..7947581 100644 --- a/functions/async/bindings/cron-input-kafka-output/cron-input-kafka-output.yaml +++ b/functions/async/bindings/cron-input-kafka-output/cron-input-kafka-output.yaml @@ -20,6 +20,8 @@ spec: env: FUNC_NAME: "HandleCronInput" FUNC_CLEAR_SOURCE: "true" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/async/bindings/cron-input-kafka-output" diff --git a/functions/async/bindings/cron-input/cron-input.yaml b/functions/async/bindings/cron-input/cron-input.yaml index 4538cf5..ef0388b 100644 --- a/functions/async/bindings/cron-input/cron-input.yaml +++ b/functions/async/bindings/cron-input/cron-input.yaml @@ -12,6 +12,8 @@ spec: env: FUNC_NAME: "HandleCronInput" FUNC_CLEAR_SOURCE: "true" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/async/bindings/cron-input" diff --git a/functions/async/bindings/kafka-input/kafka-input.yaml b/functions/async/bindings/kafka-input/kafka-input.yaml index 1e6736b..0d552cb 100644 --- a/functions/async/bindings/kafka-input/kafka-input.yaml +++ b/functions/async/bindings/kafka-input/kafka-input.yaml @@ -12,6 +12,8 @@ spec: env: FUNC_NAME: "HandleKafkaInput" FUNC_CLEAR_SOURCE: "true" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/async/bindings/kafka-input" diff --git a/functions/async/logs-handler-function/logs-handler-function.yaml b/functions/async/logs-handler-function/logs-handler-function.yaml index f6e7da3..162f6f8 100644 --- a/functions/async/logs-handler-function/logs-handler-function.yaml +++ b/functions/async/logs-handler-function/logs-handler-function.yaml @@ -12,8 +12,8 @@ spec: env: FUNC_NAME: "LogsHandler" FUNC_CLEAR_SOURCE: "true" - # Use FUNC_GOPROXY to set the goproxy - # FUNC_GOPROXY: "https://goproxy.cn" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/async/logs-handler-function/" diff --git a/functions/async/pubsub/subscriber/function-subscriber.yaml b/functions/async/pubsub/subscriber/function-subscriber.yaml index 741c0c6..60ed1d7 100644 --- a/functions/async/pubsub/subscriber/function-subscriber.yaml +++ b/functions/async/pubsub/subscriber/function-subscriber.yaml @@ -12,8 +12,8 @@ spec: env: FUNC_NAME: "Subscriber" FUNC_CLEAR_SOURCE: "true" - # Use FUNC_GOPROXY to set the goproxy - # FUNC_GOPROXY: "https://goproxy.cn" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/async/pubsub/subscriber" diff --git a/functions/knative/hello-world-go/function-sample.yaml b/functions/knative/hello-world-go/function-sample.yaml index e7774c1..692f9a5 100644 --- a/functions/knative/hello-world-go/function-sample.yaml +++ b/functions/knative/hello-world-go/function-sample.yaml @@ -13,6 +13,8 @@ spec: env: FUNC_NAME: "HelloWorld" FUNC_CLEAR_SOURCE: "true" + # # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules + # FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/knative/hello-world-go" diff --git a/functions/knative/logs-handler-function/logs-handler-function.yaml b/functions/knative/logs-handler-function/logs-handler-function.yaml index d491c54..5e4fac6 100644 --- a/functions/knative/logs-handler-function/logs-handler-function.yaml +++ b/functions/knative/logs-handler-function/logs-handler-function.yaml @@ -12,6 +12,8 @@ spec: env: FUNC_NAME: "LogsHandler" FUNC_CLEAR_SOURCE: "true" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/knative/logs-handler-function/" diff --git a/functions/knative/multiple-functions-go/function-sample.yaml b/functions/knative/multiple-functions-go/function-sample.yaml index 6193a5d..9b48119 100644 --- a/functions/knative/multiple-functions-go/function-sample.yaml +++ b/functions/knative/multiple-functions-go/function-sample.yaml @@ -13,6 +13,8 @@ spec: env: FUNC_NAME: "MultipleFunctions" FUNC_CLEAR_SOURCE: "true" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/knative/multiple-functions-go" diff --git a/functions/knative/path-parameters-function-go/function-sample.yaml b/functions/knative/path-parameters-function-go/function-sample.yaml index 165ad2c..bffcaa8 100644 --- a/functions/knative/path-parameters-function-go/function-sample.yaml +++ b/functions/knative/path-parameters-function-go/function-sample.yaml @@ -13,6 +13,8 @@ spec: env: FUNC_NAME: "pathParametersFunction" FUNC_CLEAR_SOURCE: "true" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/knative/path-parameters-function-go" diff --git a/functions/knative/with-output-binding/function-front.yaml b/functions/knative/with-output-binding/function-front.yaml index ed84f71..7ab8614 100644 --- a/functions/knative/with-output-binding/function-front.yaml +++ b/functions/knative/with-output-binding/function-front.yaml @@ -21,6 +21,8 @@ spec: env: FUNC_NAME: "ForwardToKafka" FUNC_CLEAR_SOURCE: "true" +# # Use FUNC_GOPROXY to set the goproxy if failed to fetch go modules +# FUNC_GOPROXY: "https://goproxy.cn" srcRepo: url: "https://github.com/OpenFunction/samples.git" sourceSubPath: "functions/knative/with-output-binding"