Skip to content

Commit

Permalink
chore: bump gitea to v9.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Azhovan committed Sep 6, 2023
1 parent b197fe6 commit 0621206
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 19 deletions.
4 changes: 2 additions & 2 deletions licenses.d2iq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ ignore:
- docker.io/mesosphere/kommander2-kubetools
- docker.io/nginxinc/nginx-unprivileged:1.22.0-alpine
- docker.io/bitnami/external-dns:0.13.5-debian-11-r55
- docker.io/bitnami/memcached:1.6.15-debian-11-r8
- docker.io/bitnami/postgresql:11.16.0-debian-11-r9
- docker.io/bitnami/postgresql:15.2.0-debian-11-r21
- docker.io/bitnami/redis-cluster:7.0.12-debian-11-r2
- docker.io/library/busybox:1
- gcr.io/kubecost1/cost-model:prod-1.104.0
- gcr.io/kubecost1/frontend:prod-1.104.0
Expand Down Expand Up @@ -89,7 +89,7 @@ resources:
- license_path: LICENSE
ref: v${image_tag}
url: https://github.com/fluent/fluent-bit
- container_image: docker.io/gitea/gitea:1.19.2-rootless
- container_image: docker.io/gitea/gitea:1.20.3-rootless
sources:
- license_path: LICENSE
ref: v${image_tag%-rootless}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: gitea-8.2.0-d2iq-defaults
name: gitea-9.3.0-d2iq-defaults
namespace: ${releaseNamespace}
data:
values.yaml: |-
Expand All @@ -17,13 +17,13 @@ data:
traefik.ingress.kubernetes.io/router.tls: "true"
hosts:
- paths:
- path: /dkp/kommander/git
pathType: ImplementationSpecific
- path: /dkp/kommander/git
pathType: ImplementationSpecific
gitea:
additionalConfigFromEnvs:
- name: ENV_TO_INI__SERVER__SSL_MIN_VERSION
- name: GITEA__SERVER__SSL_MIN_VERSION
value: tlsv1.3
- name: ENV_TO_INI__SERVER__SSL_MAX_VERSION
- name: GITEA__SERVER__SSL_MAX_VERSION
value: tlsv1.3
admin:
existingSecret: ${adminCredentialsSecret}
Expand All @@ -37,6 +37,17 @@ data:
service:
REQUIRE_SIGNIN_VIEW: false
DISABLE_REGISTRATION: true
session:
PROVIDER: redis
PROVIDER_CONFIG: redis+cluster://:gitea@gitea-redis-cluster-headless.${releaseNamespace}.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
cache:
ENABLED: true
ADAPTER: redis
HOST: redis+cluster://:gitea@gitea-redis-cluster-headless.${releaseNamespace}.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
queue:
TYPE: redis
CONN_STR: redis+cluster://:gitea@gitea-redis-cluster-headless.${releaseNamespace}v.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
startupProbe:
enabled: true
tcpSocket:
Expand All @@ -46,28 +57,34 @@ data:
periodSeconds: 10
successThreshold: 1
failureThreshold: 10
statefulset:
deployment:
annotations:
secret.reloader.stakater.com/reload: ${tlsCertificateSecret}
service:
http:
port: 443
clusterIP:
extraVolumes:
- name: git-tls
secret:
secretName: ${tlsCertificateSecret}
- name: git-tls
secret:
secretName: ${tlsCertificateSecret}
extraVolumeMounts:
- name: git-tls
readOnly: true
mountPath: "/git-tls"
- name: git-tls
readOnly: true
mountPath: "/git-tls"
clusterDomain: cluster.local.
memcached:
redis-cluster:
priorityClassName: "dkp-critical-priority"
image:
tag: 1.6.15-debian-11-r8
postgresql-ha:
enabled: false
postgresql:
enabled: true
primary:
priorityClassName: "dkp-critical-priority"
image:
tag: 11.16.0-debian-11-r9
persistence:
enabled: true
create: false
mount: true
claimName: "data-gitea-0"
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- cm.yaml
20 changes: 20 additions & 0 deletions services/gitea/9.3.0/defaults/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# In the previous versions (v8.x and prior), PVC was automatically managed by the Statefulset, while in the
# new versions (v9.x and later), it is automatically handled by the Helm chart.
# In order to remain backward compatible with previous installations, we manually create a PVC object,
# filling in its name value with the data-gitea-0 that is the value in gitea v8.x and older versions.
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: data-gitea-0
namespace: ${releaseNamespace}
annotations:
helm.sh/resource-policy: keep
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 10Gi
---
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
kind: HelmRepository
name: dl.gitea.io-charts
namespace: kommander-flux
version: 8.2.0
version: 9.3.0
interval: 15s
install:
crds: CreateReplace
Expand All @@ -25,5 +25,5 @@ spec:
releaseName: gitea
valuesFrom:
- kind: ConfigMap
name: gitea-8.2.0-d2iq-defaults
name: gitea-9.3.0-d2iq-defaults
targetNamespace: ${releaseNamespace}
File renamed without changes.

0 comments on commit 0621206

Please sign in to comment.