Skip to content

Commit

Permalink
production/ksonnet: Add config_hash annotation to gateway deployment …
Browse files Browse the repository at this point in the history
…based on gateway configmap (#2852)
  • Loading branch information
chancez authored Nov 5, 2020
1 parent 22fbfe2 commit cb383d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions production/ksonnet/loki/gateway.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
deployment.new('gateway', 3, [
$.gateway_container,
]) +
deployment.mixin.spec.template.metadata.withAnnotationsMixin({
config_hash: std.md5(std.toString($.gateway_config)),
}),

This comment has been minimized.

Copy link
@PierreNowak

PierreNowak Nov 8, 2020

not sure but it should be "+" instead of "," ?
got this atm with tanka installation readme:
gateway.libsonnet:97:5-6 Unexpected: "$" while parsing field definition

$.util.configVolumeMount('gateway-config', '/etc/nginx') +
$.util.secretVolumeMount('gateway-secret', '/etc/nginx/secrets', defaultMode=420) +
$.util.antiAffinity,
Expand Down

0 comments on commit cb383d6

Please sign in to comment.