Closed daviderli614 closed 2 months ago
The pull request includes updates to version numbers in the Makefile
, modifications to build constraints in zz_generated.deepcopy.go
, and enhancements to metrics configuration in command.go
. Significant changes are made to the Custom Resource Definition (CRD) for greptimedbstandalones
, introducing new fields for resource management. The RBAC role configuration sees a minor adjustment, while the UpdateStatus
function signatures in two controllers are refined. Additionally, the go.mod
file reflects multiple dependency upgrades, including a Go version change from 1.18 to 1.21.
File Path | Change Summary |
---|---|
Makefile |
Updated KUSTOMIZE_VERSION from v4.5.3 to v5.3.0 and CONTROLLER_TOOLS_VERSION from v0.9.0 to v0.14.0 . |
apis/v1alpha1/zz_generated.deepcopy.go |
Removed build constraint // +build !ignore_autogenerated . |
cmd/operator/app/command.go |
Modified metrics initialization to use Metrics: metricsserver.Options{ BindAddress: o.MetricsAddr } . |
config/crd/resources/greptime.io_greptimedbstandalones.yaml |
Added resizePolicy , restartPolicy , and expanded claims field with new specifications. |
config/rbac/role.yaml |
Removed creationTimestamp from ClusterRole metadata. |
controllers/greptimedbcluster/deployers/common.go |
Changed UpdateStatus function's last parameter type from client.UpdateOption to client.SubResourceUpdateOption . |
controllers/greptimedbstandalone/controller.go |
Changed UpdateStatus function's last parameter type from client.UpdateOption to client.SubResourceUpdateOption . |
go.mod |
Updated Go version from 1.18 to 1.21 and upgraded multiple dependencies, including significant libraries and Kubernetes-related packages. |
cmd/operator/main.go |
Modified random number generation approach to use a custom random source: rand.New(rand.NewSource(time.Now().UnixNano())) . |
sequenceDiagram
participant User
participant Operator
participant MetricsServer
User->>Operator: Initialize Operator Command
Operator->>MetricsServer: Configure Metrics
MetricsServer-->>Operator: Metrics Configured
Operator-->>User: Operator Ready
š° "In the meadow where we play,
New versions hop in bright array.
Metrics dance and CRDs grow,
With each change, our garden glows!
Hooray for updates, one and all,
Together we shall stand tall!" š¼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
greptimedbstandalones
with new fields for better resource management, includingresizePolicy
andrestartPolicy
.Improvements
Bug Fixes
Refactor
Enhancements