Compare commits

...

8 Commits

Author SHA1 Message Date
Github Action 906958cbcc The next release version will be 0.62.0 2023-11-16 14:40:56 +00:00
Github Action e4f7bc4b45 Publishing 0.61.0 to the Helm repository 2023-11-16 14:40:56 +00:00
davidfrickert 0e0f29ee43 CronJob - Allow file ConfigMap & disabling command override (#90)
* allow file configmap on cron-job chart

* Allow disabling the command override in cronjob container

* Use name of volume instead of fileName for configmap naming

* Add YAML separator to configmaps to allow multiple configmap volumes

- before this change if you tried to use e.g. multiple file configmaps they would all be appended in one YAML file due to no usage of separators, which would lead to only one of the file confimaps actually be created.

* Fix broken test due to file configmap naming change
2023-11-16 15:39:13 +01:00
Github Action 5f0d40f05f The next release version will be 0.61.0 2023-11-11 20:37:45 +00:00
Github Action 410f2b6047 Publishing 0.60.0 to the Helm repository 2023-11-11 20:37:45 +00:00
Laszlo Fogas 9022b34793 Supporting v1alpha1 opensca.dev release 2023-11-11 21:37:04 +01:00
Github Action 366eca776f The next release version will be 0.60.0 2023-11-09 12:38:32 +00:00
Github Action 365544204c Publishing 0.59.0 to the Helm repository 2023-11-09 12:38:32 +00:00
25 changed files with 272 additions and 156 deletions
+1
View File
@@ -1,5 +1,6 @@
{{- define "common.configmap.tpl" -}}
{{- if .Values.vars }}
---
apiVersion: v1
kind: ConfigMap
metadata:
@@ -1,11 +1,11 @@
{{- define "common.customFileConfigmap.tpl" -}}
{{- range .Values.volumes }}
{{- if .fileName }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.robustName" .fileName }}
name: {{ template "common.robustName" (printf "%s-%s" $.Release.Name .name) }}
namespace: {{ $.Release.Namespace }}
data:
{{ .fileName }}: |
+1 -1
View File
@@ -10,7 +10,7 @@ volumes:
name: {{ .existingConfigMap }}
{{- else if .fileName }}
configMap:
name: {{ template "common.robustName" .fileName }}
name: {{ template "common.robustName" (printf "%s-%s" $.Release.Name .name) }}
{{- else if .hostPath }}
hostPath:
path: {{ .hostPath.path }}
+1 -1
View File
@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.59.0
version: 0.62.0
dependencies:
- name: common
Binary file not shown.
+2
View File
@@ -25,10 +25,12 @@ spec:
{{- if .Values.vars }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- end }}
{{- if .Values.overrideCommand }}
command:
- {{ .Values.shell }}
- -c
- {{ .Values.command | quote }}
{{- end }}
{{- include "common.envFromRef.tpl" . | nindent 14 }}
{{- include "common.volumeMountsRef.tpl" . | nindent 14 }}
resources:
@@ -0,0 +1 @@
{{- include "common.customFileConfigmap.tpl" . -}}
+1
View File
@@ -5,6 +5,7 @@ image:
schedule: "*/1 * * * *"
command: |
echo "I'm alive"
overrideCommand: true
shell: "/bin/sh"
nameOverride: ""
+1 -1
View File
@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.59.0
version: 0.62.0
dependencies:
- name: common
Binary file not shown.
+12 -12
View File
@@ -10,39 +10,39 @@ metadata:
{{- if .Values.gitRepository }}
gimlet.io/git-repository: {{ .Values.gitRepository }}
{{- $parts := split "/" .Values.gitRepository }}
opensca.dev/v0.1.0/vcs/owner: {{ $parts._0 }}
opensca.dev/v0.1.0/vcs/name: {{ $parts._1 }}
v1alpha1.opensca.dev/vcs.owner: {{ $parts._0 }}
v1alpha1.opensca.dev/vcs.name: {{ $parts._1 }}
{{- end }}
{{- if .Values.gitSha }}
gimlet.io/git-sha: {{ .Values.gitSha }}
opensca.dev/v0.1.0/version/sha: {{ .Values.gitSha }}
v1alpha1.opensca.dev/version.sha: {{ .Values.gitSha }}
{{- end }}
{{- if .Values.serviceName }}
opensca.dev/v0.1.0/name: {{ .Values.serviceName | quote }}
v1alpha1.opensca.dev/name: {{ .Values.serviceName | quote }}
{{- end }}
{{- if .Values.serviceDescription }}
opensca.dev/v0.1.0/description: {{ .Values.serviceDescription | quote }}
v1alpha1.opensca.dev/description: {{ .Values.serviceDescription | quote }}
{{- end }}
{{- if .Values.ownerName }}
opensca.dev/v0.1.0/owner/name: {{ .Values.ownerName | quote }}
v1alpha1.opensca.dev/owner.name: {{ .Values.ownerName | quote }}
{{- end }}
{{- if .Values.ownerIm }}
opensca.dev/v0.1.0/owner/im: {{ .Values.ownerIm | quote }}
v1alpha1.opensca.dev/owner.im: {{ .Values.ownerIm | quote }}
{{- end }}
{{- if .Values.documentation }}
opensca.dev/v0.1.0/documentation: {{ .Values.documentation | quote }}
v1alpha1.opensca.dev/documentation: {{ .Values.documentation | quote }}
{{- end }}
{{- if .Values.logs }}
opensca.dev/v0.1.0/logs: {{ .Values.logs | quote }}
v1alpha1.opensca.dev/logs: {{ .Values.logs | quote }}
{{- end }}
{{- if .Values.metrics }}
opensca.dev/v0.1.0/metrics: {{ .Values.metrics | quote }}
v1alpha1.opensca.dev/metrics: {{ .Values.metrics | quote }}
{{- end }}
{{- if .Values.issues }}
opensca.dev/v0.1.0/issues: {{ .Values.issues | quote }}
v1alpha1.opensca.dev/issues: {{ .Values.issues | quote }}
{{- end }}
{{- if .Values.traces }}
opensca.dev/v0.1.0/traces: {{ .Values.traces | quote }}
v1alpha1.opensca.dev/traces: {{ .Values.traces | quote }}
{{- end }}
{{- end }}
spec:
@@ -169,7 +169,7 @@ tests:
value:
- name: volume-name
configMap:
name: myfile-conf
name: release-name-volume-name
- equal:
path: spec.template.spec.containers[0].volumeMounts
value:
@@ -21,15 +21,15 @@ tests:
value:
gimlet.io/git-repository: laszlocph/demo-app
gimlet.io/git-sha: xyz
opensca.dev/v0.1.0/vcs/owner: laszlocph
opensca.dev/v0.1.0/vcs/name: demo-app
opensca.dev/v0.1.0/version/sha: xyz
opensca.dev/v0.1.0/name: cart-backend
opensca.dev/v0.1.0/description: "Backend to manage shopping cart state, written in Go"
opensca.dev/v0.1.0/owner/name: "backend-team"
opensca.dev/v0.1.0/owner/im: "#backend-team"
opensca.dev/v0.1.0/documentation: https://confluence.mycompany.com/cart-backend
opensca.dev/v0.1.0/logs: https://grafana.mycompany.com/logs
opensca.dev/v0.1.0/metrics: https://grafana.mycompany.com/cart-dashboard
opensca.dev/v0.1.0/issues: https://jira.mycompany.com/cart-backend
opensca.dev/v0.1.0/traces: https://jaeger.mycompany.com/cart-dashboard
v1alpha1.opensca.dev/vcs.owner: laszlocph
v1alpha1.opensca.dev/vcs.name: demo-app
v1alpha1.opensca.dev/version.sha: xyz
v1alpha1.opensca.dev/name: cart-backend
v1alpha1.opensca.dev/description: "Backend to manage shopping cart state, written in Go"
v1alpha1.opensca.dev/owner.name: "backend-team"
v1alpha1.opensca.dev/owner.im: "#backend-team"
v1alpha1.opensca.dev/documentation: https://confluence.mycompany.com/cart-backend
v1alpha1.opensca.dev/logs: https://grafana.mycompany.com/logs
v1alpha1.opensca.dev/metrics: https://grafana.mycompany.com/cart-dashboard
v1alpha1.opensca.dev/issues: https://jira.mycompany.com/cart-backend
v1alpha1.opensca.dev/traces: https://jaeger.mycompany.com/cart-dashboard
+1 -1
View File
@@ -14,5 +14,5 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.59.0
version: 0.62.0
Binary file not shown.
Binary file not shown.
Binary file not shown.
+236 -125
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.