Skip to content

Commit 0ac1976

Browse files
Adding scoop chart
1 parent c06f496 commit 0ac1976

File tree

10 files changed

+288
-0
lines changed

10 files changed

+288
-0
lines changed

charts/scoop/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

charts/scoop/Chart.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: v2
2+
name: scoop
3+
description: A Helm chart for Kubernetes
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 0.1.0
19+
20+
# This is the version number of the application being deployed. This version number should be
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
# It is recommended to use it with quotes.
24+
appVersion: "1.16.0"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Source: deployment-chart_4-18-0/templates/generic.yaml
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
annotations:
6+
rbac.authorization.kubernetes.io/autoupdate: "true"
7+
name: read-only-cluster-role-scoop
8+
rules:
9+
- apiGroups:
10+
- '*'
11+
resources:
12+
- '*'
13+
verbs:
14+
- get
15+
- list
16+
- watch
17+
- apiGroups:
18+
- extensions
19+
resources:
20+
- '*'
21+
verbs:
22+
- get
23+
- list
24+
- watch
25+
- apiGroups:
26+
- apps
27+
resources:
28+
- '*'
29+
verbs:
30+
- get
31+
- list
32+
- watch
33+
---
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Source: deployment-chart_4-18-0/templates/generic.yaml
3+
apiVersion: rbac.authorization.k8s.io/v1
4+
kind: ClusterRoleBinding
5+
metadata:
6+
name: read-only-user-crb-scoop
7+
roleRef:
8+
apiGroup: rbac.authorization.k8s.io
9+
kind: ClusterRole
10+
name: read-only-cluster-role-scoop
11+
subjects:
12+
- kind: ServiceAccount
13+
name: scoop-sa
14+
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}

charts/scoop/templates/config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{- if $.Values.ConfigMap.enabled }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
- name: "scoop-config"
6+
- namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}
7+
{{- if $.Values.ConfigMap.data }}
8+
data:
9+
{{ toYaml $.Values.ConfigMap.data | indent 2 }}
10+
{{- end }}
11+
{{- end}}
12+
13+
14+
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: "release-name-deployment-chart-4-18-0"
6+
labels:
7+
app: "deployment-chart-4-18-0"
8+
chart: "deployment-chart-4-18-0-4.18.0"
9+
release: "release-name"
10+
{{- if $.Values.labels }}
11+
{{ toYaml $.Values.labels | nindent 4 }}
12+
{{- end }}
13+
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}
14+
spec:
15+
selector:
16+
matchLabels:
17+
app: "deployment-chart-4-18-0"
18+
release: "release-name"
19+
replicas: 1
20+
minReadySeconds: 60
21+
template:
22+
metadata:
23+
labels:
24+
app: "deployment-chart-4-18-0"
25+
release: "release-name"
26+
{{- if $.Values.labels }}
27+
{{ toYaml $.Values.labels | indent 4 }}
28+
{{- end }}
29+
spec:
30+
serviceAccount: sa-scoop
31+
serviceAccountName: sa-scoop
32+
terminationGracePeriodSeconds: 30
33+
imagePullSecrets:
34+
- name: {{ $.Values.imagePullSecrets }}
35+
restartPolicy: Always
36+
containers:
37+
- name: "deployment-chart-4-18-0"
38+
image: {{ $.Values.image.name }}
39+
imagePullPolicy: IfNotPresent
40+
ports:
41+
- name: app
42+
containerPort: {{ $.Values.containerPort }}
43+
protocol: TCP
44+
{{- if $.Values.env }}
45+
env:
46+
{{ toYaml $.Values.env | indent 12 }}
47+
{{- end }}
48+
49+
{{- if or $.Values.ConfigMap.data $.Values.secrets.data }}
50+
envFrom:
51+
{{- if $.Values.ConfigMap.data }}
52+
- configMapRef:
53+
name: "scoop-config"
54+
data:
55+
{{ toYaml $.Values.ConfigMap.data | indent 16 }}
56+
{{- end }}
57+
{{- end}}
58+
59+
{{- if $.Values.resources }}
60+
resources:
61+
{{ toYaml $.Values.resources | indent 12 }}
62+
{{- end }}
63+
64+
{{- if $.Values.volumeMounts }}
65+
volumeMounts:
66+
{{ toYaml $.Values.volumeMounts | indent 12 }}
67+
{{- end }}
68+
revisionHistoryLimit: 3
69+
strategy: {}
70+

charts/scoop/templates/secret.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if $.Values.secrets.enabled }}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: "scoop-secret"
6+
namespace: {{ $.Values.scoopNamespace | default .Release.Namespace }}
7+
type: Opaque
8+
{{- if $.Values.secrets.data }}
9+
data:
10+
{{ toYaml $.Values.secrets.data | indent 2 }}
11+
{{- end }}
12+
{{- end }}
13+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# deployment-chart-4-18-0-4.18.0urce: deployment-chart-4-18-0/templates/service.yaml
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: "release-name-deployment-chart-4-18-0-service"
6+
labels:
7+
app: "deployment-chart-4-18-0"
8+
release: "release-name"
9+
{{- if $.Values.labels }}
10+
{{ toYaml .Values.labels | indent 2 }}
11+
{{- end }}
12+
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}
13+
14+
spec:
15+
{{- with $.Values.service.type }}
16+
type: {{ $.Values.service.type }}
17+
{{- end }}
18+
ports:
19+
{{- with $.Values.service.port }}
20+
- port: {{ $.Values.service.port }}
21+
{{- end }}
22+
targetPort: 80
23+
protocol: TCP
24+
name: app
25+
selector:
26+
app: "deployment-chart-4-18-0"
27+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Source: deployment-chart-4-18-0/templates/generic.yaml
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: scoop-sa
6+
#namespace: monitoring
7+
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}
8+
9+
10+
11+
12+

charts/scoop/values.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
scoopnamespace: monitoring
2+
3+
service:
4+
type: ClusterIP
5+
port: 80
6+
7+
replicacount: 1
8+
imagePullSecrets: devtron-image-pull
9+
image:
10+
name: "nginx"
11+
12+
containerPort: 80
13+
14+
env:
15+
- name: CONFIG-HASH
16+
value: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
17+
- name: SECRET-HASH
18+
value: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
19+
- name: DEVTRON-APP-NAME
20+
value: deployment-chart-4-18-0
21+
- name: POD-NAME
22+
valueFrom:
23+
fieldRef:
24+
fieldPath: metadata.name
25+
- name: DEVTRON-CONTAINER-REPO
26+
value: ""
27+
- name: DEVTRON-CONTAINER-TAG
28+
value: "1-95af053"
29+
- name: X-PASS-KEY
30+
value: "random-string"
31+
- name: PASS-KEY
32+
value: "random-string"
33+
- name: RETENTION
34+
value: "10080"
35+
36+
ConfigMap:
37+
name: "scoop-config"
38+
enabled: true
39+
data:
40+
key1: "key1value-1"
41+
42+
secrets:
43+
name: "scoop-secret"
44+
enabled: true
45+
data: []
46+
47+
volumeMounts: []
48+
49+
resources:
50+
limits:
51+
cpu: "0.5"
52+
memory: 5Gi
53+
requests:
54+
cpu: "0.3"
55+
memory: 2Gi
56+
57+
strategy: {}
58+

0 commit comments

Comments
 (0)