Skip to content

Commit 64e72c7

Browse files
committed
controlplane: bump ControllerVersion to v0.4.5; update VERSION to 0.4.5 and CHANGELOG for v0.4.5
1 parent 625d505 commit 64e72c7

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v0.4.5] - 2025-11-04
9+
10+
### Changed
11+
- Bumped CAPTControlPlane controller startup version to `v0.4.5` for log visibility and release metadata alignment.
12+
13+
### Notes
14+
- No functional changes from v0.4.4; this is a metadata/version alignment release.
15+
816
## [v0.4.4] - 2025-11-04
917

1018
### Changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = 0.4.4
1+
VERSION = 0.4.5

internal/controller/controlplane/setup.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@ package controlplane
22

33
import (
44
controlplanev1beta1 "github.com/appthrust/capt/api/controlplane/v1beta1"
5+
infrastructurev1beta1 "github.com/appthrust/capt/api/v1beta1"
6+
corev1 "k8s.io/api/core/v1"
57
ctrl "sigs.k8s.io/controller-runtime"
68
"sigs.k8s.io/controller-runtime/pkg/builder"
79
"sigs.k8s.io/controller-runtime/pkg/predicate"
810
"sigs.k8s.io/controller-runtime/pkg/log"
911
)
1012

1113
// ControllerVersion indicates the running version of the CAPTControlPlane controller
12-
const ControllerVersion = "v0.4.3"
14+
const ControllerVersion = "v0.4.5"
1315

1416
// SetupWithManager sets up the controller with the Manager.
1517
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error {
1618
// Log controller version at startup
1719
log.Log.WithName("captcontrolplane").Info("Starting CAPTControlPlane controller", "version", ControllerVersion)
18-
return ctrl.NewControllerManagedBy(mgr).
19-
For(&controlplanev1beta1.CAPTControlPlane{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).
20-
WithEventFilter(predicate.GenerationChangedPredicate{}).
21-
Complete(r)
20+
return ctrl.NewControllerManagedBy(mgr).
21+
// For: 世代変更時に再キュー(Spec変更)
22+
For(&controlplanev1beta1.CAPTControlPlane{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).
23+
// Owns: 子リソース(WTA/kubeconfig Secret)イベントで再キュー
24+
Owns(&infrastructurev1beta1.WorkspaceTemplateApply{}).
25+
Owns(&corev1.Secret{}).
26+
Complete(r)
2227
}

0 commit comments

Comments
 (0)