New to Kubepack? Please start here.
Scenario-3
This docs trying to explain the behavior of Pack
This section explain test-3.
If you look into this test’s dependency-list.yaml
file.
$ cat dependency-list.yaml
items:
- package: github.com/kubepack/kube-a
branch: test-3
See image below, which describe whole dependency.
Explanation of image:
- This test directly depends on branch
test-3
of kube-a repository. kube-a
depends on branchtest-3
of kube-b repository. See this dependency-list.yaml file here.kube-b
depends on branchtest-3
ofkube-c
repository. See this dependency-list.yaml file here.kube-c
’s has no dependency. See this dependency-list.yaml file here.
Here, both kube-a
and kube-b
has patch of repository kube-c
’s nginx-deployment.yaml file. You can find these patches here:
Now, run $ pack dep -f .
command. This will vendor branch test-3
of all the dependencies kube-a
, kube-b
and kube-c
.
As, kube-a
and kube-b
both contain patch of kube-c
’s nginx-deployment.yaml file.
This file is the combination of both patch and original file.