File tree Expand file tree Collapse file tree 14 files changed +67
-2
lines changed
cronjob/service-account-cronjob
expected/cronjob/templates
spring-service/complex-service
expected/spring-service/templates Expand file tree Collapse file tree 14 files changed +67
-2
lines changed Original file line number Diff line number Diff line change 44 branches : [master]
55 pull_request :
66 branches : [master]
7+ permissions :
8+ checks : write
9+ contents : read
10+ pull-requests : write
711jobs :
812 test :
913 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11# spring-service
22
3+ ## 5.5.0
4+
5+ - Add support for logging annotations
6+
37## 5.4.0
48
59- Allow to configure ` overwriteRequestRetries `
@@ -239,6 +243,10 @@ deployment** with a short 503 service disruption due to a [bug in the ingress co
239243
240244# cronjob
241245
246+ ## 3.2.0
247+
248+ - Add support for logging annotations
249+
242250## 3.1.1
243251
244252- Remove now unnecessary, confusing Helm chart labels on prom resources
Original file line number Diff line number Diff line change 11apiVersion : v1
22name : cronjob
33description : A generalized cronjob that can access secrets.
4- version : 3.1.1
4+ version : 3.2.0
Original file line number Diff line number Diff line change 1+ {{- define " k8s.annotations" }}
2+ {{- $annotations := dict }}
3+ {{- if ne .Values.logging.collect true }}
4+ {{- $_ := set $annotations " com.meisterplan.logs/collect" (printf " %v " .Values.logging.collect ) }}
5+ {{- end }}
6+ {{- if ne .Values.logging.retention " default" }}
7+ {{- $_ := set $annotations " com.meisterplan.logs/retention" .Values.logging.retention }}
8+ {{- end }}
9+ {{- if $annotations }}
10+ {{- toYaml $annotations }}
11+ {{- end }}
12+ {{- end }}
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ apiVersion: batch/v1
33metadata :
44 name : " {{ required " cronJobName must be set!" .Values.cronJobName }}"
55 namespace : " {{ required " Namespace must be set!" .Values.namespace }}"
6+ {{- $annotations := include "k8s.annotations" . -}}
7+ {{- if $annotations }}
8+ annotations :
9+ {{- $annotations | nindent 4 }}
10+ {{- end }}
611spec :
712 concurrencyPolicy : " Replace"
813 schedule : {{ required "Schedule must be set!" .Values.schedule | quote }}
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ resources:
3636 cpu :
3737 guarantee : 100m
3838
39+ logging :
40+ collect : true # can be toggled to turn off log collection
41+ retention : default # can be set to 'verbose' to shorten retention
42+
3943env :
4044 fromSecret : {}
4145 # SOME_SECRET:
Original file line number Diff line number Diff line change 11apiVersion : v1
22name : spring-service
33description : A generalized deployment for Meisterplan Spring Boot services in Kubernetes.
4- version : 5.4 .0
4+ version : 5.5 .0
Original file line number Diff line number Diff line change 1313{{ $ .Values.ingress.public.subDomain }}. {{ required " ingress.clusterDomain must be set!" $ .Values.ingress.clusterDomain }}
1414{{- end -}}
1515{{- end }}
16+
17+ {{- define " k8s.annotations" }}
18+ {{- $annotations := dict }}
19+ {{- if ne .Values.logging.collect true }}
20+ {{- $_ := set $annotations " com.meisterplan.logs/collect" (printf " %v " .Values.logging.collect ) }}
21+ {{- end }}
22+ {{- if ne .Values.logging.retention " default" }}
23+ {{- $_ := set $annotations " com.meisterplan.logs/retention" .Values.logging.retention }}
24+ {{- end }}
25+ {{- if $annotations }}
26+ {{- toYaml $annotations }}
27+ {{- end }}
28+ {{- end }}
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ apiVersion: apps/v1
33metadata :
44 name : " {{ .Values.serviceName }}-{{ required " Image Tag must be set!" .Values.image.tag }}"
55 namespace : " {{ required " Namespace must be set!" .Values.namespace }}"
6+ {{- $annotations := include "k8s.annotations" . -}}
7+ {{- if $annotations }}
8+ annotations :
9+ {{- $annotations | nindent 4 }}
10+ {{- end }}
611spec :
712 replicas : {{ .Values.replicaCount }}
813 {{- if .Values.timeouts.progressDeadlineSeconds }}
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ resources:
3737 cpu :
3838 guarantee : 100m
3939
40+ logging :
41+ collect : true # can be toggled to turn off log collection
42+ retention : default # can be set to 'verbose' to shorten retention
43+
4044ingress :
4145 clusterDomain : " " # domain of the cluster, e.g. meisterplan.io
4246 public :
You can’t perform that action at this time.
0 commit comments