Skip to content

Commit c9b1f3b

Browse files
authored
Merge branch 'main' into ci-update-prometheus-blackbox-exporter-to-11.9.1
2 parents d7fe543 + 12c296d commit c9b1f3b

31 files changed

+206
-49
lines changed

charts/apl-harbor-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.16.0"
24+
appVersion: "1.16.0"

charts/apl-harbor-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ spec:
1717
{{- end }}
1818
labels:
1919
{{- include "apl-harbor-operator.labels" . | nindent 8 }}
20+
{{- with .Values.podLabels }}
21+
{{- toYaml . | nindent 8 }}
22+
{{- end }}
2023
spec:
2124
{{- with .Values.imagePullSecrets }}
2225
imagePullSecrets:

charts/apl-harbor-operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ serviceAccount:
2020
name: "apl-harbor-operator"
2121
annotations: {}
2222

23+
podLabels: {}
24+
2325
podAnnotations: {}
2426

2527
podSecurityContext:

charts/kubeflow-pipelines/templates/ml-pipeline-ui/deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ spec:
1414
metadata:
1515
annotations:
1616
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
17-
labels: {{- include "kfp.labels" . | nindent 8 }}
17+
labels:
18+
{{- include "kfp.labels" . | nindent 8 }}
1819
app: ml-pipeline-ui
1920
application-crd-id: kubeflow-pipelines
21+
{{- with .Values.mlPipelineUi.podLabels }}
22+
{{- toYaml . | nindent 8 }}
23+
{{- end }}
2024
spec:
2125
containers:
2226
- env:

charts/kubeflow-pipelines/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ mlPipelineScheduledworkflow:
4040
resources: {}
4141

4242
mlPipelineUi:
43+
podLabels: {}
4344
resources: {}
4445

4546
mlPipelineViewer:

charts/team-ns/templates/servicemonitors/service-monitors.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ spec:
1717
- enableHttp2: true
1818
path: /metrics
1919
port: http-web
20+
relabelings:
21+
- targetLabel: __address__
22+
replacement: {{ $v.teamId }}-po-alertmanager.{{ $ns }}.svc.cluster.local:9093
2023
namespaceSelector:
2124
matchNames:
2225
- team-{{ $v.teamId }}
@@ -40,6 +43,9 @@ spec:
4043
port: http-web
4144
scheme: http
4245
scrapeTimeout: 30s
46+
relabelings:
47+
- targetLabel: __address__
48+
replacement: {{ $v.teamId }}-po-grafana.{{ $ns }}.svc.cluster.local:80
4349
namespaceSelector:
4450
matchNames:
4551
- team-{{ $v.teamId }}
@@ -49,4 +55,4 @@ spec:
4955
app.kubernetes.io/instance: prometheus-{{ $v.teamId }}
5056
{{- end }}
5157
---
52-
{{- end }}
58+
{{- end }}

core.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ k8s:
5858
- name: kyverno
5959
app: kyverno
6060
disableIstioInjection: true
61+
- name: tekton-dashboard
62+
app: tekton-pipelines
6163
- name: tekton-pipelines
6264
disableIstioInjection: true
6365
disablePolicyChecks: true
@@ -210,7 +212,7 @@ adminApps:
210212
path: /#/namespaces/team-admin/pipelineruns
211213
ingress:
212214
- svc: tekton-dashboard
213-
namespace: tekton-pipelines
215+
namespace: tekton-dashboard
214216
port: 9097
215217
type: public
216218
auth: true

helmfile.d/helmfile-04.init.yaml.gotmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ releases:
9191
<<: *raw
9292
- name: tekton-dashboard
9393
installed: {{ $a | get "tekton.enabled" }}
94-
namespace: tekton-pipelines
94+
namespace: tekton-dashboard
9595
labels:
9696
pkg: tekton-pipelines
9797
chart: ../charts/tekton-dashboard
9898
values:
9999
- ../values/tekton-dashboard/tekton-dashboard.gotmpl
100100
- name: tekton-dashboard-artifacts
101101
installed: {{ $a | get "tekton.enabled" }}
102-
namespace: tekton-pipelines
102+
namespace: tekton-dashboard
103103
labels:
104104
pkg: tekton-pipelines
105105
<<: *raw

