diff --git a/charts/gitea-exporter/Chart.yaml b/charts/gitea-exporter/Chart.yaml deleted file mode 100644 index 426c2d3..0000000 --- a/charts/gitea-exporter/Chart.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v2 -name: gitea-exporter -description: A Helm chart for deploying the Gitea Prometheus exporter -version: 0.1.0 -appVersion: latest \ No newline at end of file diff --git a/charts/gitea-exporter/templates/deployment.yaml b/charts/gitea-exporter/templates/deployment.yaml deleted file mode 100644 index 13e36d5..0000000 --- a/charts/gitea-exporter/templates/deployment.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: gitea-exporter - labels: - app: gitea-exporter -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - app: gitea-exporter - template: - metadata: - labels: - app: gitea-exporter - spec: - containers: - - name: exporter - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - ports: - - containerPort: {{ .Values.service.port }} - name: metrics - env: - - name: GITEA_BASE_URL - value: {{ .Values.gitea.baseUrl | quote }} - - name: GITEA_TOKEN - valueFrom: - secretKeyRef: - name: gitea-exporter-secret - key: token \ No newline at end of file diff --git a/charts/gitea-exporter/templates/podmonitor.yaml b/charts/gitea-exporter/templates/podmonitor.yaml deleted file mode 100644 index 4e8ce84..0000000 --- a/charts/gitea-exporter/templates/podmonitor.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if .Values.monitoring.enabled }} -apiVersion: monitoring.coreos.com/v1 -kind: PodMonitor -metadata: - name: gitea-exporter - labels: - {{- toYaml .Values.monitoring.labels | nindent 4 }} -spec: - selector: - matchLabels: - app: gitea-exporter - podMetricsEndpoints: - - port: metrics - interval: 30s -{{- end }} \ No newline at end of file diff --git a/charts/gitea-exporter/templates/secret.yaml b/charts/gitea-exporter/templates/secret.yaml deleted file mode 100644 index d8a92b0..0000000 --- a/charts/gitea-exporter/templates/secret.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: gitea-exporter-secret -type: Opaque -stringData: - token: {{ .Values.gitea.token | quote }} \ No newline at end of file diff --git a/charts/gitea-exporter/templates/service.yaml b/charts/gitea-exporter/templates/service.yaml deleted file mode 100644 index 3ddcafd..0000000 --- a/charts/gitea-exporter/templates/service.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: gitea-exporter - labels: - app: gitea-exporter -spec: - ports: - - name: metrics - port: {{ .Values.service.port }} - targetPort: metrics - selector: - app: gitea-exporter \ No newline at end of file diff --git a/charts/gitea-exporter/values.yaml b/charts/gitea-exporter/values.yaml deleted file mode 100644 index 56be1d8..0000000 --- a/charts/gitea-exporter/values.yaml +++ /dev/null @@ -1,20 +0,0 @@ -replicaCount: 1 - -image: - repository: quay.io/mook/gitea-exporter - tag: latest - pullPolicy: IfNotPresent - -gitea: - baseUrl: "https://git.dvirlabs.com" - token: "REPLACE_ME" - -service: - port: 9421 - -monitoring: - enabled: true - labels: - release: prometheus - -resources: {} \ No newline at end of file