Skip to content

Commit f6216ac

Browse files
authored
docs: use build.source in the on-cluster build guide (knative#4059)
1 parent d6bae0f commit f6216ac

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎cmd/deploy_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ func TestDeploy_RemoteBuildURLPermutations(t *testing.T) {
16951695
// TODO: (enhancement) allow --source when running local deployment.
16961696
// Check that the local builder is invoked with a directive to use a
16971697
// git repo rather than the local filesystem if building is enabled and
1698-
// a url is provided. For now it throws an error statign that source
1698+
// a url is provided. For now it throws an error stating that source
16991699
// is only used when --remote
17001700
if url != "" && err == nil {
17011701
t.Fatal("error expected when deploying from local but provided --source")

‎docs/building-functions/on_cluster_build.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ git remote add origin git@github.com:my-repo/my-function.git
113113
4. Update the Function configuration in `func.yaml` to enable on cluster builds for the Git repository:
114114
```yaml
115115
build:
116-
git:
116+
source:
117117
url: https://github.com/my-repo/my-function.git # required, git repository with the function source code
118-
revision: main # optional, git revision to be used (branch, tag, commit)
119-
# contextDir: myfunction # optional, needed only if the function is not located in the repository root folder
118+
revision: main # optional, git revision to build (branch, tag, commit)
119+
# dir: myfunction # optional, needed only if the function is not located in the repository root folder
120120
buildpacks: []
121121
builder: ""
122122
buildEnvs: []

0 commit comments

Comments
 (0)