helmfile.d/helmfile-08.init.yaml.gotmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@ releases:
3232
- alertmanager: {{- $a | get "alertmanager._rawValues" dict | toYaml | nindent 10 }}
3333
grafana: {{- $a | get "grafana._rawValues" dict | toYaml | nindent 10 }}
3434
extraManifests:
35-
- {{ tpl (readFile "snippets/authpolicy.gotmpl") (dict "prefix" "monitoring" "gatewayName" $v.ingress.platformClass.className "hosts" $hosts) | nindent 12 }}
35+
- {{ tpl (readFile "snippets/authpolicy-oauth2-ext.gotmpl") (dict "prefix" "monitoring" "gatewayName" $v.ingress.platformClass.className "hosts" $hosts) | nindent 12 }}
36+
- {{ tpl (readFile "snippets/authpolicy-jwt.gotmpl") (dict "name" "prometheus" "excludeNamespaces" (list "grafana" "monitoring" "team-*")) | nindent 12 }}
37+
- {{ tpl (readFile "snippets/authpolicy-jwt.gotmpl") (dict "name" "monitoring" "excludeAccount" "monitoring/po-prometheus") | nindent 12 }}
38+
- {{ tpl (readFile "snippets/authpolicy-jwt.gotmpl") (dict "name" "monitoring" "namespace" "grafana" "excludeAccount" "monitoring/po-prometheus") | nindent 12 }}
3639
- {{ tpl (readFile "snippets/serviceentry.gotmpl") (dict "name" "monitoring" "hosts" $hosts) | nindent 12 }}

helmfile.d/helmfile-60.teams.yaml.gotmpl

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,12 @@ releases:
6767
kind: Service
6868
name: {{ $teamId }}-tekton-dashboard
6969
port: 9097
70-
filters:
71-
- type: RequestHeaderModifier
72-
requestHeaderModifier:
73-
remove:
74-
- authorization
7570
matches:
7671
- path:
7772
type: PathPrefix
7873
value: /
7974
{{- $httpRoute.authRules | toYaml | nindent 16 }}
80-
- {{ tpl (readFile "../helmfile.d/snippets/authpolicy.gotmpl") (dict "prefix" (print "tekton-" $teamId) "gatewayName" $gatewayName "host" $tektonHostname) | nindent 12 }}
75+
- {{ tpl (readFile "../helmfile.d/snippets/authpolicy-oauth2-ext.gotmpl") (dict "prefix" (print "tekton-" $teamId) "gatewayName" $gatewayName "host" $tektonHostname) | nindent 12 }}
8176
- {{ tpl (readFile "../helmfile.d/snippets/serviceentry.gotmpl") (dict "name" (print "tekton-" $teamId) "host" $tektonHostname) | nindent 12 }}
8277
- name: prometheus-{{ $teamId }}
8378
installed: {{ or ($teamSettings | get "managedMonitoring.grafana" false) ($teamSettings | get "managedMonitoring.alertmanager" false) }}
@@ -97,13 +92,11 @@ releases:
9792
namespaceOverride: null
9893
alertmanagerSpec:
9994
externalUrl: "https://{{ $alertmanagerHostname }}"
100-
podMetadata:
101-
annotations:
102-
sidecar.istio.io/inject: "true"
103-
labels:
104-
prometheus: system
10595
resources:
10696
{{- $teamApps.alertmanager.resources | toYaml | nindent 14 }}
97+
podMetadata:
98+
labels:
99+
otomi.io/auth-policy: monitoring-{{ $teamId }}
107100
# to do: load slackTpl and opsgenieTpl only if alerts.receicers = true
108101
config: {{- tpl (readFile "../helmfile.d/snippets/alertmanager-teams.gotmpl") (dict "instance" $teamSettings "root" $v "slackTpl" $slackTpl "opsgenieTpl" $opsgenieTpl) | nindent 12 }}
109102
route:
@@ -169,8 +162,11 @@ releases:
169162
basicAuthUser: {{ $teamId }}
170163
secureJsonData:
171164
basicAuthPassword: {{ $teamSettings.password | quote }}
165+
podLabels:
166+
otomi.io/auth-policy: monitoring-{{ $teamId }}
172167
extraManifests:
173-
- {{ tpl (readFile "../helmfile.d/snippets/authpolicy.gotmpl") (dict "prefix" (print "monitoring-" $teamId) "gatewayName" $gatewayName "hosts" (list $alertmanagerHostname $grafanaHostname)) | nindent 12 }}
168+
- {{ tpl (readFile "../helmfile.d/snippets/authpolicy-oauth2-ext.gotmpl") (dict "prefix" (print "monitoring-" $teamId) "gatewayName" $gatewayName "hosts" (list $alertmanagerHostname $grafanaHostname)) | nindent 12 }}
169+
- {{ tpl (readFile "../helmfile.d/snippets/authpolicy-jwt.gotmpl") (dict "name" (print "monitoring-" $teamId) "excludeNamespace" (print "team-" $teamId) "excludeAccount" "monitoring/po-prometheus") | nindent 12 }}
174170
- {{ tpl (readFile "../helmfile.d/snippets/serviceentry.gotmpl") (dict "name" (print "monitoring-" $teamId) "hosts" (list $alertmanagerHostname $grafanaHostname)) | nindent 12 }}
175171
{{- if has "msteams" ($teamSettings | get "alerts.receivers" list) }}
176172
- name: prometheus-msteams-{{ $teamId }}

0 commit comments

Comments
 (0)