New to Kubepack? Please start here.
Scenario-2
This docs trying to explain the behavior of Pack
This section explain test-2.
If you look into this test’s manifest.yaml
file.
$ cat manifest.yaml
package: github.com/kubepack/pack/docs/_testdata/test-2
owners:
- name: Appscode
email: [email protected]
dependencies:
- package: github.com/kubepack/kube-a
branch: test-2
You’ll see it depends on branch test-2
of repository kube-a.
You can see the whole dependencies in below image.
Explanation
kube-a depends on branch
test-2
of kube-b repository.kube-a
contains the patch ofkube-b
’snginx-deployment.yaml
file.kube-b depends on branch
test-2
of kube-c repository.kube-b
contains the patch ofkube-c
’snginx-deployment.yaml
file.
When run $ kubectl plugin pack dep
in test-2
, following things happen.
- Get all the dependencies, reading
manifest.yaml
file. kube-b
’snginx-deployment.yaml
file is combination of patch (exists inkube-a
repository) and original file (exists inkube-b
repository).kube-c
’snginx-deployment.yaml
file is combination of patch (exists inkube-b
repository) and original file (exists inkube-c
repository).