Skip to content

Commit 3af8f6f

Browse files
Refine documentation for subpath
To remove ambiguity that the root would remain the same but only the subpath is preserved (i.e users could incorrectly think absolute paths within the repo would be preserved) See related code: https://github.com/carvel-dev/kapp-controller/blob/ad24bdc3e41219b176f88280a469e9fd21979339/pkg/fetch/vendir.go#L157-L157 Signed-off-by: Guillaume Berche <[email protected]>
1 parent c757719 commit 3af8f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/kappctrl/v1alpha1/types_fetch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ type AppFetchGit struct {
100100
// (if ssh-knownhosts is not specified, git will not perform strict host checking)
101101
// +optional
102102
SecretRef *AppFetchLocalRef `json:"secretRef,omitempty" protobuf:"bytes,3,opt,name=secretRef"`
103-
// Grab only portion of repository (optional)
103+
// Grab only portion of repository, subpath becomes new root (optional)
104104
// +optional
105105
SubPath string `json:"subPath,omitempty" protobuf:"bytes,4,opt,name=subPath"`
106106
// Skip lfs download (optional)

0 commit comments

Comments
 (0)