Skip to content

Commit 0113dab

Browse files
authored
Prepare release 4.8.0 (#1340)
1 parent dfe3744 commit 0113dab

File tree

12 files changed

+220
-56
lines changed

12 files changed

+220
-56
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ jobs:
9090
name: Checkout repository
9191
uses: actions/checkout@v4.1.6
9292
-
93-
name: Setup Go 1.23
93+
name: Setup Go 1.24
9494
uses: actions/setup-go@v5
9595
with:
96-
go-version: 1.23
96+
go-version: 1.24
9797
-
9898
name: Download goimports
9999
run: |
@@ -102,7 +102,7 @@ jobs:
102102
name: Download golangci-lint
103103
run: |
104104
curl -sSfL --output /tmp/golangci-lint.sh https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
105-
cat /tmp/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1
105+
cat /tmp/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.7
106106
-
107107
name: Run linter
108108
working-directory: jenkins/webhook-proxy

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,31 @@
44

55
### Added
66

7+
8+
### Changed
9+
10+
11+
### Fixed
12+
13+
14+
## [4.8.0] - 2025-4-10
15+
16+
### Added
17+
18+
- Update CODEOWNERS ([#1329](https://github.com/opendevstack/ods-core/issues/1329))
19+
- Add packages carvel/imgpkg and yg ([#1322](https://github.com/opendevstack/ods-core/issues/1322))
20+
- Adde mask-passwords and office 365 connector plugins in Jenkins ([#1313](https://github.com/opendevstack/ods-core/issues/1313)) and ([#1316](https://github.com/opendevstack/ods-core/issues/1316))
21+
- Add package cosign ([#1323](https://github.com/opendevstack/ods-core/issues/1323))
22+
723
### Changed
24+
- Updated Aqua CLI ([#1325](https://github.com/opendevstack/ods-core/pull/1325)) & ([#1332](https://github.com/opendevstack/ods-core/pull/1332))
25+
- Fix Jenkins pipeline removal issue and update to golang 1.24 ([#1331](https://github.com/opendevstack/ods-core/issues/1331))
826

927
### Fixed
1028

29+
- Webhook proxy BC recretion issue ([#1265](https://github.com/opendevstack/ods-core/issues/1265))
30+
- Fix Go version without 1.N.P syntax ([#1337](https://github.com/opendevstack/ods-core/pull/1337))
31+
1132
## [4.7.0] - 2025-1-27
1233

1334
### Changed

CODEOWNERS

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
tests/ @clemensutschig @hugowschneider
2-
jenkins/ @michaelsauter @oalyman
3-
scripts/ @michaelsauter
1+
tests/ @clemensutschig
2+
jenkins/ @oalyman @BraisVQ
3+
sonarqube/ @BraisVQ
4+
nexus/ @BraisVQ
5+
scripts/
46
ods-provisioning-app/ @stitakis
57
ods-document-generation-svc/ @metmajer
6-
infrastructure-setup/ @tjaeschke
8+
infrastructure-setup/
79

configuration-sample/ods-core.env.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ JENKINS_AGENT_BASE_SNYK_DISTRIBUTION_URL=https://github.com/snyk/snyk/releases/d
250250
# Releases are published at https://download.aquasec.com/scanner
251251
# Check Aqua versions backward compatibility at https://docs.aquasec.com/docs/version-compatibility-of-components#section-backward-compatibility-across-two-major-versions
252252
# To Download the aquaSec scanner cli and check their documentaion requires a valid account on aquasec.com
253-
# Latest tested version is 2022.4.588
254-
# Example: https://<USER>:<PASSWORD>@download.aquasec.com/scanner/2022.4.588/scannercli
253+
# Latest tested version is 2022.4.720
254+
# Example: https://<USER>:<PASSWORD>@download.aquasec.com/scanner/2022.4.759/scannercli
255255
JENKINS_AGENT_BASE_AQUASEC_SCANNERCLI_URL=
256256

257257
# Repository of shared library

jenkins/agent-base/Dockerfile.ubi8

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
44

55
ENV SONAR_SCANNER_VERSION=6.2.1.4610 \
66
CNES_REPORT_VERSION=5.0.0 \
7+
COSIGN_VERSION=2.4.3 \
78
TAILOR_VERSION=1.3.4 \
89
SOPS_VERSION=3.9.0 \
910
HELM_VERSION=3.15.4 \
1011
HELM_PLUGIN_DIFF_VERSION=3.9.9 \
1112
HELM_PLUGIN_SECRETS_VERSION=4.6.1 \
1213
GIT_LFS_VERSION=3.5.1 \
14+
IMGPKG_VERSION=0.44.0 \
1315
TRIVY_VERSION=0.54.1 \
16+
YQ_VERSION=4.45.1 \
1417
JAVA_GC_OPTS="-XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90"
1518

1619
ARG APP_DNS
@@ -61,6 +64,13 @@ RUN cd /tmp \
6164
&& mv cnesreport.jar /usr/local/cnes/cnesreport.jar \
6265
&& chmod 777 /usr/local/cnes/cnesreport.jar
6366

67+
# Install sigstore/cosign
68+
RUN cd /tmp \
69+
&& curl -sSLO https://github.com/sigstore/cosign/releases/download/v${COSIGN_VERSION}/cosign-linux-amd64 \
70+
&& mv /tmp/cosign-linux-amd64 /usr/local/bin/cosign \
71+
&& chmod 755 /usr/local/bin/cosign \
72+
&& cosign version
73+
6474
# Install Tailor.
6575
RUN cd /tmp \
6676
&& curl -sSLO https://github.com/opendevstack/tailor/releases/download/v${TAILOR_VERSION}/tailor-linux-amd64 \
@@ -83,6 +93,20 @@ RUN cd /tmp \
8393
&& sops --version \
8494
&& rm -rf /tmp/helm /tmp/helm-v${HELM_VERSION}-linux-amd64.tar.gz
8595

96+
# Install imgpkg.
97+
RUN cd /tmp \
98+
&& curl -sSLO https://github.com/carvel-dev/imgpkg/releases/download/v${IMGPKG_VERSION}/imgpkg-linux-amd64 \
99+
&& mv imgpkg-linux-amd64 /usr/local/bin/imgpkg \
100+
&& chmod a+x /usr/local/bin/imgpkg \
101+
&& imgpkg --version
102+
103+
# Install yq.
104+
RUN cd /tmp \
105+
&& curl -sSLO https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64 \
106+
&& mv yq_linux_amd64 /usr/local/bin/yq \
107+
&& chmod a+x /usr/local/bin/yq \
108+
&& yq --version
109+
86110
# Install GIT-LFS extension https://git-lfs.github.com/.
87111
RUN cd /tmp \
88112
&& mkdir -p /tmp/git-lfs \

jenkins/master/plugins.ubi8.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ greenballs:1.15.1
33
sonar:2.17.2
44
ansicolor:1.0.4
55
audit-trail:361.v82cde86c784e
6+
Office-365-Connector:5.0.0
7+
mask-passwords:173.v6a_077a_291eb_5
8+
9+
# Plugins updated to fix dependecy errors (can be removed in next version)
10+
workflow-step-api:657.v03b_e8115821b_
611

712
# Bundled plugins
813
token-macro:400.v35420b_922dcb_

jenkins/ocp-config/deploy/jenkins-webhook-proxy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ parameters:
2020
required: true
2121
- name: ODS_BITBUCKET_PROJECT
2222
required: true
23+
- name: MAX_DELETION_CHECKS
24+
value: '10'
25+
required: true
2326
- name: WEBHOOK_PROXY_CPU_REQUEST
2427
value: 25m
2528
- name: WEBHOOK_PROXY_CPU_LIMIT
@@ -96,6 +99,10 @@ objects:
9699
value: ${REPO_BASE}
97100
- name: ALLOWED_EXTERNAL_PROJECTS
98101
value: ${ODS_BITBUCKET_PROJECT}
102+
- name: OPENSHIFT_APP_DOMAIN
103+
value: ${OPENSHIFT_APPS_BASEDOMAIN}
104+
- name: MAX_DELETION_CHECKS
105+
value: ${MAX_DELETION_CHECKS}
99106
- name: TRIGGER_SECRET
100107
valueFrom:
101108
secretKeyRef:

jenkins/webhook-proxy/Dockerfile

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
1-
# Ideally we would us a very small image like plain alpine and just copy the
2-
# pre-built binary into it, but due to e.g. multistage builds not available in
3-
# OpenShift yet, for now the easiest is to build the binary in this image.
4-
FROM golang:1.23-alpine
1+
# Build stage
2+
FROM public.ecr.aws/docker/library/golang:1.24-alpine AS builder
3+
4+
RUN apk update && \
5+
apk -i upgrade && \
6+
apk cache clean && \
7+
mkdir -p /home/webhook-proxy
8+
9+
COPY main.go /home/webhook-proxy/main.go
10+
COPY go.mod /home/webhook-proxy/go.mod
11+
12+
WORKDIR /home/webhook-proxy
13+
14+
RUN CGO_ENABLED=0 go build -o webhook-proxy
15+
16+
# Final stage
17+
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
518

619
# Set default ALLOWED_EXTERNAL_PROJECTS env var
720
ARG allowedExternalProjects=opendevstack
821
ENV ALLOWED_EXTERNAL_PROJECTS=$allowedExternalProjects
922

10-
RUN apk add -i ca-certificates && \
11-
apk update && \
12-
apk -i upgrade && \
13-
apk cache clean && \
14-
mkdir -p /home/webhook-proxy && \
23+
RUN mkdir -p /home/webhook-proxy && \
1524
chgrp -R 0 /home/webhook-proxy && \
1625
chmod g+w /home/webhook-proxy
1726

18-
COPY main.go /home/webhook-proxy/main.go
19-
COPY go.mod /home/webhook-proxy/go.mod
27+
COPY --from=builder /home/webhook-proxy/webhook-proxy /home/webhook-proxy/webhook-proxy
2028
COPY pipeline.json.tmpl /home/webhook-proxy/pipeline.json.tmpl
2129

2230
WORKDIR /home/webhook-proxy
2331

24-
RUN CGO_ENABLED=0 go build -o webhook-proxy
25-
2632
EXPOSE 8080
2733

2834
CMD ./webhook-proxy

jenkins/webhook-proxy/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fmt:
88

99
lint:
1010
golangci-lint --version
11-
golangci-lint run --go=1.23
11+
golangci-lint run --go=1.24
1212

1313
build: build-linux build-darwin build-windows
1414

jenkins/webhook-proxy/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/opendevstack/ods-core/jenkins/webhook-proxy
22

3-
go 1.23
3+
go 1.24.1

0 commit comments

Comments
 (0)