New to Kubepack? Please start here.
Scenario-5
This docs trying to explain the behavior of Pack
This section explain test-5.
If you look into this test’s manifest.yaml
file.
$ cat manifest.yaml
package: github.com/kubepack/pack/docs/_testdata/test-5
owners:
- name: Appscode
email: [email protected]
dependencies:
- package: github.com/kubepack/kube-a
branch: test-5
- package: github.com/kubepack/kube-b
branch: test-5
Here, test-5 depends on two repositories.
Both of the above repository contains the patch of repository kube-c’s
branch test-5
in same file (nginx-deployment.yaml).
See the image.
You can see the both patch below
# kube-a contains this patch of kube-c
spec:
replicas: 2
# kube-b contains this patch of kube-c
apiVersion: apps/v1beta2
When run kubectl plugin pack dep
command, following things happen.
- Get all the dependencies, reading
manifest.yaml
file. - As,
kube-a
andkube-b
both contains patch of repositorykube-c
,kube-c
inmanifests/vendor
folder is combination of both patches and original file.