Compare commits

..

14 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
Youcef Guichi 9e1c6f7474 Merge pull request #86 from gimlet-io/minor-changes
Minor changes
2023-11-09 13:26:02 +01:00
Youcef Guichi 84a18e1a01 Minor changes 2023-11-09 13:22:44 +01:00
Raz Amir c7da3a4a4f Add podLabels to onechart (#83)
* Add podLabels to onechart

* add unittest
2023-11-07 13:01:15 +01:00
Laszlo Fogas d66a75ec36 osca.dev fields (#82) 2023-10-30 17:55:07 +01:00
Github Action 91667083fc The next release version will be 0.59.0 2023-10-20 08:57:29 +00:00
Github Action 6673e96e94 Publishing 0.58.0 to the Helm repository 2023-10-20 08:57:28 +00:00
34 changed files with 451 additions and 139 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.58.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.58.0
version: 0.62.0
dependencies:
- name: common
Binary file not shown.
+15 -5
View File
@@ -142,23 +142,33 @@
{
"schemaIDs": [
"#/properties/podDisruptionBudgetEnabled",
"#/properties/spreadAcrossNodes"
"#/properties/spreadAcrossNodes",
"#/properties/podAnnotations",
"#/properties/podLabels"
],
"uiSchema": {},
"metaData": {
"name": "High Availability",
"name": "Deployment fine-tuning",
"icon": "M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
}
},
{
"schemaIDs": [
"#/properties/podAnnotations",
"#/properties/name",
"#/properties/description",
"#/properties/ownerName",
"#/properties/ownerIm",
"#/properties/gitSha",
"#/properties/gitRepository"
"#/properties/gitRepository",
"#/properties/documentation",
"#/properties/logs",
"#/properties/metrics",
"#/properties/traces",
"#/properties/issues"
],
"uiSchema": {},
"metaData": {
"name": "Misc",
"name": "Service Catalog",
"icon": "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
}
}
@@ -39,6 +39,9 @@ spec:
gimlet.io/git-repository: {{ .Values.gitRepository }}
{{- end }}
labels:
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "helm-chart.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
+32 -1
View File
@@ -5,13 +5,44 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "helm-chart.labels" . | nindent 4 }}
{{- if or .Values.gitRepository .Values.gitSha }}
{{- if or (or (or (or (or .Values.gitRepository .Values.gitSha) .Values.serviceName) .Values.serviceDescription) .Values.ownerName) .Values.ownerIm }}
annotations:
{{- if .Values.gitRepository }}
gimlet.io/git-repository: {{ .Values.gitRepository }}
{{- $parts := split "/" .Values.gitRepository }}
v1alpha1.opensca.dev/vcs.owner: {{ $parts._0 }}
v1alpha1.opensca.dev/vcs.name: {{ $parts._1 }}
{{- end }}
{{- if .Values.gitSha }}
gimlet.io/git-sha: {{ .Values.gitSha }}
v1alpha1.opensca.dev/version.sha: {{ .Values.gitSha }}
{{- end }}
{{- if .Values.serviceName }}
v1alpha1.opensca.dev/name: {{ .Values.serviceName | quote }}
{{- end }}
{{- if .Values.serviceDescription }}
v1alpha1.opensca.dev/description: {{ .Values.serviceDescription | quote }}
{{- end }}
{{- if .Values.ownerName }}
v1alpha1.opensca.dev/owner.name: {{ .Values.ownerName | quote }}
{{- end }}
{{- if .Values.ownerIm }}
v1alpha1.opensca.dev/owner.im: {{ .Values.ownerIm | quote }}
{{- end }}
{{- if .Values.documentation }}
v1alpha1.opensca.dev/documentation: {{ .Values.documentation | quote }}
{{- end }}
{{- if .Values.logs }}
v1alpha1.opensca.dev/logs: {{ .Values.logs | quote }}
{{- end }}
{{- if .Values.metrics }}
v1alpha1.opensca.dev/metrics: {{ .Values.metrics | quote }}
{{- end }}
{{- if .Values.issues }}
v1alpha1.opensca.dev/issues: {{ .Values.issues | quote }}
{{- end }}
{{- if .Values.traces }}
v1alpha1.opensca.dev/traces: {{ .Values.traces | quote }}
{{- end }}
{{- end }}
spec:
@@ -0,0 +1,17 @@
suite: test deployment
templates:
- deployment.yaml
- configmap.yaml
tests:
- it: Should set custom labels
set:
podLabels:
label1: val1
label2: val2
asserts:
- equal:
path: spec.template.metadata.labels.label1
value: val1
- equal:
path: spec.template.metadata.labels.label2
value: val2
@@ -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:
@@ -4,11 +4,32 @@ templates:
tests:
- it: Should set Gimlet taxonomy
set:
gitRepository: github.com/laszlocph/demo-app
gitRepository: laszlocph/demo-app
gitSha: xyz
serviceName: cart-backend
serviceDescription: "Backend to manage shopping cart state, written in Go"
ownerName: "backend-team"
ownerIm: "#backend-team"
documentation: https://confluence.mycompany.com/cart-backend
logs: https://grafana.mycompany.com/logs
metrics: https://grafana.mycompany.com/cart-dashboard
issues: https://jira.mycompany.com/cart-backend
traces: https://jaeger.mycompany.com/cart-dashboard
asserts:
- equal:
path: metadata.annotations
value:
gimlet.io/git-repository: github.com/laszlocph/demo-app
gimlet.io/git-repository: laszlocph/demo-app
gimlet.io/git-sha: xyz
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
+76
View File
@@ -15,6 +15,7 @@
"nameOverride": "",
"fullnameOverride": "",
"podAnnotations": {},
"podLabels": {},
"podSecurityContext": {
"fsGroup": 999
},
@@ -189,6 +190,81 @@
"required": [],
"additionalProperties": true
},
"podLabels": {
"$id": "#/properties/podLabels",
"type": "object",
"title": "Pod labels",
"description": "Labels to place on pods",
"default": {},
"examples": [
{}
],
"required": [],
"additionalProperties": true
},
"name": {
"$id": "#/properties/name",
"type": "string",
"title": "Service Name",
"description": "The service name for unique identification",
"default": ""
},
"description": {
"$id": "#/properties/description",
"type": "string",
"title": "Service Description",
"description": "Human readable text description of the service",
"default": ""
},
"ownerName": {
"$id": "#/properties/ownerName",
"type": "string",
"title": "Owner",
"description": "The person or team who is responsible for this service",
"default": ""
},
"ownerIm": {
"$id": "#/properties/ownerIm",
"type": "string",
"title": "Owner IM",
"description": "Instant messaging channel, or direct message handle of the owner. prefix with # for channels, prefix with @ for direct messages.",
"default": ""
},
"documentation": {
"$id": "#/properties/documentation",
"type": "string",
"title": "Link to Documentation",
"description": "Link to documentation. The link's preferred usage is in a href html tag.",
"default": ""
},
"logs": {
"$id": "#/properties/logs",
"type": "string",
"title": "Link to Logs",
"description": "Link to log aggregation platform. The link's preferred usage is in a href html tag.",
"default": ""
},
"metrics": {
"$id": "#/properties/metrics",
"type": "string",
"title": "Link to Metrics",
"description": "Link to metrics dashboard. The link's preferred usage is in a href html tag.",
"default": ""
},
"issues": {
"$id": "#/properties/issues",
"type": "string",
"title": "Link to Issues",
"description": "Link to issue tracker. The link's preferred usage is in a href html tag.",
"default": ""
},
"traces": {
"$id": "#/properties/traces",
"type": "string",
"title": "Link to Traces",
"description": "Link to application traces. The link's preferred usage is in a href html tag.",
"default": ""
},
"gitSha": {
"$id": "#/properties/gitSha",
"type": "string",
+2 -1
View File
@@ -20,6 +20,8 @@ fullnameOverride: ""
podAnnotations: {}
podLabels: {}
podSecurityContext:
fsGroup: 999
@@ -39,7 +41,6 @@ nodeSelector: {}
tolerations: []
probe:
enabled: false
path: "/"
+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.58.0
version: 0.62.0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+270 -122
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.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -2,7 +2,7 @@ ingress:
host: chart-example.local
ingressClassName: nginx
gitRepository: github.com/laszlocph/demo-app
gitRepository: laszlocph/demo-app
gitSha: xyz