github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/packages/gitea/jackal.yaml (about) 1 kind: JackalPackageConfig 2 metadata: 3 name: init-package-git-server 4 5 variables: 6 - name: GIT_SERVER_EXISTING_PVC 7 description: "Optional: Use an existing PVC for the git server instead of creating a new one. If this is set, the GIT_SERVER_PVC_SIZE variable will be ignored." 8 default: "data-jackal-gitea-0" 9 10 - name: GIT_SERVER_PVC_SIZE 11 description: The size of the persistent volume claim for the git server 12 default: 10Gi 13 14 - name: GIT_SERVER_PVC_ACCESS_MODE 15 description: The access mode of the persistent volume claim for the git server 16 default: ReadWriteOnce 17 18 - name: GIT_SERVER_CPU_REQ 19 description: The CPU request for git server 20 default: 200m 21 22 - name: GIT_SERVER_MEM_REQ 23 description: The memory request for git server 24 default: 512Mi 25 26 - name: GIT_SERVER_CPU_LIMIT 27 description: The CPU limit for git server 28 default: "3" 29 30 - name: GIT_SERVER_MEM_LIMIT 31 description: The memory limit for git server 32 default: 2Gi 33 34 - name: GIT_SERVER_REPLICA_COUNT 35 description: The number of git server replicas to deploy 36 default: "1" 37 38 - name: GIT_SERVER_DISABLE_REGISTRATION 39 description: Disables the ability to register new users 40 default: "true" 41 42 constants: 43 - name: GITEA_IMAGE 44 value: "###JACKAL_PKG_TMPL_GITEA_IMAGE###" 45 46 components: 47 - name: git-server 48 description: | 49 Deploys Gitea to provide git repositories for Kubernetes configurations. 50 Required for GitOps deployments if no other git server is available. 51 images: 52 - "###JACKAL_PKG_TMPL_GITEA_IMAGE###" 53 manifests: 54 - name: git-connect 55 namespace: jackal 56 files: 57 - connect.yaml 58 charts: 59 - name: gitea 60 releaseName: jackal-gitea 61 url: https://dl.gitea.io/charts 62 version: 10.1.1 63 namespace: jackal 64 valuesFiles: 65 - gitea-values.yaml 66 actions: 67 onDeploy: 68 before: 69 - cmd: ./jackal internal update-gitea-pvc --no-progress 70 setVariables: 71 - name: GIT_SERVER_CREATE_PVC 72 mute: true 73 after: 74 - wait: 75 cluster: 76 kind: pod 77 namespace: jackal 78 name: app=gitea 79 condition: Ready 80 - cmd: ./jackal internal create-read-only-gitea-user --no-progress 81 maxRetries: 3 82 maxTotalSeconds: 60 83 description: Create the read-only Gitea user 84 - cmd: ./jackal internal create-artifact-registry-token --no-progress 85 maxRetries: 3 86 maxTotalSeconds: 60 87 description: Create an artifact registry token 88 89 onFailure: 90 - cmd: ./jackal internal update-gitea-pvc --rollback --no-progress