Skip to content

Commit f024dd0

Browse files
authored
Bump ubi minimal image to avoid CSV (#194)
Related Jira: https://redhat.atlassian.net/browse/KONFLUX-12662
1 parent d05d2e5 commit f024dd0

4 files changed

Lines changed: 43 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Dora Metrics Tests
2+
3+
on:
4+
push:
5+
branches: [ main, fix_csv ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Run Tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: '1.26'
22+
cache: true
23+
24+
- name: Download dependencies
25+
run: go mod download
26+
27+
- name: Run tests
28+
run: go test ./... -v -race -coverprofile=coverage.out
29+
30+
- name: Generate coverage report
31+
run: go tool cover -func=coverage.out
32+
33+
- name: Upload coverage
34+
uses: codecov/codecov-action@v4
35+
if: success()
36+
with:
37+
file: ./coverage.out
38+
fail_ci_if_error: false

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ COPY . .
1717
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -buildvcs=false -o main ./cmd/server
1818

1919
# Final stage
20-
FROM registry.redhat.io/ubi9/ubi-minimal:latest
20+
FROM registry.redhat.io/ubi9-minimal:9.7
2121

2222
# Create non-root user
2323
RUN groupadd -g 1001 dora-metrics && \

configs/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ argocd:
3232
- "cluster-secret-store"
3333
- "build-templates"
3434
- "policies"
35+
- "image-rbac-proxy"
36+
- "authentication"
3537

3638
# Known cluster names for application name parsing
3739
# These are used to extract component and cluster information from application names
@@ -137,7 +139,6 @@ integration:
137139
- name: "konflux-infrastructure-team"
138140
project_id: "5"
139141
argocd_components:
140-
- "authentication"
141142
- "backup"
142143
- "cert-manager"
143144
- "cost-management"

manifests/production/configmap.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ data:
4545
- "cluster-secret-store"
4646
- "build-templates"
4747
- "policies"
48+
- "image-rbac-proxy"
49+
- "authentication"
4850
4951
# Known cluster names for application name parsing
5052
# These are used to extract component and cluster information from application names
@@ -150,7 +152,6 @@ data:
150152
- name: "konflux-infrastructure-team"
151153
project_id: "5"
152154
argocd_components:
153-
- "authentication"
154155
- "backup"
155156
- "cert-manager"
156157
- "cost-management"

0 commit comments

Comments
 (0)