Skip to content

Commit

Permalink
add release v0.8.4 (#1338)
Browse files Browse the repository at this point in the history
* if the execution machine is not in the cluster, rootfs does not exist. Therefore, change the plugin load directory to mountRootfs.

* add release v0.8.4
  • Loading branch information
bxy4543 authored Apr 26, 2022
1 parent b8b810a commit f1b846d
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ Install a kubernetes cluster

```shell script
#install Sealer binaries
wget https://github.com/alibaba/sealer/releases/download/v0.8.3/sealer-v0.8.3-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.3-linux-amd64.tar.gz && mv sealer /usr/bin
wget https://github.com/alibaba/sealer/releases/download/v0.8.4/sealer-v0.8.4-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.4-linux-amd64.tar.gz && mv sealer /usr/bin
#run a kubernetes cluster
sealer run kubernetes:v1.19.8 --masters 192.168.0.2 --passwd xxx
```
Expand Down
4 changes: 2 additions & 2 deletions docs/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ sealer可以通过一条命令安装一个kubernetes集群,仅需要提供IP

```shell script
# 安装sealer
wget https://github.com/alibaba/sealer/releases/download/v0.8.3/sealer-v0.8.3-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.3-linux-amd64.tar.gz && mv sealer /usr/bin
wget https://github.com/alibaba/sealer/releases/download/v0.8.4/sealer-v0.8.4-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.4-linux-amd64.tar.gz && mv sealer /usr/bin
# 安装kubernetes集群
sealer run kubernetes:v1.19.8 --masters 192.168.0.2,192.168.0.3,192.168.0.4 --nodes 192.168.0.5,192.168.0.6,192.168.0.7 --passwd xxx
```
Expand Down
2 changes: 1 addition & 1 deletion docs/site/src/docs/advanced/arm-cloudimage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Download sealer for example download v0.5.0:

```shell script
wget https://github.com/alibaba/sealer/releases/download/v0.8.2/sealer-v0.8.3-linux-arm64.tar.gz
wget https://github.com/alibaba/sealer/releases/download/v0.8.2/sealer-v0.8.4-linux-arm64.tar.gz
```

## Run a cluster on ARM platform
Expand Down
15 changes: 8 additions & 7 deletions docs/site/src/docs/getting-started/plugin.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Plugin Usage
# Using Plugin

## Plugin type list

Expand Down Expand Up @@ -36,6 +36,7 @@ metadata:
spec:
type: SHELL
action: PostInstall # PreInit PreInstall PostInstall
'on': master #on field type needs to be enclosed in quotes
data: |
kubectl get nodes
```
Expand All @@ -50,13 +51,13 @@ action : [PreInit| PreInstall| PostInstall] # Specify phases to execute the shel
after installing the cluster phase | action: PostInstall
after clean cluster phase | action: PostClean
combined use phase | action: PreInit|PreJoin
on : #Specifies the machine to execute the command
'on' : #Specifies the machine to execute the command
If null, it is executed on all nodes by default
on all master nodes | on: master
on all work nodes | on: node
on the specified IP address | on: 192.168.56.113,192.168.56.114,192.168.56.115,192.168.56.116
on a machine with continuous IP | on: 192.168.56.113-192.168.56.116
on the specified label node (action must be set to PostInstall) | on: node-role.kubernetes.io/master=
on all master nodes | 'on': master
on all work nodes | 'on': node
on the specified IP address | 'on': 192.168.56.113,192.168.56.114,192.168.56.115,192.168.56.116
on a machine with continuous IP | 'on': 192.168.56.113-192.168.56.116
on the specified label node (action must be set to PostInstall) | 'on': node-role.kubernetes.io/master=
data : #Specifies the shell command to execute
```
Expand Down
4 changes: 2 additions & 2 deletions docs/site/src/docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

```shell script
# install Sealer binaries
wget https://github.com/alibaba/sealer/releases/download/v0.8.3/sealer-v0.8.3-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.3-linux-amd64.tar.gz && mv sealer /usr/bin
wget https://github.com/alibaba/sealer/releases/download/v0.8.4/sealer-v0.8.4-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.4-linux-amd64.tar.gz && mv sealer /usr/bin
# run a kubernetes cluster
sealer run kubernetes:v1.19.8 \
--masters 192.168.0.2,192.168.0.3,192.168.0.4 \
Expand Down
4 changes: 2 additions & 2 deletions docs/site/src/zh/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

```shell script
# 下载和安装sealer二进制
wget https://github.com/alibaba/sealer/releases/download/v0.8.3/sealer-v0.8.3-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.3-linux-amd64.tar.gz && mv sealer /usr/bin
wget https://github.com/alibaba/sealer/releases/download/v0.8.4/sealer-v0.8.4-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.4-linux-amd64.tar.gz && mv sealer /usr/bin
# 运行一个六节点的kubernetes集群
sealer run kubernetes:v1.19.8 \
--masters 192.168.0.2,192.168.0.3,192.168.0.4 \
Expand Down
4 changes: 2 additions & 2 deletions note.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ echo "
echo "
\`\`\`sh
# Download and install sealer. Sealer is a binary tool of golang. You can download and unzip it directly to the bin directory, and the release page can also be downloaded
$ wget -c https://sealer.oss-cn-beijing.aliyuncs.com/sealer-latest.tar.gz && \\
tar -xvf sealer-latest.tar.gz -C /usr/bin
$ wget -c https://sealer.oss-cn-beijing.aliyuncs.com/sealers/sealer-v${VERSION}-linux-amd64.tar.gz && \\
tar -xvf sealer-v${VERSION}-linux-amd64.tar.gz -C /usr/bin
\`\`\`
" >> release_note.md
echo "### [amd64 Download address]" >> release_note.md
Expand Down
10 changes: 6 additions & 4 deletions pkg/plugin/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"path/filepath"
"plugin"

"github.com/alibaba/sealer/utils/platform"

"github.com/alibaba/sealer/common"
"github.com/alibaba/sealer/logger"
v1 "github.com/alibaba/sealer/types/api/v1"
Expand Down Expand Up @@ -56,10 +58,10 @@ func NewPlugins(cluster *v2.Cluster) Plugins {
}
}

// Load plugin configs and shared object(.so) file from $rootfs/plugins dir.
// Load plugin configs and shared object(.so) file from $mountRootfs/plugins dir.
func (c *PluginsProcessor) Load() error {
c.Plugins = nil
path := common.DefaultTheClusterRootfsPluginDir(c.Cluster.Name)
path := filepath.Join(platform.DefaultMountCloudImageDir(c.Cluster.Name), "plugins")
_, err := os.Stat(path)
if os.IsNotExist(err) {
return nil
Expand Down Expand Up @@ -164,8 +166,8 @@ func (c *PluginsProcessor) writeFiles() error {
if !utils.YamlMatcher(name) {
name = fmt.Sprintf("%s.yaml", name)
}

err := utils.MarshalYamlToFile(filepath.Join(common.DefaultTheClusterRootfsPluginDir(c.Cluster.Name), name), config)
//write to mountRootfs/plugins dir
err := utils.MarshalYamlToFile(filepath.Join(platform.DefaultMountCloudImageDir(c.Cluster.Name), "plugins", name), config)
if err != nil {
return fmt.Errorf("write plugin metadata fileed %v", err)
}
Expand Down
8 changes: 4 additions & 4 deletions release_note.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# release note

## v0.8.3
## v0.8.4

*🚀 bugfix*:

- [x] [fix umount rootfs failed](https://github.com/alibaba/sealer/pull/1321)
- [x] [support inspect image by name](https://github.com/alibaba/sealer/pull/1320)
- [x] [fix run config and run plugin nil point panic](https://github.com/alibaba/sealer/pull/1317)
- [x] dump config if not exist; not to send registry if not exist
- [x] [bugfix: support copy dest with file name](https://github.com/alibaba/sealer/pull/1328)
- [x] [set normalized image name as manifestslist key](https://github.com/alibaba/sealer/pull/1327)
4 changes: 2 additions & 2 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ To install Sealer and prepare the test environment:

```console
#install Sealer binaries
wget https://github.com/alibaba/sealer/releases/download/v0.8.3/sealer-v0.8.3-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.3-linux-amd64.tar.gz && mv sealer /usr/bin
wget https://github.com/alibaba/sealer/releases/download/v0.8.4/sealer-v0.8.4-linux-amd64.tar.gz && \
tar zxvf sealer-v0.8.4-linux-amd64.tar.gz && mv sealer /usr/bin

#prepare test environment
export ACCESSKEYID={your AK}
Expand Down

0 comments on commit f1b846d

Please sign in to comment.