Skip to content

Commit

Permalink
Merge pull request #19 from polardb/release/v1.4.1
Browse files Browse the repository at this point in the history
Release v1.4.1
  • Loading branch information
dingfeng authored Apr 12, 2023
2 parents a72ad55 + e1d0910 commit 9050ec5
Show file tree
Hide file tree
Showing 56 changed files with 1,879 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .github/config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ clusterDefaults:
version: latest
images:
galaxysql: pxc-registry.cn-shanghai.cr.aliyuncs.com/polardbx/polardbx-sql
galaxyengine: pxc-registry.cn-shanghai.cr.aliyuncs.com/polardbx/polardbx-engine
galaxyengine: pxc-registry.cn-shanghai.cr.aliyuncs.com/polardbx/polardbx-engine-2.0
galaxycdc: pxc-registry.cn-shanghai.cr.aliyuncs.com/polardbx/polardbx-cdc
11 changes: 11 additions & 0 deletions CHANGELOG/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 2023-04-12

Release v1.4.1

+ Enhancement & New Features
+ Support PolarDB-X Engine 2.0.0
+ Remove single download proxy for consensus logs in point-in-time recovery(PITR)
+ Bug Fix
+ Fix readonly pxc when shareGms is `true`
+ Fix Compute Nodes metadata inconsistency when upgrading frequently

## 2023-03-23

Release v1.4.0
Expand Down
10 changes: 9 additions & 1 deletion api/v1/polardbx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import (
)

