Skip to content

Commit

Permalink
fix: missing default values and bumped chart version
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Hankeln <[email protected]>
  • Loading branch information
lukashankeln committed Jan 7, 2025
1 parent 9598e8b commit fa18206
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/artifact-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: artifact-hub
description: Artifact Hub is a web-based application that enables finding, installing, and publishing Cloud Native packages.
type: application
version: 1.21.0-1
version: 1.21.0-2
appVersion: 1.20.0
kubeVersion: ">= 1.19.0-0"
home: https://artifacthub.io
Expand Down
5 changes: 5 additions & 0 deletions charts/artifact-hub/templates/scanner_cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
spec:
serviceAccountName: {{ .Values.scanner.cronjob.serviceAccountName }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
Expand All @@ -46,6 +47,10 @@ spec:
- name: scanner
image: {{ .Values.scanner.cronjob.image.repository }}:{{ .Values.imageTag | default (printf "v%s" .Chart.AppVersion) }}
imagePullPolicy: {{ .Values.pullPolicy }}
{{- with .Values.scanner.cronjob.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.scanner.cronjob.resources }}
resources:
{{- toYaml . | nindent 16 }}
Expand Down
11 changes: 11 additions & 0 deletions charts/artifact-hub/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,17 @@
"type": "object",
"default": {},
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.19.0/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
},
"containerSecurityContext": {
"title": "Scanner container security context",
"type": "object",
"default": {},
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.19.0/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
},
"serviceAccountName": {
"title": "Service account name",
"type": "string",
"default": "default"
}
},
"required": [
Expand Down
2 changes: 2 additions & 0 deletions charts/artifact-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ tracker:
# Tracker image repository (without the tag)
repository: artifacthub/tracker
securityContext: {}
containerSecurityContext: {}
serviceAccountName: default
resources: {}
# If you do want to specify resources, uncomment the following
# lines and adjust them as necessary.
Expand Down

0 comments on commit fa18206

Please sign in to comment.