Skip to content

Commit 81ad755

Browse files
kahoona77cesmarvin
authored andcommitted
Merge branch 'release/v1.1.0'
2 parents 54cd22b + 61b91af commit 81ad755

24 files changed

Lines changed: 1293 additions & 63 deletions

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [v1.1.0] - 2026-04-10
10+
### Changed
11+
- [#5] Rename generated K8s resources to match the Helm release
12+
- if ldap-mapper is installed by an umbrella chart like `lop-idp` the deployed resources will receive a name like `lop-idp-ldap-mapper` instead of only `ldap-mapper`
13+
- Update go libraries to newer patch versions
14+
- (internal) Update Makefiles to 10.7.3
15+
16+
### Removed
17+
- Remove excessive blank trimming from Helm template YAML files
18+
19+
### Fixed
20+
- Backoff on errors in the reconciliation loop
21+
922
## [v1.0.0] - 2026-04-07
1023
### Added
1124
- [#3] CAS-backed service registration for `CAS`, `OIDC`, and `OAUTH`

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -mod=mod
2626
FROM gcr.io/distroless/static:nonroot
2727
LABEL maintainer="hello@cloudogu.com" \
2828
NAME="k8s-auth-registration-operator" \
29-
VERSION="1.0.0"
29+
VERSION="1.1.0"
3030

3131
WORKDIR /
3232
COPY --from=builder /workspace/k8s-auth-registration-operator .

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Set these to the desired values
22
ARTIFACT_ID=k8s-auth-registration-operator
3-
VERSION=1.0.0
3+
VERSION=1.1.0
44
IMAGE=cloudogu/${ARTIFACT_ID}:${VERSION}
55
GOTAG=1.26.0
6-
MAKEFILES_VERSION=10.6.0
6+
MAKEFILES_VERSION=10.7.3
77
LINT_VERSION?=v2.9.0
88
BINARY_HELM_VERSION?=v3.20.0
99

build/make/k8s-component.mk

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
COMPONENT_ARTIFACT_ID?=$(ARTIFACT_ID)
12
COMPONENT_BUILD_VERSION := $(shell date +%s)
23
COMPONENT_DEV_VERSION?=${VERSION}-dev.${COMPONENT_BUILD_VERSION}
34

4-
include ${BUILD_DIR}/make/k8s.mk
5+
ifeq (${K8S_MK_INCLUDE_MARKER}, )
6+
include ${BUILD_DIR}/make/k8s.mk
7+
endif
58

69
ifeq (${RUNTIME_ENV}, local)
710
BINARY_HELM_ADDITIONAL_PUSH_ARGS?=--plain-http
@@ -12,15 +15,15 @@ BINARY_HELM_ADDITIONAL_UPGR_ARGS?=
1215

1316
HELM_TARGET_DIR ?= $(K8S_RESOURCE_TEMP_FOLDER)/helm
1417
HELM_SOURCE_DIR ?= k8s/helm
15-
HELM_RELEASE_TGZ=${HELM_TARGET_DIR}/${ARTIFACT_ID}-${VERSION}.tgz
16-
HELM_DEV_RELEASE_TGZ=${HELM_TARGET_DIR}/${ARTIFACT_ID}-${COMPONENT_DEV_VERSION}.tgz
18+
HELM_RELEASE_TGZ=${HELM_TARGET_DIR}/${COMPONENT_ARTIFACT_ID}-${VERSION}.tgz
19+
HELM_DEV_RELEASE_TGZ=${HELM_TARGET_DIR}/${COMPONENT_ARTIFACT_ID}-${COMPONENT_DEV_VERSION}.tgz
1720
HELM_ARTIFACT_NAMESPACE?=k8s
1821
ifeq (${RUNTIME_ENV}, remote)
1922
HELM_ARTIFACT_NAMESPACE=testing/k8s
2023
endif
2124
$(info HELM_ARTIFACT_NAMESPACE=$(HELM_ARTIFACT_NAMESPACE))
2225

23-
K8S_RESOURCE_COMPONENT ?= "${K8S_RESOURCE_TEMP_FOLDER}/component-${ARTIFACT_ID}-${VERSION}.yaml"
26+
K8S_RESOURCE_COMPONENT ?= "${K8S_RESOURCE_TEMP_FOLDER}/component-${COMPONENT_ARTIFACT_ID}-${VERSION}.yaml"
2427
K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML ?= $(BUILD_DIR)/make/k8s-component.tpl
2528
# HELM_PRE_GENERATE_TARGETS allows to execute targets that affect Helm source files AND Helm target files.
2629
HELM_PRE_GENERATE_TARGETS ?=
@@ -38,8 +41,8 @@ IMAGE_IMPORT_TARGET?=
3841
helm-init-chart: ${BINARY_HELM} ## Creates a Chart.yaml-template with zero values
3942
@echo "Initialize ${HELM_SOURCE_DIR}/Chart.yaml..."
4043
@mkdir -p ${HELM_SOURCE_DIR}/tmp/
41-
@${BINARY_HELM} create ${HELM_SOURCE_DIR}/tmp/${ARTIFACT_ID}
42-
@cp ${HELM_SOURCE_DIR}/tmp/${ARTIFACT_ID}/Chart.yaml ${HELM_SOURCE_DIR}/
44+
@${BINARY_HELM} create ${HELM_SOURCE_DIR}/tmp/${COMPONENT_ARTIFACT_ID}
45+
@cp ${HELM_SOURCE_DIR}/tmp/${COMPONENT_ARTIFACT_ID}/Chart.yaml ${HELM_SOURCE_DIR}/
4346
@rm -dr ${HELM_SOURCE_DIR}/tmp
4447
@sed -i 's/appVersion: ".*"/appVersion: "0.0.0-replaceme"/' ${HELM_SOURCE_DIR}/Chart.yaml
4548
@sed -i 's/version: .*/version: 0.0.0-replaceme/' ${HELM_SOURCE_DIR}/Chart.yaml
@@ -82,12 +85,12 @@ helm-update-dependencies: ${BINARY_HELM} ## Update Helm chart dependencies
8285
.PHONY: helm-apply
8386
helm-apply: ${BINARY_HELM} check-k8s-namespace-env-var ${IMAGE_IMPORT_TARGET} helm-generate ${HELM_PRE_APPLY_TARGETS} ## Generates and installs the Helm chart.
8487
@echo "Apply generated helm chart"
85-
@${BINARY_HELM} --kube-context="${KUBE_CONTEXT_NAME}" upgrade -i ${ARTIFACT_ID} ${HELM_TARGET_DIR} ${BINARY_HELM_ADDITIONAL_UPGR_ARGS} --namespace ${NAMESPACE}
88+
@${BINARY_HELM} --kube-context="${KUBE_CONTEXT_NAME}" upgrade -i ${COMPONENT_ARTIFACT_ID} ${HELM_TARGET_DIR} ${BINARY_HELM_ADDITIONAL_UPGR_ARGS} --namespace ${NAMESPACE}
8689

8790
.PHONY: helm-delete
8891
helm-delete: ${BINARY_HELM} check-k8s-namespace-env-var ## Uninstalls the current Helm chart.
8992
@echo "Uninstall helm chart"
90-
@${BINARY_HELM} --kube-context="${KUBE_CONTEXT_NAME}" uninstall ${ARTIFACT_ID} --namespace=${NAMESPACE} ${BINARY_HELM_ADDITIONAL_UNINST_ARGS} || true
93+
@${BINARY_HELM} --kube-context="${KUBE_CONTEXT_NAME}" uninstall ${COMPONENT_ARTIFACT_ID} --namespace=${NAMESPACE} ${BINARY_HELM_ADDITIONAL_UNINST_ARGS} || true
9194

9295
.PHONY: helm-reinstall
9396
helm-reinstall: helm-delete helm-apply ## Uninstalls the current helm chart and reinstalls it.
@@ -122,7 +125,7 @@ ${HELM_RELEASE_TGZ}: ${BINARY_HELM} ${HELM_TARGET_DIR}/Chart.yaml ${HELM_POST_GE
122125
.PHONY: helm-delete-existing-tgz
123126
helm-delete-existing-tgz: ## Remove an existing Helm package from the target directory.
124127
@echo "Delete ${HELM_RELEASE_TGZ}*"
125-
@rm -f ${HELM_TARGET_DIR}/${ARTIFACT_ID}-*.tgz
128+
@rm -f ${HELM_TARGET_DIR}/${COMPONENT_ARTIFACT_ID}-*.tgz
126129

127130
##@ K8s - Helm lint targets
128131

@@ -138,9 +141,9 @@ component-generate: ${K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML} ${COMPONENT_POST_
138141
${K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML}: ${K8S_RESOURCE_TEMP_FOLDER}
139142
@echo "Generating temporary K8s component resource: ${K8S_RESOURCE_COMPONENT}"
140143
@if [[ ${STAGE} == "development" ]]; then \
141-
sed "s|NAMESPACE|$(HELM_ARTIFACT_NAMESPACE)|g" "${K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML}" | sed "s|NAME|$(ARTIFACT_ID)|g" | sed "s|VERSION|$(COMPONENT_DEV_VERSION)|g" > "${K8S_RESOURCE_COMPONENT}"; \
144+
sed "s|NAMESPACE|$(HELM_ARTIFACT_NAMESPACE)|g" "${K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML}" | sed "s|NAME|$(COMPONENT_ARTIFACT_ID)|g" | sed "s|VERSION|$(COMPONENT_DEV_VERSION)|g" > "${K8S_RESOURCE_COMPONENT}"; \
142145
else \
143-
sed "s|NAMESPACE|$(HELM_ARTIFACT_NAMESPACE)|g" "${K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML}" | sed "s|NAME|$(ARTIFACT_ID)|g" | sed "s|VERSION|$(VERSION)|g" > "${K8S_RESOURCE_COMPONENT}"; \
146+
sed "s|NAMESPACE|$(HELM_ARTIFACT_NAMESPACE)|g" "${K8S_RESOURCE_COMPONENT_CR_TEMPLATE_YAML}" | sed "s|NAME|$(COMPONENT_ARTIFACT_ID)|g" | sed "s|VERSION|$(VERSION)|g" > "${K8S_RESOURCE_COMPONENT}"; \
144147
fi
145148

146149
.PHONY: component-apply

build/make/k8s-dogu.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ VERSION=$(shell $(BINARY_YQ) -oy -e ".Version" $(DOGU_JSON_FILE))
1111
# Image of the dogu is extracted from the dogu.json
1212
IMAGE=$(shell $(BINARY_YQ) -oy -e ".Image" $(DOGU_JSON_FILE)):$(VERSION)
1313

14-
include $(BUILD_DIR)/make/k8s.mk
14+
PRE_BUILD_TARGETS ?=
15+
16+
ifeq (${K8S_MK_INCLUDE_MARKER}, )
17+
include ${BUILD_DIR}/make/k8s.mk
18+
endif
1519

1620
##@ K8s - EcoSystem
1721

1822
.PHONY: build
19-
build: image-import install-dogu-descriptor create-dogu-resource apply-dogu-resource ## Builds a new version of the dogu and deploys it into the K8s-EcoSystem.
23+
build: ${PRE_BUILD_TARGETS} image-import install-dogu-descriptor create-dogu-resource apply-dogu-resource ## Builds a new version of the dogu and deploys it into the K8s-EcoSystem.
2024

2125
##@ K8s - Dogu - Resource
2226

build/make/k8s.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ endif
66

77
## Variables
88

9+
K8S_MK_INCLUDE_MARKER="k8s.mk"
10+
911
BINARY_YQ = $(UTILITY_BIN_PATH)/yq
1012
BINARY_YQ_4_VERSION?=v4.40.3
1113
BINARY_HELM = $(UTILITY_BIN_PATH)/helm
@@ -31,7 +33,7 @@ RUNTIME_ENV?=local
3133
$(info RUNTIME_ENV=$(RUNTIME_ENV))
3234

3335
# The host and port of the local cluster
34-
K3S_CLUSTER_FQDN?=k3ces.local
36+
K3S_CLUSTER_FQDN?=k3ces.localdomain
3537
K3S_LOCAL_REGISTRY_PORT?=30099
3638

3739
# The URL of the container-registry to use. Defaults to the registry of the local-cluster.
@@ -50,12 +52,12 @@ $(info CES_REGISTRY_HOST=$(CES_REGISTRY_HOST))
5052

5153
# The name of the kube-context to use for applying resources.
5254
# If KUBE_CONTEXT_NAME is empty and RUNTIME_ENV is "remote" the currently configured kube-context is used.
53-
# If KUBE_CONTEXT_NAME is empty and RUNTIME_ENV is not "remote" the "k3ces.local" is used as kube-context.
55+
# If KUBE_CONTEXT_NAME is empty and RUNTIME_ENV is not "remote" the "k3ces.localdomain" is used as kube-context.
5456
ifeq (${KUBE_CONTEXT_NAME}, )
5557
ifeq (${RUNTIME_ENV}, remote)
5658
KUBE_CONTEXT_NAME = $(shell kubectl config current-context)
5759
else
58-
KUBE_CONTEXT_NAME = k3ces.local
60+
KUBE_CONTEXT_NAME = k3ces.localdomain
5961
endif
6062
endif
6163
$(info KUBE_CONTEXT_NAME=$(KUBE_CONTEXT_NAME))

build/make/test-common.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
TEST_COMMON_MK_INCLUDE_MARKER="test-common.mk"
2+
13
GO_JUNIT_REPORT=$(UTILITY_BIN_PATH)/go-junit-report
24
GO_JUNIT_REPORT_VERSION=v2.1.0
35

build/make/test-integration.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# this also works with older main Makefiles which include all test*.mk files on top-level.
2+
ifeq (${TEST_COMMON_MK_INCLUDE_MARKER}, )
3+
include ${BUILD_DIR}/make/test-common.mk
4+
endif
5+
16
##@ Integration testing
27

38
INTEGRATION_TEST_DIR=$(TARGET_DIR)/integration-tests

build/make/test-unit.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
ifeq (${TEST_COMMON_MK_INCLUDE_MARKER}, )
2+
include ${BUILD_DIR}/make/test-common.mk
3+
endif
4+
15
##@ Unit testing
26

37
UNIT_TEST_DIR=$(TARGET_DIR)/unit-tests

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ require (
77
github.com/cloudogu/k8s-registry-lib v1.0.0
88
github.com/go-logr/logr v1.4.3
99
github.com/stretchr/testify v1.11.1
10-
go.uber.org/zap v1.27.0
11-
k8s.io/api v0.35.2
12-
k8s.io/apimachinery v0.35.2
13-
k8s.io/client-go v0.35.2
14-
sigs.k8s.io/controller-runtime v0.23.1
10+
go.uber.org/zap v1.27.1
11+
k8s.io/api v0.35.3
12+
k8s.io/apimachinery v0.35.3
13+
k8s.io/client-go v0.35.3
14+
sigs.k8s.io/controller-runtime v0.23.3
1515
)
1616

1717
require (

0 commit comments

Comments
 (0)