Skip to content

Commit e3068f5

Browse files
committed
Add test case for rbac.type=scc
Rendered from template version: main (98d16f9)
1 parent ef5ce0b commit e3068f5

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed

.cruft.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "mimir",
88
"slug": "mimir",
99
"parameter_key": "mimir",
10-
"test_cases": "defaults global-node-selector",
10+
"test_cases": "defaults global-node-selector openshift",
1111
"add_lib": "n",
1212
"add_pp": "n",
1313
"add_golden": "y",
@@ -24,7 +24,8 @@
2424
"github_owner": "projectsyn",
2525
"github_name": "component-mimir",
2626
"github_url": "https://github.com/projectsyn/component-mimir",
27-
"_template": "https://github.com/projectsyn/commodore-component-template.git"
27+
"_template": "https://github.com/projectsyn/commodore-component-template.git",
28+
"_commit": "98d16f99766e6c6d97322dbe42e058f0e2bf73d0"
2829
}
2930
},
3031
"directory": null

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
instance:
3535
- defaults
3636
- global-node-selector
37+
- openshift
3738
defaults:
3839
run:
3940
working-directory: ${{ env.COMPONENT_NAME }}
@@ -50,6 +51,7 @@ jobs:
5051
instance:
5152
- defaults
5253
- global-node-selector
54+
- openshift
5355
defaults:
5456
run:
5557
working-directory: ${{ env.COMPONENT_NAME }}

Makefile.vars.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ KUBENT_IMAGE ?= ghcr.io/doitintl/kube-no-trouble:latest
5050
KUBENT_DOCKER ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(root_volume) --entrypoint=/app/kubent $(KUBENT_IMAGE)
5151

5252
instance ?= defaults
53-
test_instances = tests/defaults.yml tests/global-node-selector.yml
53+
test_instances = tests/defaults.yml tests/global-node-selector.yml tests/openshift.yml

tests/golden/openshift/mimir/apps/mimir.yaml

Whitespace-only changes.

tests/openshift.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
parameters:
2+
kapitan:
3+
dependencies:
4+
- type: https
5+
source: https://raw.githubusercontent.com/appuio/component-openshift4-monitoring/v5.5.1/lib/openshift4-monitoring-prom.libsonnet
6+
output_path: vendor/lib/prom.libsonnet
7+
8+
mimir:
9+
helm_values:
10+
global:
11+
dnsService: dns-default
12+
dnsNamespace: openshift-dns
13+
rbac:
14+
type: scc
15+
podSecurityContext:
16+
fsGroup: null
17+
runAsGroup: null
18+
runAsUser: null
19+
rollout_operator:
20+
podSecurityContext:
21+
fsGroup: null
22+
runAsGroup: null
23+
runAsUser: null

0 commit comments

Comments
 (0)