Skip to content

Commit e338f21

Browse files
Sgu74cesmarvin
authored andcommitted
Merge branch 'release/v1.10.1'
2 parents 94120ee + 9f6ef71 commit e338f21

28 files changed

Lines changed: 387 additions & 384 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [v1.10.1] - 2025-09-25
10+
11+
### Changed
12+
- [#96] Upgrade Golang to v1.25.1
13+
- [#96] Upgrade Dependencies
14+
- [#96] Update Makefiles to 10.4.0
15+
916
## [v1.10.0] - 2025-07-10
1017
### Added
1118
- [#95] Added mappedValues field to component cr

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.24.4 AS builder
2+
FROM golang:1.25.1 AS builder
33

44
ENV GOPRIVATE=github.com/cloudogu/cesapp/v5
55

@@ -35,7 +35,7 @@ RUN make compile-generic
3535
FROM gcr.io/distroless/static:nonroot
3636
LABEL maintainer="hello@cloudogu.com" \
3737
NAME="k8s-component-operator" \
38-
VERSION="1.10.0"
38+
VERSION="1.10.1"
3939

4040
WORKDIR /
4141
COPY --from=builder /workspace/target/k8s-component-operator .

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ github = new GitHub(this, git)
1212
changelog = new Changelog(this)
1313
Docker docker = new Docker(this)
1414
gpg = new Gpg(this, docker)
15-
goVersion = "1.24.4"
15+
goVersion = "1.25.1"
1616
makefile = new Makefile(this)
1717

1818
// Configuration of repository

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Set these to the desired values
22
ARTIFACT_ID=k8s-component-operator
3-
VERSION=1.10.0
3+
VERSION=1.10.1
44
## Image URL to use all building/pushing image targets
55
IMAGE=cloudogu/${ARTIFACT_ID}:${VERSION}
6-
GOTAG?=1.24.4
7-
MAKEFILES_VERSION=10.1.1
6+
GOTAG=1.25.1
7+
MAKEFILES_VERSION=10.4.0
88

99
ADDITIONAL_CLEAN=dist-clean
1010

@@ -28,7 +28,6 @@ include build/make/clean.mk
2828
include build/make/digital-signature.mk
2929
include build/make/mocks.mk
3030
include build/make/k8s-controller.mk
31-
include build/make/k8s.mk
3231

3332
BINARY_HELM_VERSION=v3.18.3
3433

build/make/bats.mk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BATS_SUPPORT=$(BATS_LIBRARY_DIR)/bats-support
99
BATS_FILE=$(BATS_LIBRARY_DIR)/bats-file
1010
BATS_BASE_IMAGE?=bats/bats
1111
BATS_CUSTOM_IMAGE?=cloudogu/bats
12-
BATS_TAG?=1.11.0
12+
BATS_TAG?=1.12.0
1313
BATS_DIR=build/make/bats
1414
BATS_WORKDIR="${WORKDIR}"/"${BATS_DIR}"
1515

@@ -18,15 +18,19 @@ unit-test-shell: unit-test-shell-$(ENVIRONMENT)
1818

1919
$(BATS_ASSERT):
2020
@git clone --depth 1 https://github.com/bats-core/bats-assert $@
21+
@rm -rf $@/.git
2122

2223
$(BATS_MOCK):
2324
@git clone --depth 1 https://github.com/grayhemp/bats-mock $@
25+
@rm -rf $@/.git
2426

2527
$(BATS_SUPPORT):
2628
@git clone --depth 1 https://github.com/bats-core/bats-support $@
29+
@rm -rf $@/.git
2730

2831
$(BATS_FILE):
2932
@git clone --depth 1 https://github.com/bats-core/bats-file $@
33+
@rm -rf $@/.git
3034

3135
$(BASH_SRC):
3236
BASH_SRC:=$(shell find "${WORKDIR}" -type f -name "*.sh")
@@ -49,10 +53,10 @@ unit-test-shell-local: $(BASH_SRC) $(PASSWD) $(ETCGROUP) $(HOME_DIR) buildTestIm
4953
"${BATS_DIR}"/customBatsEntrypoint.sh make unit-test-shell-generic-no-junit
5054

5155
unit-test-shell-generic:
52-
@bats --formatter junit --output ${BASH_TEST_REPORT_DIR} ${TESTS_DIR}
56+
@bats --report-formatter junit --formatter junit --output ${BASH_TEST_REPORT_DIR} ${TESTS_DIR}
5357

5458
unit-test-shell-generic-no-junit:
55-
@bats ${TESTS_DIR}
59+
@bats --report-formatter junit --output ${BASH_TEST_REPORT_DIR} ${TESTS_DIR}
5660

5761
.PHONY buildTestImage:
5862
buildTestImage:

build/make/bats/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG BATS_BASE_IMAGE
22
ARG BATS_TAG
33

4-
FROM ${BATS_BASE_IMAGE:-bats/bats}:${BATS_TAG:-1.11.0}
4+
FROM ${BATS_BASE_IMAGE:-bats/bats}:${BATS_TAG:-1.12.0}
55

66
# Make bash more findable by scripts and tests
77
RUN apk add make git bash

build/make/bats/customBatsEntrypoint.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,11 @@ set -o errexit
33
set -o nounset
44
set -o pipefail
55

6-
"$@"
6+
targetReportDir="${PWD}"/target/shell_test_reports
7+
uidgid=1000:1000
8+
exitcode=0
9+
"$@" || exitcode=$?
10+
echo "Resetting file ownership to ${uidgid} in ${targetReportDir}/"
11+
chown -R ${uidgid} "${targetReportDir}"/*
12+
echo "exiting with code ${exitcode}"
13+
exit ${exitcode}

build/make/build.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ADDITIONAL_LDFLAGS?=-extldflags -static
44
LDFLAGS?=-ldflags "$(ADDITIONAL_LDFLAGS) -X main.Version=$(VERSION) -X main.CommitID=$(COMMIT_ID)"
55
GOIMAGE?=golang
6-
GOTAG?=1.24
6+
GOTAG?=1.25
77
GOOS?=linux
88
GOARCH?=amd64
99
PRE_COMPILE?=

build/make/k8s-component.mk

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
COMPONENT_DEV_VERSION?=${VERSION}-dev
1+
COMPONENT_BUILD_VERSION := $(shell date +%s)
2+
COMPONENT_DEV_VERSION?=${VERSION}-dev.${COMPONENT_BUILD_VERSION}
23

34
include ${BUILD_DIR}/make/k8s.mk
45

@@ -15,8 +16,9 @@ HELM_RELEASE_TGZ=${HELM_TARGET_DIR}/${ARTIFACT_ID}-${VERSION}.tgz
1516
HELM_DEV_RELEASE_TGZ=${HELM_TARGET_DIR}/${ARTIFACT_ID}-${COMPONENT_DEV_VERSION}.tgz
1617
HELM_ARTIFACT_NAMESPACE?=k8s
1718
ifeq (${RUNTIME_ENV}, remote)
18-
HELM_ARTIFACT_NAMESPACE?=testing/k8s
19+
HELM_ARTIFACT_NAMESPACE=testing/k8s
1920
endif
21+
$(info HELM_ARTIFACT_NAMESPACE=$(HELM_ARTIFACT_NAMESPACE))
2022

2123
K8S_RESOURCE_COMPONENT ?= "${K8S_RESOURCE_TEMP_FOLDER}/component-${ARTIFACT_ID}-${VERSION}.yaml"
2224
K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML ?= $(BUILD_DIR)/make/k8s-component.tpl
@@ -93,10 +95,10 @@ helm-reinstall: helm-delete helm-apply ## Uninstalls the current helm chart and
9395
.PHONY: helm-chart-import
9496
helm-chart-import: ${CHECK_VAR_TARGETS} helm-generate helm-package ${IMAGE_IMPORT_TARGET} ## Imports the currently available chart into the cluster-local registry.
9597
@if [[ ${STAGE} == "development" ]]; then \
96-
echo "Import ${HELM_DEV_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}..."; \
98+
echo "Import ${HELM_DEV_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE}..."; \
9799
${BINARY_HELM} push ${HELM_DEV_RELEASE_TGZ} oci://${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE} ${BINARY_HELM_ADDITIONAL_PUSH_ARGS}; \
98100
else \
99-
echo "Import ${HELM_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}..."; \
101+
echo "Import ${HELM_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE}..."; \
100102
${BINARY_HELM} push ${HELM_RELEASE_TGZ} oci://${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE} ${BINARY_HELM_ADDITIONAL_PUSH_ARGS}; \
101103
fi
102104
@echo "Done."
@@ -142,7 +144,7 @@ ${K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML}: ${K8S_RESOURCE_TEMP_FOLDER}
142144
fi
143145

144146
.PHONY: component-apply
145-
component-apply: isLocal check-k8s-namespace-env-var ${COMPONENT_PRE_APPLY_TARGETS} ${IMAGE_IMPORT_TARGET} helm-generate helm-chart-import component-generate ## Applies the component yaml resource to the actual defined context.
147+
component-apply: isProduction check-k8s-namespace-env-var ${COMPONENT_PRE_APPLY_TARGETS} ${IMAGE_IMPORT_TARGET} helm-generate helm-chart-import component-generate ## Applies the component yaml resource to the actual defined context.
146148
@kubectl apply -f "${K8S_RESOURCE_COMPONENT}" --namespace="${NAMESPACE}" --context="${KUBE_CONTEXT_NAME}"
147149
@echo "Done."
148150

build/make/k8s-crd.mk

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ ifeq ($(APPEND_CRD_SUFFIX), true)
55
else ifeq ($(APPEND_CRD_SUFFIX), false)
66
ARTIFACT_CRD_ID = $(ARTIFACT_ID)
77
endif
8-
DEV_CRD_VERSION ?= ${VERSION}-dev
8+
CRD_BUILD_VERSION := $(shell date +%s).$(TIMESTAMP)
9+
DEV_CRD_VERSION ?= ${VERSION}-dev.${COMPONENT_BUILD_VERSION}
910
HELM_CRD_SOURCE_DIR ?= ${WORKDIR}/k8s/helm-crd
1011
HELM_CRD_TARGET_DIR ?= $(K8S_RESOURCE_TEMP_FOLDER)/helm-crd
1112
HELM_CRD_RELEASE_TGZ = ${HELM_CRD_TARGET_DIR}/${ARTIFACT_CRD_ID}-${VERSION}.tgz
@@ -89,10 +90,10 @@ ${HELM_CRD_RELEASE_TGZ}: ${BINARY_HELM} crd-helm-generate ## Generates and packa
8990
.PHONY: crd-helm-chart-import
9091
crd-helm-chart-import: ${CHECK_VAR_TARGETS} check-k8s-artifact-id crd-helm-generate crd-helm-package ## Imports the currently available Helm CRD chart into the cluster-local registry.
9192
@if [[ ${STAGE} == "development" ]]; then \
92-
echo "Import ${HELM_CRD_DEV_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}..."; \
93+
echo "Import ${HELM_CRD_DEV_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE}..."; \
9394
${BINARY_HELM} push ${HELM_CRD_DEV_RELEASE_TGZ} oci://${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE} ${BINARY_HELM_ADDITIONAL_PUSH_ARGS}; \
9495
else \
95-
echo "Import ${HELM_CRD_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}..."; \
96+
echo "Import ${HELM_CRD_RELEASE_TGZ} into K8s cluster ${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE}..."; \
9697
${BINARY_HELM} push ${HELM_CRD_RELEASE_TGZ} oci://${CES_REGISTRY_HOST}/${HELM_ARTIFACT_NAMESPACE} ${BINARY_HELM_ADDITIONAL_PUSH_ARGS}; \
9798
fi
9899
@echo "Done."
@@ -111,7 +112,7 @@ crd-component-generate: ${K8S_RESOURCE_TEMP_FOLDER} ## Generate the CRD componen
111112
fi
112113

113114
.PHONY: crd-component-apply
114-
crd-component-apply: isLocal check-k8s-namespace-env-var crd-helm-chart-import crd-component-generate ## Applies the CRD component YAML resource to the actual defined context.
115+
crd-component-apply: isProduction check-k8s-namespace-env-var crd-helm-chart-import crd-component-generate ## Applies the CRD component YAML resource to the actual defined context.
115116
@kubectl apply -f "${K8S_RESOURCE_CRD_COMPONENT}" --namespace="${NAMESPACE}" --context="${KUBE_CONTEXT_NAME}"
116117
@echo "Done."
117118

0 commit comments

Comments
 (0)