Previous PR #6888 broke some additional jsonnet, use {} instead of null (#6918)

Signed-off-by: Callum Styan <callumstyan@gmail.com>

Signed-off-by: Callum Styan <callumstyan@gmail.com>
pull/6921/head
Callum Styan 3 years ago committed by GitHub
parent e9f5de48bc
commit 5919a29800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      production/ksonnet/loki/memberlist.libsonnet

@ -144,6 +144,6 @@
) + service.mixin.spec.withClusterIp('None'), // headless service
// Disable the consul deployment if not migrating and using memberlist
consul_deployment: if $._config.memberlist_ring_enabled && !$._config.multikv_migration_enabled && !$._config.multikv_migration_teardown then null else super.consul_deployment,
consul_service: if $._config.memberlist_ring_enabled && !$._config.multikv_migration_enabled && !$._config.multikv_migration_teardown then null else super.consul_service,
consul_deployment: if $._config.memberlist_ring_enabled && !$._config.multikv_migration_enabled && !$._config.multikv_migration_teardown then {} else super.consul_deployment,
consul_service: if $._config.memberlist_ring_enabled && !$._config.multikv_migration_enabled && !$._config.multikv_migration_teardown then {} else super.consul_service,
}

Loading…
Cancel
Save