Skip to content

Commit 2b844d8

Browse files
Merge pull request #344 from typeid/route_experimental_flag
Feat: route CAD_EXPERIMENTAL_ENABLED flag
2 parents c0e0a16 + 965aa55 commit 2b844d8

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

deploy/interceptor.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
envFrom:
2323
- secretRef:
2424
name: cad-pd-token
25+
env:
26+
- name: CAD_EXPERIMENTAL_ENABLED
27+
value: ${CAD_EXPERIMENTAL_ENABLED}
2528
resources:
2629
limits:
2730
cpu: "100m"

deploy/task-cad-checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ spec:
3030
env:
3131
- name: CAD_PROMETHEUS_PUSHGATEWAY
3232
value: aggregation-pushgateway:9091
33+
- name: CAD_EXPERIMENTAL_ENABLED
34+
value: ${CAD_EXPERIMENTAL_ENABLED}
3335
# envFrom should pull all the secret information as envvars, so key names should be uppercase
3436
envFrom:
3537
- secretRef:

hack/update-template/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var saasTemplateFile = Template{
3131
{Name: "IMAGE_TAG", Value: "v0.0.0"},
3232
{Name: "REGISTRY_IMG", Value: "quay.io/app-sre/configuration-anomaly-detection"},
3333
{Name: "NAMESPACE_NAME", Value: "configuration-anomaly-detection"},
34+
{Name: "CAD_EXPERIMENTAL_ENABLED", Value: "FALSE"},
3435
},
3536
}
3637

openshift/template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ parameters:
99
value: quay.io/app-sre/configuration-anomaly-detection
1010
- name: NAMESPACE_NAME
1111
value: configuration-anomaly-detection
12+
- name: CAD_EXPERIMENTAL_ENABLED
13+
value: "FALSE"
1214
objects:
1315
- apiVersion: apps/v1
1416
kind: Deployment
@@ -30,6 +32,9 @@ objects:
3032
command:
3133
- /bin/bash
3234
- -c
35+
env:
36+
- name: CAD_EXPERIMENTAL_ENABLED
37+
value: ${CAD_EXPERIMENTAL_ENABLED}
3338
envFrom:
3439
- secretRef:
3540
name: cad-pd-token
@@ -312,6 +317,8 @@ objects:
312317
env:
313318
- name: CAD_PROMETHEUS_PUSHGATEWAY
314319
value: aggregation-pushgateway:9091
320+
- name: CAD_EXPERIMENTAL_ENABLED
321+
value: ${CAD_EXPERIMENTAL_ENABLED}
315322
envFrom:
316323
- secretRef:
317324
name: cad-aws-credentials

0 commit comments

Comments
 (0)