Skip to content

Commit

Permalink
feat: add option to set annotations on CDN logs service
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Feb 15, 2024
1 parent 35e52e1 commit 6549adf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion charts/lagoon-logging/ci/linter-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ cdnLogsCollector:
buffer:
storageClassName: standard
size: 1Gi
serviceType: ClusterIP
service:
type: ClusterIP
annotations:
sh.lagoon.chart.testKey: lagoonTestValue
tls:
caCert: |-
-----BEGIN CERTIFICATE-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ metadata:
name: {{ include "lagoon-logging.cdnLogsCollector.fullname" . }}
labels:
{{- include "lagoon-logging.cdnLogsCollector.labels" . | nindent 4 }}
{{- with .Values.cdnLogsCollector.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.cdnLogsCollector.serviceType }}
type: {{ .Values.cdnLogsCollector.service.type }}
selector:
{{- include "lagoon-logging.cdnLogsCollector.selectorLabels" . | nindent 4 }}
ports:
Expand Down
4 changes: 3 additions & 1 deletion charts/lagoon-logging/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ cdnLogsCollector:
size: 8Gi
storageClassName: ""

serviceType: LoadBalancer
service:
type: LoadBalancer
annotations: {}

# TLS configuration is required
# These should be server certificates, and the CDN should be configured to
Expand Down

0 comments on commit 6549adf

Please sign in to comment.