Skip to content

Commit 40a3ec1

Browse files
authored
[installer] Even more rigorous migration (#1498)
## What this PR does Due to a deficiency of cozypkg (--with-source reconciles the HelmChart, but not the HelmRepository), we have to use workarounds to bulletproof the latest migration, by applying directly from the assets server. ### Release note ```release-note [installer] Run 20th migration using helm charts directly from the assets server instead of relying on cozypkg to reconcile its resources properly. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Mutating webhook now excludes both the default and kube-system namespaces to avoid unintended mutations of core workloads. - **Chores** - Hardened migration sequence: ordered release removals with waits, switched to packaged apply steps with short pauses, added readiness checks, removed obsolete webhook upgrade/reconciliation, and standardized RFC3339(nano) migration stamping. - Removed bundled resource-definition CRD and adjusted CRD generation/output handling. - Installer image now includes Helm as a runtime/build-time dependency. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 13dccea + 43c222d commit 40a3ec1

5 files changed

Lines changed: 31 additions & 688 deletions

File tree

‎hack/update-codegen.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ kube::codegen::gen_openapi \
5454

5555
$CONTROLLER_GEN object:headerFile="hack/boilerplate.go.txt" paths="./api/..."
5656
$CONTROLLER_GEN rbac:roleName=manager-role crd paths="./api/..." output:crd:artifacts:config=packages/system/cozystack-controller/crds
57+
mv packages/system/cozystack-controller/crds/cozystack.io_cozystackresourcedefinitions.yaml \
58+
packages/system/cozystack-resource-definition-crd/definition/cozystack.io_cozystackresourcedefinitions.yaml

‎packages/core/installer/images/cozystack/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ FROM alpine:3.22
3434

3535
RUN wget -O- https://github.com/cozystack/cozypkg/raw/refs/heads/main/hack/install.sh | sh -s -- -v 1.2.0
3636

37-
RUN apk add --no-cache make kubectl coreutils git jq
37+
RUN apk add --no-cache make kubectl helm coreutils git jq
3838

3939
COPY --from=builder /src/scripts /cozystack/scripts
4040
COPY --from=builder /src/packages/core /cozystack/packages/core

0 commit comments

Comments
 (0)