Skip to content

Commit

Permalink
feat(chart): changes for hiru bootstrap deployment (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle authored Dec 20, 2023
1 parent 3247f24 commit 397d746
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 2 additions & 0 deletions charts/canary/templates/controller/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ spec:
{{- range $key, $value := .Values.controller.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if or .Values.controller.annotations .Values.controller.podAnnotations }}
annotations:
{{- range $key, $value := .Values.controller.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.controller.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}

spec:

Expand Down
2 changes: 2 additions & 0 deletions charts/canary/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ spec:
{{- range $key, $value := .Values.controller.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if or .Values.controller.annotations .Values.controller.podAnnotations }}
annotations:
{{- range $key, $value := .Values.controller.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.controller.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}

spec:

Expand Down
11 changes: 0 additions & 11 deletions charts/canary/templates/monitors/example-monitor.yaml

This file was deleted.

10 changes: 10 additions & 0 deletions charts/canary/templates/monitors/monitors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- range $key, $value := .Values.monitors }}
---
apiVersion: "canary.ukserp.ac.uk/v1"
kind: CanaryHTTPMonitor
metadata:
name: {{ $key }}
namespace: {{ $.Release.Namespace }}
spec:
{{ $value | toYaml | indent 2 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/canary/templates/prometheus/podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ metadata:
{{- range $key, $value := .Values.podMonitor.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if .Values.podMonitor.annotations }}
annotations:
{{- range $key, $value := .Values.podMonitor.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}

spec:
jobLabel: {{ include "canary.fullname" . }}
Expand Down
4 changes: 1 addition & 3 deletions charts/canary/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,4 @@ controller:
uid: 1001
gid: 1001

monitor:
example:
enabled: false
monitors: {}

0 comments on commit 397d746

Please sign in to comment.