Skip to content

Commit

Permalink
test(config): add cases for skip label config
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Oct 30, 2024
1 parent f39d3f8 commit cff369c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/config/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ var _ = Describe("Config loader", func() {
Expect(cfg.Multizone.Global.KDS.ZoneHealthCheck.PollInterval.Duration).To(Equal(11 * time.Second))
Expect(cfg.Multizone.Global.KDS.ZoneHealthCheck.Timeout.Duration).To(Equal(110 * time.Second))
Expect(cfg.Multizone.Global.KDS.Tracing.Enabled).To(BeFalse())
Expect(cfg.Multizone.Global.KDS.Labels.SkipPrefixes).To(Equal([]string{"argocd.argoproj.io"}))
Expect(cfg.Multizone.Zone.GlobalAddress).To(Equal("grpc://1.1.1.1:5685"))
Expect(cfg.Multizone.Zone.Name).To(Equal("zone-1"))
Expect(cfg.Multizone.Zone.KDS.RootCAFile).To(Equal("/rootCa"))
Expand All @@ -276,6 +277,7 @@ var _ = Describe("Config loader", func() {
Expect(cfg.Multizone.Zone.KDS.NackBackoff.Duration).To(Equal(21 * time.Second))
Expect(cfg.Multizone.Zone.KDS.ResponseBackoff.Duration).To(Equal(2 * time.Second))
Expect(cfg.Multizone.Zone.KDS.TlsSkipVerify).To(BeTrue())
Expect(cfg.Multizone.Zone.KDS.Labels.SkipPrefixes).To(Equal([]string{"argocd.argoproj.io"}))

Expect(cfg.Defaults.SkipMeshCreation).To(BeTrue())
Expect(cfg.Defaults.SkipTenantResources).To(BeTrue())
Expand Down Expand Up @@ -624,6 +626,8 @@ multizone:
timeout: 110s
tracing:
enabled: false
labels:
skipPrefixes: ["argocd.argoproj.io"]
zone:
globalAddress: "grpc://1.1.1.1:5685"
name: "zone-1"
Expand All @@ -635,6 +639,8 @@ multizone:
nackBackoff: 21s
responseBackoff: 2s
tlsSkipVerify: true
labels:
skipPrefixes: ["argocd.argoproj.io"]
disableOriginLabelValidation: true
ingressUpdateInterval: 2s
dnsServer:
Expand Down Expand Up @@ -968,6 +974,7 @@ meshService:
"KUMA_MULTIZONE_GLOBAL_KDS_ZONE_HEALTH_CHECK_POLL_INTERVAL": "11s",
"KUMA_MULTIZONE_GLOBAL_KDS_ZONE_HEALTH_CHECK_TIMEOUT": "110s",
"KUMA_MULTIZONE_GLOBAL_KDS_TRACING_ENABLED": "false",
"KUMA_MULTIZONE_GLOBAL_KDS_LABELS_SKIP_PREFIXES": "argocd.argoproj.io",
"KUMA_MULTIZONE_ZONE_GLOBAL_ADDRESS": "grpc://1.1.1.1:5685",
"KUMA_MULTIZONE_ZONE_NAME": "zone-1",
"KUMA_MULTIZONE_ZONE_KDS_ROOT_CA_FILE": "/rootCa",
Expand All @@ -979,6 +986,7 @@ meshService:
"KUMA_MULTIZONE_ZONE_KDS_TLS_SKIP_VERIFY": "true",
"KUMA_MULTIZONE_ZONE_DISABLE_ORIGIN_LABEL_VALIDATION": "true",
"KUMA_MULTIZONE_ZONE_INGRESS_UPDATE_INTERVAL": "2s",
"KUMA_MULTIZONE_ZONE_KDS_LABELS_SKIP_PREFIXES": "argocd.argoproj.io",
"KUMA_MULTIZONE_GLOBAL_KDS_ZONE_INSIGHT_FLUSH_INTERVAL": "5s",
"KUMA_DEFAULTS_SKIP_MESH_CREATION": "true",
"KUMA_DEFAULTS_SKIP_HOSTNAME_GENERATORS": "true",
Expand Down

0 comments on commit cff369c

Please sign in to comment.