Skip to content

Commit

Permalink
releasing devtron-logs-dump helm chart staging version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh Tayal authored and Rishabh Tayal committed May 25, 2023
1 parent 7e3a59a commit 28bee9d
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/devtron-logs-dump/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: devtron-logs-dump
appVersion: 0.1.0
description: Chart to extract devtron stack logs
version: 0.1.0
apiVersion: v1
14 changes: 14 additions & 0 deletions charts/devtron-logs-dump/templates/job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Values.job.name }}
namespace: devtroncd
spec:
template:
spec:
containers:
- name: {{ .Values.job.name }}
image: {{ .Values.job.image }}
imagePullPolicy: {{ .Values.job.imagePullPolicy }}
restartPolicy: Never
serviceAccountName: {{ .Values.serviceAccount.name }}
39 changes: 39 additions & 0 deletions charts/devtron-logs-dump/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: {{ .Values.serviceAccount.name }}
name: {{ .Values.serviceAccount.name }}
namespace: devtroncd
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
app.kubernetes.io/name: {{ .Values.serviceAccount.name }}
name: {{ .Values.serviceAccount.name }}
namespace: devtroncd
rules:
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- get
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
app.kubernetes.io/name: {{ .Values.serviceAccount.name }}
name: {{ .Values.serviceAccount.name }}
namespace: devtroncd
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Values.serviceAccount.name }}
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.name }}
6 changes: 6 additions & 0 deletions charts/devtron-logs-dump/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
serviceAccount:
name: "devtron-logs-dump"
job:
name: "devtron-logs-dump"
image: docker.io/rupinsolanki07/test:logs-dump4
imagePullPolicy: IfNotPresent

0 comments on commit 28bee9d

Please sign in to comment.