github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/src/test/packages/22-git-data/jackal.yaml (about) 1 kind: JackalPackageConfig 2 metadata: 3 name: git-data-test 4 version: 1.0.0 5 description: A Git package with additional test cases for different scenarios 6 7 components: 8 - name: full-repo 9 required: true 10 repos: 11 # Do a full Git Repo Mirror 12 - https://github.com/Racer159/jackal-public-test.git 13 # The following performs a full Git Repo Mirror forcing a fallback to host `git` 14 - https://dev.azure.com/Racer159/jackal-public-test/_git/jackal-public-test 15 # Perform a full repo mirror of a simple repository with a single branch - (this causes an "already up to date" error in go-git) 16 - https://github.com/defenseunicorns/golang-tekton-hello-world.git 17 18 - name: specific-tag 19 required: true 20 repos: 21 # The following performs a tag Git Repo Mirror with `go-git` (internal to Jackal) 22 - https://github.com/Racer159/jackal-public-test.git@v0.0.1 23 # The following performs a refspec tag Git Repo Mirror with `go-git` 24 - https://github.com/Racer159/jackal-public-test.git@refs/tags/v0.0.1 25 # The following performs a tag Git Repo Mirror forcing a fallback to host `git` 26 - https://dev.azure.com/Racer159/jackal-public-test/_git/jackal-public-test@v0.0.1 27 actions: 28 onDeploy: 29 before: 30 # Check to verify the package secret has been saved for the already deployed component 31 - cmd: test $(./jackal tools kubectl get secret -n jackal jackal-package-git-data-test -o jsonpath='{.data.*}' | base64 --decode | jq -r .deployedComponents | jq '. | length') -eq 2 32 description: Check that the package secret has been updated with the deployed component 33 maxRetries: 3 34 35 - name: specific-branch 36 required: true 37 repos: 38 # The following performs a branch Git Repo Mirror with `go-git` (internal to Jackal) 39 - https://github.com/Racer159/jackal-public-test.git@refs/heads/dragons 40 # The following performs a branch Git Repo Mirror forcing a fallback to host `git` 41 - https://dev.azure.com/Racer159/jackal-public-test/_git/jackal-public-test@refs/heads/dragons 42 actions: 43 onDeploy: 44 before: 45 # Check to verify the package secret has been saved for the already deployed component 46 - cmd: test $(./jackal tools kubectl get secret -n jackal jackal-package-git-data-test -o jsonpath='{.data.*}' | base64 --decode | jq -r .deployedComponents | jq '. | length') -eq 3 47 description: Check that the package secret has been updated with the deployed component 48 maxRetries: 3 49 50 - name: specific-hash 51 required: true 52 repos: 53 # The following performs a SHA Git Repo Mirror with `go-git` (internal to Jackal) 54 - https://github.com/Racer159/jackal-public-test.git@01a23218923f24194133b5eb11268cf8d73ff1bb 55 # The following performs a SHA Git Repo Mirror forcing a fallback to host `git` 56 - https://dev.azure.com/Racer159/jackal-public-test/_git/jackal-public-test@01a23218923f24194133b5eb11268cf8d73ff1bb 57 actions: 58 onDeploy: 59 before: 60 # Check to verify the package secret has been saved for the already deployed component 61 - cmd: test $(./jackal tools kubectl get secret -n jackal jackal-package-git-data-test -o jsonpath='{.data.*}' | base64 --decode | jq -r .deployedComponents | jq '. | length') -eq 4 62 description: Check that the package secret has been updated with the deployed component 63 maxRetries: 3 64 onSuccess: 65 - cmd: test $(./jackal tools kubectl get secret -n jackal jackal-package-git-data-test -o jsonpath='{.data.*}' | base64 --decode | jq -r .deployedComponents | jq '. | length') -eq 4 66 description: Check that the package secret has been updated with the deployed component 67 maxRetries: 3