Skip to content

Commit a9fcefb

Browse files
authored
Merge pull request #281 from mindwm/chore/promtail-6.x
chore: bump promtail version to 1.17.0 closes mindwm/dependencies#55
2 parents 8f01198 + ea6761e commit a9fcefb

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

config.k

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ mindwm_domain = "mindwm.local"
22

33

44
sources = {
5-
mindwm_ns = "org.mindwm"
5+
mindwm_ns = "org.mindwm"
66
func_ns = "knfunc"
77
knfunc_action = lambda user_name host_name {
88
hostname = "%" if host_name == "" else host_name
99
"${sources.mindwm_ns}.${sources.func_ns}.%.%.{{ user_name }}.{{ host_name }}.tmux.%.%.action"
10-
}
11-
}
10+
}
11+
}
1212

1313
kafka = {
1414
cluster_name = "neo4j-cdc"
@@ -28,8 +28,8 @@ argocd = {
2828
virtual_service = "argocd-vs"
2929
destination = lambda {
3030
"${argocd.release_name}-server.${argocd.namespace}.svc.cluster.local"
31-
}
32-
}
31+
}
32+
}
3333

3434
knativeBroker = {
3535
deadLetterImage = "gcr.io/knative-releases/knative.dev/eventing/cmd/event_display"
@@ -104,7 +104,7 @@ Mindwm = {
104104
context = {
105105
istio_gateway = lambda context_name : str - >str {
106106
"context-${context_name}-gateway"
107-
}
107+
}
108108
neo4j_vs_name = lambda context_name : str -> str {
109109
"${context_name}-neo4j-ui"
110110
}
@@ -146,7 +146,7 @@ knative = {
146146

147147
node_red = {
148148
helm_chart_version = "0.34.0"
149-
}
149+
}
150150

151151
cert_manager = {
152152
helm_chart_version = "1.17.2"
@@ -202,7 +202,7 @@ monitoring = {
202202
destination = lambda {
203203
"${monitoring.victoria_metrics.release_name}-grafana"
204204
}
205-
}
205+
}
206206
victoria_metrics = {
207207
release_name = "vm-aio"
208208
url = "vm.${mindwm_domain}"
@@ -214,6 +214,7 @@ monitoring = {
214214
}
215215
promtail = {
216216
release_name = "promtail"
217+
chart_version = "6.17.0"
217218
}
218219
zipkin_endpoint = lambda tempo_release_name : str, monitoring_ns : str {
219220
"http://${tempo_release_name}.${monitoring_ns}:9411/api/v2/spans"

main.k

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@ mindwm_app = ArgoCdOrder.make({
211211
namespace = config.monitoring.namespace
212212
name = config.monitoring.promtail.release_name
213213
chart = charts.promtail
214-
version = "6.16.6"
214+
version = config.monitoring.promtail.chart_version
215215
values = {
216216
config.clients = [{
217217
url = "http://${config.monitoring.loki.release_name}.${config.monitoring.namespace}:3100/loki/api/v1/push"
218218
tenant_id = 1
219219
}]
220220
}
221221
})
222-
222+
223223

224224

225225
argocdSchema.argoHelmRelease({
@@ -478,8 +478,8 @@ mindwm_app = ArgoCdOrder.make({
478478
]
479479
}]
480480
}
481-
}
482-
istio_virtual_service.VirtualService {
481+
}
482+
istio_virtual_service.VirtualService {
483483
metadata.name = config.monitoring.grafana.virtual_service
484484
metadata.namespace = config.monitoring.namespace
485485
metadata.annotations = {
@@ -490,7 +490,7 @@ mindwm_app = ArgoCdOrder.make({
490490
gateways = [ config.monitoring.gateway_name ]
491491
http = [{
492492
match = [{ uri.prefix = "/", port = 80}]
493-
route = [{
493+
route = [{
494494
destination.host = config.monitoring.grafana.destination()
495495
destination.port.number = 80 # TODO(@metacoma) hardcode
496496
}]
@@ -500,7 +500,7 @@ mindwm_app = ArgoCdOrder.make({
500500
}
501501

502502

503-
istio_virtual_service.VirtualService {
503+
istio_virtual_service.VirtualService {
504504
metadata.name = config.monitoring.loki.virtual_service
505505
metadata.namespace = config.monitoring.namespace
506506
metadata.annotations = {
@@ -511,7 +511,7 @@ mindwm_app = ArgoCdOrder.make({
511511
gateways = [ config.monitoring.gateway_name ]
512512
http = [{
513513
match = [{ uri.prefix = "/", port = 80}]
514-
route = [{
514+
route = [{
515515
destination.host = config.monitoring.loki.destination()
516516
destination.port.number = 80 # TODO(@metacoma) hardcode
517517
}]
@@ -551,7 +551,7 @@ mindwm_app = ArgoCdOrder.make({
551551
gateways = [ config.monitoring.gateway_name ]
552552
http = [{
553553
match = [{ uri.prefix = "/", port = 80}]
554-
route = [{
554+
route = [{
555555
destination.host = config.monitoring.victoria_metrics.destination()
556556
destination.port.number = 8429 # TODO(@metacoma) hardcode
557557
}]
@@ -580,7 +580,7 @@ mindwm_app = ArgoCdOrder.make({
580580
]
581581
}]
582582
}
583-
}
583+
}
584584

585585
istio_virtual_service.VirtualService {
586586
metadata.name = config.argocd.virtual_service
@@ -593,7 +593,7 @@ mindwm_app = ArgoCdOrder.make({
593593
gateways = [ config.argocd.gateway_name ]
594594
http = [{
595595
match = [{ uri.prefix = "/", port = 80}]
596-
route = [{
596+
route = [{
597597
destination.host = config.argocd.destination()
598598
destination.port.number = 38080 # TODO(@metacoma) hardcode
599599
}]
@@ -608,5 +608,3 @@ mindwm_app = ArgoCdOrder.make({
608608
manifests.yaml_stream([
609609
mindwm_app
610610
])
611-
612-

0 commit comments

Comments
 (0)