Skip to content

Commit

Permalink
feat: cluster domain support (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Tranchitella <[email protected]>
  • Loading branch information
prometherion authored Oct 24, 2024
1 parent eb18c9d commit fa48db6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions controllers/kamajicontrolplane_controller_tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func (r *KamajiControlPlaneReconciler) createOrUpdateTenantControlPlane(ctx cont
if podsCIDR := cluster.Spec.ClusterNetwork.Pods; podsCIDR != nil && len(podsCIDR.CIDRBlocks) > 0 {
tcp.Spec.NetworkProfile.PodCIDR = podsCIDR.CIDRBlocks[0]
}
// TenantControlPlane cluster domain
tcp.Spec.NetworkProfile.ClusterDomain = cluster.Spec.ClusterNetwork.ServiceDomain
// Replicas
tcp.Spec.ControlPlane.Deployment.Replicas = kcp.Spec.Replicas
// Version
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
toolchain go1.22.1

require (
github.com/clastix/kamaji v1.0.1-0.20241006074020-7e08b9a7cede
github.com/clastix/kamaji v1.0.1-0.20241021192153-9ca69e91f9c9
github.com/onsi/ginkgo/v2 v2.20.2
github.com/onsi/gomega v1.34.2
github.com/pkg/errors v0.9.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/clastix/kamaji v1.0.1-0.20241006074020-7e08b9a7cede h1:V4dCIQ1DGfAXEv/cutBVs1Ta+j/pObc5q0vwbshiEZU=
github.com/clastix/kamaji v1.0.1-0.20241006074020-7e08b9a7cede/go.mod h1:RR+/jF13HXayXx85vif+pFFBWQLV8ks4dLj1AXTos6s=
github.com/clastix/kamaji v1.0.1-0.20241021192153-9ca69e91f9c9 h1:HAZdvF+CFYeU0WRiqqh8ScmlS2RGnh597M3N2BafIvA=
github.com/clastix/kamaji v1.0.1-0.20241021192153-9ca69e91f9c9/go.mod h1:RR+/jF13HXayXx85vif+pFFBWQLV8ks4dLj1AXTos6s=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down

0 comments on commit fa48db6

Please sign in to comment.