Skip to content

Commit 7b9d790

Browse files
authored
Merge pull request #621 from element-hq/bbz/tweak-ci-values-files
Tweak CI values files
2 parents e5d7f62 + 90810f5 commit 7b9d790

12 files changed

Lines changed: 85 additions & 26 deletions
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Copyright 2024-2025 New Vector Ltd
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-only
4+
#
5+
# source_fragments: deployment-markers-minimal.yaml deployment-markers-checkov.yaml element-web-minimal.yaml element-web-checkov.yaml synapse-minimal.yaml synapse-checkov.yaml matrix-authentication-service-minimal.yaml matrix-authentication-service-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml well-known-minimal.yaml haproxy-checkov.yaml
6+
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values
7+
8+
# wellKnownDelegation don't have any required properties to be set and defaults to enabled
9+
deploymentMarkers:
10+
annotations:
11+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
12+
checkov.io/skip2: CKV_K8S_43=No digests
13+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
14+
checkov.io/skip4: CKV_K8S_38=The job needs a service account
15+
elementWeb:
16+
annotations:
17+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
18+
checkov.io/skip2: CKV_K8S_43=No digests
19+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
20+
ingress:
21+
host: element.ess.localhost
22+
haproxy:
23+
annotations:
24+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
25+
checkov.io/skip2: CKV_K8S_43=No digests
26+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
27+
initSecrets:
28+
annotations:
29+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
30+
checkov.io/skip2: CKV_K8S_43=No digests
31+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
32+
checkov.io/skip4: CKV_K8S_38=The job needs a service account
33+
matrixAuthenticationService:
34+
annotations:
35+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
36+
checkov.io/skip2: CKV_K8S_43=No digests
37+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
38+
ingress:
39+
host: mas.ess.localhost
40+
matrixRTC:
41+
enabled: false
42+
postgres:
43+
annotations:
44+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
45+
checkov.io/skip2: CKV_K8S_43=No digests
46+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
47+
serverName: ess.localhost
48+
synapse:
49+
annotations:
50+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
51+
checkov.io/skip2: CKV_K8S_43=No digests
52+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
53+
checkConfigHook:
54+
annotations:
55+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
56+
checkov.io/skip2: CKV_K8S_43=No digests
57+
checkov.io/skip3: CKV2_K8S_6=No network policy yet
58+
ingress:
59+
host: synapse.ess.localhost
60+
redis:
61+
annotations:
62+
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
63+
checkov.io/skip2: CKV_K8S_43=No digests
64+
checkov.io/skip3: CKV2_K8S_6=No network policy yet

charts/matrix-stack/ci/matrix-authentication-service-checkov-values.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
#
33
# SPDX-License-Identifier: AGPL-3.0-only
44
#
5-
# source_fragments: matrix-authentication-service-minimal.yaml matrix-authentication-service-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml deployment-markers-minimal.yaml deployment-markers-checkov.yaml
5+
# source_fragments: matrix-authentication-service-minimal.yaml matrix-authentication-service-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml
66
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values
77

88
deploymentMarkers:
9-
annotations:
10-
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
11-
checkov.io/skip2: CKV_K8S_43=No digests
12-
checkov.io/skip3: CKV2_K8S_6=No network policy yet
13-
checkov.io/skip4: CKV_K8S_38=The job needs a service account
9+
enabled: false
1410
elementWeb:
1511
enabled: false
1612
initSecrets:

charts/matrix-stack/ci/matrix-authentication-service-minimal-values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
#
33
# SPDX-License-Identifier: AGPL-3.0-only
44
#
5-
# source_fragments: matrix-authentication-service-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml deployment-markers-minimal.yaml
5+
# source_fragments: matrix-authentication-service-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml
66
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values
77

8-
# deploymentMarkers, initSecrets, postgres don't have any required properties to be set and defaults to enabled
8+
# initSecrets, postgres don't have any required properties to be set and defaults to enabled
9+
deploymentMarkers:
10+
enabled: false
911
elementWeb:
1012
enabled: false
1113
matrixAuthenticationService:

charts/matrix-stack/ci/pytest-matrix-rtc-synapse-wellknown-values.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22
#
33
# SPDX-License-Identifier: AGPL-3.0-only
44
#
5-
# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-pytest-extras.yaml synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-base-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml well-known-minimal.yaml well-known-pytest-extras.yaml deployment-markers-minimal.yaml deployment-markers-pytest-extras.yaml
5+
# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-pytest-extras.yaml synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-base-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml well-known-minimal.yaml well-known-pytest-extras.yaml
66
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values
77

88
deploymentMarkers:
9-
annotations:
10-
has-no-service-monitor: "true"
11-
podSecurityContext:
12-
runAsGroup: 0
9+
enabled: false
1310
elementWeb:
1411
enabled: false
1512
global:

charts/matrix-stack/ci/pytest-synapse-values.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22
#
33
# SPDX-License-Identifier: AGPL-3.0-only
44
#
5-
# source_fragments: synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-self-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml deployment-markers-minimal.yaml deployment-markers-pytest-extras.yaml
5+
# source_fragments: synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-self-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml
66
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values
77

88
deploymentMarkers:
9-
annotations:
10-
has-no-service-monitor: "true"
11-
podSecurityContext:
12-
runAsGroup: 0
9+
enabled: false
1310
elementWeb:
1411
enabled: false
1512
haproxy:

charts/matrix-stack/ci/synapse-checkov-with-workers-values.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
#
33
# SPDX-License-Identifier: AGPL-3.0-only
44
#
5-
# source_fragments: synapse-minimal.yaml synapse-some-workers-running.yaml synapse-checkov.yaml haproxy-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml deployment-markers-minimal.yaml deployment-markers-checkov.yaml
5+
# source_fragments: synapse-minimal.yaml synapse-some-workers-running.yaml synapse-checkov.yaml haproxy-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml
66
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values
77

88
deploymentMarkers:
9-
annotations:
10-
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
11-
checkov.io/skip2: CKV_K8S_43=No digests
12-
checkov.io/skip3: CKV2_K8S_6=No network policy yet
13-
checkov.io/skip4: CKV_K8S_38=The job needs a service account
9+
enabled: false
1410
elementWeb:
1511
enabled: false
1612
haproxy:

charts/matrix-stack/ci/synapse-minimal-values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
#
33
# SPDX-License-Identifier: AGPL-3.0-only
44
#
5-
# source_fragments: synapse-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml deployment-markers-minimal.yaml
5+
# source_fragments: synapse-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml
66
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values
77

8-
# deploymentMarkers, initSecrets, postgres don't have any required properties to be set and defaults to enabled
8+
# initSecrets, postgres don't have any required properties to be set and defaults to enabled
9+
deploymentMarkers:
10+
enabled: false
911
elementWeb:
1012
enabled: false
1113
matrixAuthenticationService:

newsfragments/621.internal.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CI: remove `deploymentMarkers` from `{synapse,matrix-authentication-service}(-checkov)-values.yaml` as no extra values are required if deployment markers aren't enabled.

newsfragments/621.internal.2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CI: handle `deploymentMarkers` not being enabled in various some PyTests.

newsfragments/621.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CI: add `checkov` values file that covers all default enabled components.

0 commit comments

Comments
 (0)