Skip to content

Commit

Permalink
Adding scoop chartt
Browse files Browse the repository at this point in the history
  • Loading branch information
YashasviDevtron committed Jun 25, 2024
1 parent 0ac1976 commit 2d29864
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
4 changes: 2 additions & 2 deletions charts/scoop/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
- name: "scoop-config"
- namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}
name: {{ $.Values.ConfigMap.name }}
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}
{{- if $.Values.ConfigMap.data }}
data:
{{ toYaml $.Values.ConfigMap.data | indent 2 }}
Expand Down
22 changes: 13 additions & 9 deletions charts/scoop/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
{{ toYaml $.Values.labels | indent 4 }}
{{- end }}
spec:

Check warning

Code scanning / SonarCloud

Service account tokens should not be mounted in pods Medium

Set automountServiceAccountToken to false for this specification of kind Deployment. See more on SonarCloud
serviceAccount: sa-scoop
serviceAccountName: sa-scoop
#serviceAccount: scoop-sa
serviceAccountName: scoop-sa
terminationGracePeriodSeconds: 30
imagePullSecrets:
- name: {{ $.Values.imagePullSecrets }}
Expand All @@ -48,12 +48,16 @@ spec:

{{- if or $.Values.ConfigMap.data $.Values.secrets.data }}
envFrom:
{{- if $.Values.ConfigMap.data }}
- configMapRef:
name: "scoop-config"
data:
{{ toYaml $.Values.ConfigMap.data | indent 16 }}
{{- end }}
{{- if $.Values.ConfigMap.enabled }}
- configMapRef:
name: {{ $.Values.ConfigMap.name }}
{{- end }}

{{- if $.Values.secrets.data }}
- SecretRef:
name: {{ $.Values.secrets.name }}
{{- end }}

{{- end}}

{{- if $.Values.resources }}
Expand All @@ -66,5 +70,5 @@ spec:
{{ toYaml $.Values.volumeMounts | indent 12 }}
{{- end }}
revisionHistoryLimit: 3
strategy: {}
#strategy: {}

4 changes: 2 additions & 2 deletions charts/scoop/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
apiVersion: v1
kind: Secret
metadata:
name: "scoop-secret"
namespace: {{ $.Values.scoopNamespace | default .Release.Namespace }}
name: scoop-secret
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}
type: Opaque
{{- if $.Values.secrets.data }}
data:
Expand Down
2 changes: 1 addition & 1 deletion charts/scoop/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: scoop-sa
name: scoop-sa
#namespace: monitoring
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }}

Expand Down
7 changes: 4 additions & 3 deletions charts/scoop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ env:
value: "10080"

ConfigMap:
name: "scoop-config"
name: scoop-config
enabled: true
data:
key1: "key1value-1"
key2: "keyvalue2"

secrets:
name: "scoop-secret"
name: scoop-secret
enabled: true
data: []

Expand All @@ -54,5 +55,5 @@ resources:
cpu: "0.3"
memory: 2Gi

strategy: {}
#strategy: {}

0 comments on commit 2d29864

Please sign in to comment.