type CNStaticConfig struct {
AttendHtap bool `json:"AttendHtap,omitempty"`
AttendHtap bool `json:"AttendHtap,omitempty"`
// +kubebuilder:default=true
EnableCoroutine bool `json:"EnableCoroutine,omitempty"`
EnableReplicaRead bool `json:"EnableReplicaRead,omitempty"`
EnableJvmRemoteDebug bool `json:"EnableJvmRemoteDebug,omitempty"`
Expand Down Expand Up @@ -58,6 +59,10 @@ type CDCConfig struct {
Envs map[string]intstr.IntOrString `json:"envs,omitempty"`
}

type ColumnarConfig struct {
Envs map[string]intstr.IntOrString `json:"envs,omitempty"`
}

type Config struct {
// CN config.
CN CNConfig `json:"cn,omitempty"`
Expand All @@ -67,4 +72,7 @@ type Config struct {

// CDC config
CDC CDCConfig `json:"cdc,omitempty"`

// Columnar config
Columnar ColumnarConfig `json:"columnar,omitempty"`
}
5 changes: 5 additions & 0 deletions api/v1/polardbx/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ type ReplicaStatusForPrint struct {
DN string `json:"dn,omitempty"`
// CDC status, e.g. 1/2 or - when CDC nodes not requested.
CDC string `json:"cdc,omitempty"`
// Columnar status, e.g. 1/2 or - when Columnar nodes not requested.
Columnar string `json:"columnar,omitempty"`
}

// StatusForPrint represents the overall printable status of the cluster.
Expand Down Expand Up @@ -151,6 +153,9 @@ type ClusterReplicasStatus struct {

// CDC defines the replica status for CDC.
CDC *ReplicasStatus `json:"cdc,omitempty"`

// Columnar defines the replica status for CDC.
Columnar *ReplicasStatus `json:"columnar,omitempty"`
}

// PitrStatus represents the status ot pitr restore
Expand Down
44 changes: 40 additions & 4 deletions api/v1/polardbx/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ type XStoreTopologyRule struct {
}

type TopologyRuleComponents struct {
CN []StatelessTopologyRuleItem `json:"cn,omitempty"`
CDC []StatelessTopologyRuleItem `json:"cdc,omitempty"`
GMS *XStoreTopologyRule `json:"gms,omitempty"`
DN *XStoreTopologyRule `json:"dn,omitempty"`
CN []StatelessTopologyRuleItem `json:"cn,omitempty"`
CDC []StatelessTopologyRuleItem `json:"cdc,omitempty"`
Columnar []StatelessTopologyRuleItem `json:"columnar,omitempty"`
GMS *XStoreTopologyRule `json:"gms,omitempty"`
DN *XStoreTopologyRule `json:"dn,omitempty"`
}

type TopologyRules struct {
Expand Down Expand Up @@ -157,6 +158,28 @@ type CDCTemplate struct {
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

type ColumnarTemplate struct {
// Image for Columnar. Should be replaced by default value if not present.
// +optional
Image string `json:"image,omitempty"`

// ImagePullPolicy describes a policy for if/when to pull a container image (especially
// for the engine container).
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`

// ImagePullSecrets represents the secrets for pulling private images.
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

// HostNetwork mode.
// +optional
HostNetwork bool `json:"hostNetwork,omitempty"`

// +kubebuilder:default={limits: {cpu: 4, memory: "8Gi"}}

// Resources. Default is limits of 4 cpu and 8Gi memory.
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

type TopologyNodeGMS struct {
// Template of GMS xstore. If not provided, the operator will use
// the template for DN as template for GMS.
Expand Down Expand Up @@ -200,6 +223,17 @@ type TopologyNodeCDC struct {
Template CDCTemplate `json:"template,omitempty"`
}

type TopologyNodeColumnar struct {
// +kubebuilder:default=2
// +kubebuilder:validation:Minimum=0

Replicas int32 `json:"replicas,omitempty"`

// +kubebuilder:default={resources: {limits: {cpu: 4, memory: "8Gi"}}}

Template ColumnarTemplate `json:"template,omitempty"`
}

type TopologyNodes struct {
GMS TopologyNodeGMS `json:"gms,omitempty"`

Expand All @@ -210,6 +244,8 @@ type TopologyNodes struct {
DN TopologyNodeDN `json:"dn,omitempty"`

CDC *TopologyNodeCDC `json:"cdc,omitempty"`

Columnar *TopologyNodeColumnar `json:"columnar,omitempty"`
}

type Topology struct {
Expand Down
77 changes: 77 additions & 0 deletions api/v1/polardbx/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1/polardbxcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ type PolarDBXClusterStatus struct {
// +kubebuilder:printcolumn:name="CN",type=string,JSONPath=`.status.statusForPrint.replicaStatus.cn`
// +kubebuilder:printcolumn:name="DN",type=string,JSONPath=`.status.statusForPrint.replicaStatus.dn`
// +kubebuilder:printcolumn:name="CDC",type=string,JSONPath=`.status.statusForPrint.replicaStatus.cdc`
// +kubebuilder:printcolumn:name="COLUMNAR",type=string,JSONPath=`.status.statusForPrint.replicaStatus.columnar`
// +kubebuilder:printcolumn:name="PHASE",type=string,JSONPath=`.status.phase`
// +kubebuilder:printcolumn:name="DISK",type=string,JSONPath=`.status.statusForPrint.storageSize`
// +kubebuilder:printcolumn:name="STAGE",type=string,priority=1,JSONPath=`.status.stage`
Expand Down
5 changes: 5 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion build/images/xstore-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ ADD third-party third-party
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -tags polardbx -o polardbx-binlog cmd/polardbx-binlog/main.go
# Build filestream tools
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -o polardbx-filestream-client cmd/polardbx-filestream-cli/main.go
# Build polardbx-job
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -tags polardbx -o polardbx-job cmd/polardbx-job/main.go


# Build the image with scripts
FROM polardbx/xstore-tools-base:v1.3.0
FROM polardbx/xstore-tools-base:v1.4.1

ARG VERSION=test

Expand All @@ -77,6 +79,7 @@ COPY --from=builder /tools/xstore/current/__pycache__ __pycache__
COPY --from=gobuilder /workspace/polardbx-binlog bb
RUN mkdir -p /tools/xstore/current/bin
COPY --from=gobuilder /workspace/polardbx-filestream-client /tools/xstore/current/bin/
COPY --from=gobuilder /workspace/polardbx-job /tools/xstore/current/bin/

# Copy all scripts
RUN ln -s cli.py xsl && chmod +x xsl
Expand Down
4 changes: 2 additions & 2 deletions charts/polardbx-logcollector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: polardbx-logcollector
description: Helm chart of polardbx-operator logcollector plugin
type: application
version: 1.4.0
appVersion: v1.4.0
version: 1.4.1
appVersion: v1.4.1
keywords:
- polardb-x
- operator
Expand Down
4 changes: 2 additions & 2 deletions charts/polardbx-monitor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: polardbx-monitor
description: Helm chart of polardbx-operator monitor plugin
type: application
version: 1.4.0
appVersion: v1.4.0
version: 1.4.1
appVersion: v1.4.1
keywords:
- polardb-x
- operator
Expand Down
4 changes: 2 additions & 2 deletions charts/polardbx-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: polardbx-operator
description: Helm chart of polardbx-operator
type: application
version: 1.4.0
appVersion: v1.4.0
version: 1.4.1
appVersion: v1.4.1
keywords:
- polardb-x
- operator
Expand Down
Loading

0 comments on commit 9050ec5

Please sign in to comment.