Skip to content

Commit

Permalink
Update V4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cabbetlong committed Oct 9, 2024
1 parent 56673fe commit 7fa30df
Show file tree
Hide file tree
Showing 214 changed files with 3,465 additions and 2,835 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
*.iml
out
gen
go.sum
docs/site/public
docs/site/resources
docs/site/.hugo_build.lock
23 changes: 14 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

[Releases](https://github.com/Huawei/eSDK_K8S_Plugin/releases)

## Changes since v4.3.0
## v4.5.0

- The default synchronization speed of hyper metro pair is changed from the highest speed to the default speed determined by the storage.
- Fixed the semaphore timeout issue when a large number of PVs fail to be mounted.

## v4.4.0

- Support Kubernetes 1.30
- Support OceanStor 6.1.8
Expand All @@ -12,7 +17,7 @@
- The new feature Modify Volume allows a normal PV to be changed to a HyperMetro PV
- Create VolumeSnapshot and Clone Persistent Volume support HyperMetro PV

## Changes since v4.2.0
## v4.3.0

- Support UltraPath 31.2.1/NVMe over RoCE on Rocky Linux 8.6 X86_64
- Support OpenShift 4.14
Expand All @@ -32,7 +37,7 @@
- Support configuring requests and limits of container
- The log directory of the oceanctl tool can be configured

## Changes since v4.1.0
## v4.2.0

- Support OpenShift 4.13
- Support Centos 8.4 X86_64
Expand All @@ -42,7 +47,7 @@
- Support configuring the timeout for executing commands
- Support create volume snapshot for Hyper-Metro

## Changes since v4.0.0
## v4.1.0

**Enhancements**

Expand All @@ -52,7 +57,7 @@
- Support Kylin 7.6 x86_64
- The number of path groups aggregated by DM-multipath can be configured

## Changes since v3.2.x
## v4.0.0

**Enhancements**

Expand All @@ -66,7 +71,7 @@
- Support k8s 1.26
- Upgrade using go 1.18

## Changes since v3.1.0
## v3.2.0

**Enhancements**

Expand All @@ -79,7 +84,7 @@
- Support Ubuntu 22.04, SUSE 15 SP3
- Support EulerOS V2R10

## Changes since v3.0.0
## v3.1.0

**Enhancements**

Expand All @@ -90,7 +95,7 @@
- Support k8s 1.19 and 1.20
- Support Debian 11

## Changes since v2.2.16
## v3.0.0

**Enhancements**

Expand All @@ -105,7 +110,7 @@
- Support OceanStor V6 6.1.5
- Support OceanStor Pacific 8.1.3

## Changes since v2.2.15
## v2.2.16

**Enhancements**

Expand Down
89 changes: 0 additions & 89 deletions CI/.cloudbuild/build.yml

This file was deleted.

101 changes: 0 additions & 101 deletions CI/build.sh

This file was deleted.

50 changes: 0 additions & 50 deletions CI/conf/cmc_dependency.xml

This file was deleted.

22 changes: 17 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ PLATFORM=PLATFORM
RELEASE_VER=RELEASE_VER
# (Optional) [TRUE FALSE] Compile Binary Only, Cancel Inline Optimization
ONLY_BIN=ONLY_BIN
# (Optional) [github] Specifies the platform which to build on
BUILD_ON=BUILD_ON

export GO111MODULE=on
export GOPATH:=$(GOPATH):$(shell pwd)

ifeq (${RELEASE_VER}, RELEASE_VER)
export PACKAGE=eSDK_Huawei_Storage_Kubernetes_CSI_Plugin_V${VER}_${PLATFORM}_64
Expand All @@ -24,16 +25,26 @@ ifeq (${ONLY_BIN}, TRUE)
all:PREPARE BUILD PACK
# Disable inline optimization
flag = -gcflags "all=-N -l"
binary_flag = -gcflags "all=-N -l"
else
flag = -ldflags="-s" -buildmode=pie
flag = -ldflags="-s -linkmode 'external' -extldflags '-Wl,-z,now'" -buildmode=pie
binary_flag = -ldflags="-s" -buildmode=pie
all:PREPARE BUILD COPY_FILE PACK
endif

# Platform [X86, ARM]
ifeq (${PLATFORM}, X86)
env = CGO_ENABLED=0 GOOS=linux GOARCH=amd64
env = CGO_CFLAGS="-fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2" GOOS=linux GOARCH=amd64
binary_env = CGO_ENABLED=0 GOOS=linux GOARCH=amd64
else
env = CGO_ENABLED=0 GOOS=linux GOARCH=arm64
env = CGO_CFLAGS="-fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2" GOOS=linux GOARCH=arm64
binary_env = CGO_ENABLED=0 GOOS=linux GOARCH=arm64
endif

# Build_ON [github]
ifeq ($(BUILD_ON), github)
flag = -ldflags="-s -bindnow" -buildmode=pie
env = $(binary_env)
endif

PREPARE:
Expand All @@ -42,11 +53,12 @@ PREPARE:

BUILD:
# usage: [env] go build [-o output] [flags] packages
go mod tidy
${env} go build -o ./${PACKAGE}/bin/huawei-csi ${flag} ./csi
${env} go build -o ./${PACKAGE}/bin/storage-backend-controller ${flag} ./cmd/storage-backend-controller
${env} go build -o ./${PACKAGE}/bin/storage-backend-sidecar ${flag} ./cmd/storage-backend-sidecar
${env} go build -o ./${PACKAGE}/bin/huawei-csi-extender ${flag} ./cmd/huawei-csi-extender
${env} go build -o ./${PACKAGE}/bin/oceanctl ${flag} ./cli
${binary_env} go build -o ./${PACKAGE}/bin/oceanctl ${binary_flag} ./cli

COPY_FILE:
mkdir -p ./${PACKAGE}/examples
Expand Down
Loading

0 comments on commit 7fa30df

Please sign in to comment.