diff --git a/services/Gitea/_namespace-gitea.yaml b/services/Gitea-Legacy/_namespace-gitea.yaml similarity index 66% rename from services/Gitea/_namespace-gitea.yaml rename to services/Gitea-Legacy/_namespace-gitea.yaml index 09a988f..832a81f 100644 --- a/services/Gitea/_namespace-gitea.yaml +++ b/services/Gitea-Legacy/_namespace-gitea.yaml @@ -1,4 +1,4 @@ apiVersion: v1 kind: Namespace metadata: - name: gitea + name: gitea-legacy diff --git a/services/Gitea/configmap-runner-config.yaml b/services/Gitea-Legacy/configmap-runner-config.yaml similarity index 96% rename from services/Gitea/configmap-runner-config.yaml rename to services/Gitea-Legacy/configmap-runner-config.yaml index 5aeedce..33684ca 100644 --- a/services/Gitea/configmap-runner-config.yaml +++ b/services/Gitea-Legacy/configmap-runner-config.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: runner-config - namespace: gitea + namespace: gitea-legacy data: dind-config.yml: | runner: diff --git a/services/Gitea/deployment-act-runner-dind-rootless.yaml b/services/Gitea-Legacy/deployment-act-runner-dind-rootless.yaml similarity index 98% rename from services/Gitea/deployment-act-runner-dind-rootless.yaml rename to services/Gitea-Legacy/deployment-act-runner-dind-rootless.yaml index 50374c2..719e278 100644 --- a/services/Gitea/deployment-act-runner-dind-rootless.yaml +++ b/services/Gitea-Legacy/deployment-act-runner-dind-rootless.yaml @@ -4,7 +4,7 @@ metadata: labels: app: act-runner-dind-rootless name: act-runner-dind-rootless - namespace: gitea + namespace: gitea-legacy spec: replicas: 1 selector: diff --git a/services/Gitea/deployment-act-runner-dind.yaml b/services/Gitea-Legacy/deployment-act-runner-dind.yaml similarity index 99% rename from services/Gitea/deployment-act-runner-dind.yaml rename to services/Gitea-Legacy/deployment-act-runner-dind.yaml index 4111060..1575113 100644 --- a/services/Gitea/deployment-act-runner-dind.yaml +++ b/services/Gitea-Legacy/deployment-act-runner-dind.yaml @@ -4,7 +4,7 @@ metadata: labels: app: act-runner-dind name: act-runner-dind - namespace: gitea + namespace: gitea-legacy spec: replicas: 1 selector: diff --git a/services/Gitea/deployment-gitea.yaml b/services/Gitea-Legacy/deployment-gitea.yaml similarity index 93% rename from services/Gitea/deployment-gitea.yaml rename to services/Gitea-Legacy/deployment-gitea.yaml index d3b9c08..a4883d1 100644 --- a/services/Gitea/deployment-gitea.yaml +++ b/services/Gitea-Legacy/deployment-gitea.yaml @@ -2,7 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: gitea - namespace: gitea + namespace: gitea-legacy labels: app: gitea spec: @@ -23,7 +23,7 @@ spec: - name: DB_TYPE value: 'sqlite3' - name: ROOT_URL - value: 'https://code.spamasaurus.com' + value: 'https://legacy.spamasaurus.com' - name: USER_UID value: "1000" - name: USER_GID diff --git a/services/Gitea/ingressroute-gitea.yaml b/services/Gitea-Legacy/ingressroute-gitea.yaml similarity index 80% rename from services/Gitea/ingressroute-gitea.yaml rename to services/Gitea-Legacy/ingressroute-gitea.yaml index f799857..0b64f1e 100644 --- a/services/Gitea/ingressroute-gitea.yaml +++ b/services/Gitea-Legacy/ingressroute-gitea.yaml @@ -2,12 +2,12 @@ apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: gitea - namespace: gitea + namespace: gitea-legacy spec: entryPoints: - websecure routes: - - match: Host(`code.spamasaurus.com`) + - match: Host(`legacy.spamasaurus.com`) kind: Rule services: - name: gitea diff --git a/services/Gitea/persistentvolume-flexvolsmb-gitea-data.yaml b/services/Gitea-Legacy/persistentvolume-flexvolsmb-gitea-data.yaml similarity index 100% rename from services/Gitea/persistentvolume-flexvolsmb-gitea-data.yaml rename to services/Gitea-Legacy/persistentvolume-flexvolsmb-gitea-data.yaml diff --git a/services/Gitea/persistentvolume-flexvolsmb-gitea-ssh.yaml b/services/Gitea-Legacy/persistentvolume-flexvolsmb-gitea-ssh.yaml similarity index 100% rename from services/Gitea/persistentvolume-flexvolsmb-gitea-ssh.yaml rename to services/Gitea-Legacy/persistentvolume-flexvolsmb-gitea-ssh.yaml diff --git a/services/Gitea/persistentvolume-flexvolsmb-runner-output.yaml b/services/Gitea-Legacy/persistentvolume-flexvolsmb-runner-output.yaml similarity index 100% rename from services/Gitea/persistentvolume-flexvolsmb-runner-output.yaml rename to services/Gitea-Legacy/persistentvolume-flexvolsmb-runner-output.yaml diff --git a/services/Gitea/persistentvolume-flexvolsmb-runner-scratch.yaml b/services/Gitea-Legacy/persistentvolume-flexvolsmb-runner-scratch.yaml similarity index 100% rename from services/Gitea/persistentvolume-flexvolsmb-runner-scratch.yaml rename to services/Gitea-Legacy/persistentvolume-flexvolsmb-runner-scratch.yaml diff --git a/services/Gitea/persistentvolumeclaim-act-runner-dind-rootless.yaml b/services/Gitea-Legacy/persistentvolumeclaim-act-runner-dind-rootless.yaml similarity index 88% rename from services/Gitea/persistentvolumeclaim-act-runner-dind-rootless.yaml rename to services/Gitea-Legacy/persistentvolumeclaim-act-runner-dind-rootless.yaml index 1e0ec96..df0746c 100644 --- a/services/Gitea/persistentvolumeclaim-act-runner-dind-rootless.yaml +++ b/services/Gitea-Legacy/persistentvolumeclaim-act-runner-dind-rootless.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: act-runner-dind-rootless - namespace: gitea + namespace: gitea-legacy spec: accessModes: - ReadWriteOnce diff --git a/services/Gitea/persistentvolumeclaim-act-runner-dind.yaml b/services/Gitea-Legacy/persistentvolumeclaim-act-runner-dind.yaml similarity index 88% rename from services/Gitea/persistentvolumeclaim-act-runner-dind.yaml rename to services/Gitea-Legacy/persistentvolumeclaim-act-runner-dind.yaml index 9dcfdde..7103c33 100644 --- a/services/Gitea/persistentvolumeclaim-act-runner-dind.yaml +++ b/services/Gitea-Legacy/persistentvolumeclaim-act-runner-dind.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: act-runner-dind - namespace: gitea + namespace: gitea-legacy spec: accessModes: - ReadWriteOnce diff --git a/services/Gitea/persistentvolumeclaim-flexvolsmb-gitea-data.yaml b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-gitea-data.yaml similarity index 89% rename from services/Gitea/persistentvolumeclaim-flexvolsmb-gitea-data.yaml rename to services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-gitea-data.yaml index 732f506..bb15f8d 100644 --- a/services/Gitea/persistentvolumeclaim-flexvolsmb-gitea-data.yaml +++ b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-gitea-data.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: flexvolsmb-gitea-data - namespace: gitea + namespace: gitea-legacy spec: accessModes: - ReadWriteMany diff --git a/services/Gitea/persistentvolumeclaim-flexvolsmb-gitea-ssh.yaml b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-gitea-ssh.yaml similarity index 88% rename from services/Gitea/persistentvolumeclaim-flexvolsmb-gitea-ssh.yaml rename to services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-gitea-ssh.yaml index c4951bc..3475740 100644 --- a/services/Gitea/persistentvolumeclaim-flexvolsmb-gitea-ssh.yaml +++ b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-gitea-ssh.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: flexvolsmb-gitea-ssh - namespace: gitea + namespace: gitea-legacy spec: accessModes: - ReadWriteMany diff --git a/services/Gitea/persistentvolumeclaim-flexvolsmb-runner-output.yaml b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-runner-output.yaml similarity index 89% rename from services/Gitea/persistentvolumeclaim-flexvolsmb-runner-output.yaml rename to services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-runner-output.yaml index d3c134c..8fb4ae5 100644 --- a/services/Gitea/persistentvolumeclaim-flexvolsmb-runner-output.yaml +++ b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-runner-output.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: flexvolsmb-runner-output - namespace: gitea + namespace: gitea-legacy spec: accessModes: - ReadWriteMany diff --git a/services/Gitea/persistentvolumeclaim-flexvolsmb-runner-scratch.yaml b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-runner-scratch.yaml similarity index 89% rename from services/Gitea/persistentvolumeclaim-flexvolsmb-runner-scratch.yaml rename to services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-runner-scratch.yaml index 7c1bcc2..dd38f1f 100644 --- a/services/Gitea/persistentvolumeclaim-flexvolsmb-runner-scratch.yaml +++ b/services/Gitea-Legacy/persistentvolumeclaim-flexvolsmb-runner-scratch.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: flexvolsmb-runner-scratch - namespace: gitea + namespace: gitea-legacy spec: accessModes: - ReadWriteMany diff --git a/services/Gitea-Legacy/sealedsecret-flexvolsmb-credentials.yaml b/services/Gitea-Legacy/sealedsecret-flexvolsmb-credentials.yaml new file mode 100644 index 0000000..d7fa3a6 --- /dev/null +++ b/services/Gitea-Legacy/sealedsecret-flexvolsmb-credentials.yaml @@ -0,0 +1,16 @@ +apiVersion: bitnami.com/v1alpha1 +kind: SealedSecret +metadata: + creationTimestamp: null + name: flexvolsmb-credentials + namespace: gitea-legacy +spec: + encryptedData: + password: AgBz0yUaVj9PenDGBroZ0Yw1PNXhRoHSeWagrdb6uujcESYz/zVpZhoQISoGwuWTDv2ylGCWFBT02iXopcgBf+IYHUnE3nML/fp5snz9ubEzWoYUvNr4xKRpBC+F9P9ZLTHHzcQjRcZRYgxBxXE1K0z5tx41jqOmZSxMwC7FACS+d+V1XBV5imo19tWBPcn9M1D9rAXwikUcW7EvCI/+LH9DPyY6Yyz1L4QjYVahttGDyS3N+dG9U1QXKZML850t6rliICRcrbbPQv1nlO3v3aLB7Lr/vVvY2OkeoiwgdTQHeAOHnxF2VB03/4YIRp7QRPrR8zocOO/LefcOPdNrVMAcs4atN5pgJFAMNfar4o9KqQLkGLvN16DZMpiXBW5Z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name: flexvolsmb-credentials + namespace: gitea-legacy + type: mount/smb diff --git a/services/Gitea/secret-runner-secret.yaml b/services/Gitea-Legacy/secret-runner-secret.yaml similarity index 84% rename from services/Gitea/secret-runner-secret.yaml rename to services/Gitea-Legacy/secret-runner-secret.yaml index 3e8e301..dfb4793 100644 --- a/services/Gitea/secret-runner-secret.yaml +++ b/services/Gitea-Legacy/secret-runner-secret.yaml @@ -4,5 +4,5 @@ data: kind: Secret metadata: name: runner-secret - namespace: gitea + namespace: gitea-legacy type: Opaque diff --git a/services/Gitea/service-gitea.yaml b/services/Gitea-Legacy/service-gitea.yaml similarity index 84% rename from services/Gitea/service-gitea.yaml rename to services/Gitea-Legacy/service-gitea.yaml index 22dd228..30c31ba 100644 --- a/services/Gitea/service-gitea.yaml +++ b/services/Gitea-Legacy/service-gitea.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: name: gitea - namespace: gitea + namespace: gitea-legacy spec: ports: - protocol: TCP diff --git a/services/Gitea/sealedsecret-flexvolsmb-credentials.yaml b/services/Gitea/sealedsecret-flexvolsmb-credentials.yaml deleted file mode 100644 index f089dca..0000000 --- a/services/Gitea/sealedsecret-flexvolsmb-credentials.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: bitnami.com/v1alpha1 -kind: SealedSecret -metadata: - creationTimestamp: null - name: flexvolsmb-credentials - namespace: gitea -spec: - encryptedData: - password: AgBXexS/ciX+5APi07J2Y/UtRfRlI+EIls9TAabPnVaRWjeAUVzTlJ9duv491QalcLEZaDzu4jWCXhcYJqLVax+FFJJxaewPYfingS/Foaw03p6tE70CF3Dddeu0oNK2jwldDHL5/NHvH1o5QF7WgMu9gdrYPnUEwJ5vAInf7FOn+K35ewomAN5BBV23a3faohRGMYNms/JdNip456GSiVqKXbUL04eSvqKHhxgwqdLHD7mijV2a2GGmC9QQ886NKh+EDTsqg6skTQ7oEMejAQQOt6LyTr8OP2Phy6kkD++MTkSH5y6z9UJE4214WVE1Evhse94q9leS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j6HyOhx8s2T2HcaC6D+TQ= - template: - metadata: - creationTimestamp: null - name: flexvolsmb-credentials - namespace: gitea - type: mount/smb diff --git a/services/Gitea/values.yaml b/services/Gitea/values.yaml new file mode 100644 index 0000000..a406853 --- /dev/null +++ b/services/Gitea/values.yaml @@ -0,0 +1,43 @@ +actions: + enabled: true + provisioning: + enabled: true +gitea: + admin: + username: djpbessems + email: danny@bessems.eu + config: + APP_NAME: "code.spamasaurus.com" + database: + DB_TYPE: sqlite3 + session: + PROVIDER: memory + cache: + ADAPTER: memory + queue: + TYPE: level + server: + APP_DATA_PATH: /data/gitea + OFFLINE_MODE: true + PROTOCOL: http + ROOT_URL: https://code.spamasaurus.com/ +image: + pullPolicy: IfNotPresent + debug: +ingress: + enabled: true + hosts: + - host: code.spamasaurus.com + paths: + - path: / + pathType: Prefix +persistence: + storageClass: smb-csi +postgresql: + enabled: false +postgresql-ha: + enabled: false +redis-cluster: + enabled: false +strategy: + type: Recreate