Skip to content

Commit 36bd5ec

Browse files
committed
Rename submodule to repository-function
1 parent 5afbf9b commit 36bd5ec

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ compressed and uploaded as a Cloud Storage bucket object which will be
99
leveraged by the function.
1010

1111
Alternatively, the
12-
[function-sourced-from-repository submodule][f6n-sourced-from-r8y-s7e]
12+
[repository-function submodule][repository-function-submodule]
1313
configures a function sourced from a Cloud Source Repositories
1414
repository.
1515

@@ -183,7 +183,7 @@ Run `make generate_docs` to update the documentation.
183183
[a7c-l7g-from-l7t-example]: examples/automatic-labelling-from-localhost
184184
[bundler-site]: https://bundler.io/
185185
[event-project-log-entry-submodule]: modules/event-project-log-entry
186-
[f6n-sourced-from-r8y-s7e]: modules/function-sourced-from-repository
186+
[repository-function-submodule]: modules/repository-function
187187
[flake8-site]: https://pypi.org/project/flake8/
188188
[gofmt-site]: https://golang.org/cmd/gofmt/
189189
[hadolint-site]: https://github.com/hadolint/hadolint/

examples/automatic-labelling-from-repository/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Automatic Labelling from Repository
22

33
This example demonstrates how to use the
4-
[function-sourced-from-repository submodule][f6n-sourced-from-r8y-s7e]
5-
and the
4+
[repository-function submodule][repository-function-submodule] and the
65
[event-project-log-entry submodule][event-project-log-entry-submodule]
76
to configure a system
87
which responds to Compute VM creation events by labelling them with the
@@ -33,8 +32,8 @@ this directory:
3332
## Requirements
3433

3534
The following sections describe the requirements which must be met in
36-
order to invoke this module. The requirements of the
37-
[function-sourced-from-repository submodule][f6n-s4e-from-r8y-s7e-r10s]
35+
order to invoke this module. The
36+
[repository-function submodule requirements][repository-function-submodule-requirements]
3837
and the
3938
[event-project-log-entry submodule][event-project-log-entry-s7e-r10s]
4039
must also be met.
@@ -64,5 +63,5 @@ following APIs enabled:
6463

6564
[event-project-log-entry-s7e-r10s]: ../../modules/event-project-log-entry/README.md#requirements
6665
[event-project-log-entry-submodule]: ../../modules/event-project-log-entry
67-
[f6n-s4e-from-r8y-s7e-r10s]: ../../modules/function-sourced-from-repository/README.md#requirements
68-
[f6n-sourced-from-r8y-s7e]: ../../modules/function-sourced-from-repository
66+
[repository-function-submodule-requirements]: ../../modules/repository-function/README.md#requirements
67+
[repository-function-submodule]: ../../modules/repository-function

examples/automatic-labelling-from-repository/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ module "event_project_log_entry" {
8585
project_id = "${var.project_id}"
8686
}
8787

88-
module "function_sourced_from_repository" {
89-
source = "../../modules/function-sourced-from-repository"
88+
module "repository_function" {
89+
source = "../../modules/repository-function"
9090

9191
description = "Labels resource with owner information."
9292
entry_point = "labelResource"
@@ -107,7 +107,7 @@ resource "null_resource" "wait_for_function" {
107107
command = "sleep 60"
108108
}
109109

110-
depends_on = ["module.function_sourced_from_repository"]
110+
depends_on = ["module.repository_function"]
111111
}
112112

113113
resource "google_compute_instance" "main" {

modules/event-project-log-entry/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This submodule configures a project-level Stackdriver Logging export to
44
act as an event which will trigger a Cloud Functions function configured
55
by the [root module][root-module] or the
6-
[function-sourced-from-repository submodule][f6n-sourced-from-r8y-s7e].
6+
[repository-function submodule][repository-function].
77

88
The export uses a provided filter to identify events of interest and
99
publishes them to a dedicated Pub/Sub topic. The target function
@@ -67,7 +67,7 @@ following APIs enabled:
6767
- Cloud Pub/Sub API: `pubsub.googleapis.com`
6868
- Stackdriver Logging API: `logging.googleapis.com`
6969

70-
[root-module]: ../..
7170
[automatic-labelling-example]: ../../examples/automatic_labelling
72-
[f6n-sourced-from-r8y-s7e]: ../function-sourced-from-repository
71+
[repository-function]: ../repository-function
72+
[root-module]: ../..
7373
[terraform-site]: https://www.terraform.io/

modules/function-sourced-from-repository/README.md renamed to modules/repository-function/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Function Sourced from Repository
1+
# Repository Function
22

33
This submodule configures a function sourced from a Cloud Source
44
Repositories repository to respond to a given event trigger.

0 commit comments

Comments
 (0)