Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
Signed-off-by: binbin <[email protected]>
  • Loading branch information
binbin0325 authored and MandssS committed May 31, 2023
1 parent 4aae28a commit 17245e7
Show file tree
Hide file tree
Showing 67 changed files with 750 additions and 84 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test
.vagrant
releases
tmp
.idea/
.vscode/

# Architecture specific extensions/prefixes
trace.out
*.out
.DS_Store
122 changes: 90 additions & 32 deletions .idea/workspace.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONE: build clean
export AGENT_VERSION = 1.0.2
export BLADE_VERSION = 1.5.0
export AGENT_VERSION = 1.0.3
export BLADE_VERSION = 1.7.2

BLADE_SRC_ROOT=$(shell pwd)

Expand Down
4 changes: 2 additions & 2 deletions build/helm3/chaos-agent-arm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
appVersion: "1.0.2"
appVersion: "1.0.3"
description: A SaaS-based service that aims to improve the high availability of your applications.
name: chaosblade-box-agent
version: 1.0.2
version: 1.0.3
home: https://www.alibabacloud.com/products/chaos
2 changes: 1 addition & 1 deletion build/helm3/chaos-agent-arm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ controller:
images:
# chaos agent image named chaos-agent
chaos:
version: 1.0.2
version: 1.0.3
repository: chaosbladeio/chaosblade-agent-arm64
# images.chaos.pullPolicy: must be Always|IfNotPresent|Never
pullPolicy: Always
Expand Down
4 changes: 2 additions & 2 deletions build/helm3/chaos-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
appVersion: "1.0.2"
appVersion: "1.0.3"
description: A SaaS-based service that aims to improve the high availability of your applications.
name: chaosblade-box-agent
version: 1.0.2
version: 1.0.3
home: https://www.alibabacloud.com/products/chaos
2 changes: 1 addition & 1 deletion build/helm3/chaos-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ controller:
images:
# chaos agent image named chaos-agent
chaos:
version: 1.0.2
version: 1.0.3
repository: chaosbladeio/chaosblade-agent
# images.chaos.pullPolicy: must be Always|IfNotPresent|Never
pullPolicy: Always
Expand Down
16 changes: 16 additions & 0 deletions cmd/chaos_agent.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package main

import (
Expand Down
1 change: 1 addition & 0 deletions collector/kubernetes/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
1 change: 1 addition & 0 deletions collector/kubernetes/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
16 changes: 16 additions & 0 deletions collector/kubernetes/deployment.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
16 changes: 16 additions & 0 deletions collector/kubernetes/ingress.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
3 changes: 2 additions & 1 deletion collector/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down Expand Up @@ -339,7 +340,7 @@ func (mw *multiWatch) Stop() {
return
}

//common function
// common function
func getPodRestartCount(pod *v1.Pod) int32 {
count := int32(0)
for _, c := range pod.Status.ContainerStatuses {
Expand Down
1 change: 1 addition & 0 deletions collector/kubernetes/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
16 changes: 16 additions & 0 deletions collector/kubernetes/node.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
1 change: 1 addition & 0 deletions collector/kubernetes/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
1 change: 1 addition & 0 deletions collector/kubernetes/replicaset.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
1 change: 1 addition & 0 deletions collector/kubernetes/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
1 change: 1 addition & 0 deletions collector/kubernetes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
16 changes: 16 additions & 0 deletions collector/kubernetes/virtualnode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package kubernetes

import (
Expand Down
1 change: 1 addition & 0 deletions conn/asyncreport/asyncreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package asyncreport

import (
Expand Down
1 change: 1 addition & 0 deletions conn/callback/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package callback

import (
Expand Down
16 changes: 16 additions & 0 deletions conn/close/closer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package closer

import (
Expand Down
16 changes: 16 additions & 0 deletions conn/conn.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package conn

import (
Expand Down
18 changes: 17 additions & 1 deletion conn/connect/connect.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package connect

import (
Expand All @@ -24,7 +40,7 @@ func NewClientConnectHandler(transportClient *transport.TransportClient) *Client
}
}

//Connect to remote
// Connect to remote
func (cc *ClientConnectHandler) Start() error {
request := transport.NewRequest()
request.AddParam("ip", options.Opts.Ip)
Expand Down
16 changes: 16 additions & 0 deletions conn/heartbeat/heartbeat.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package heartbeat

import (
Expand Down
1 change: 1 addition & 0 deletions conn/metric/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package metric

import (
Expand Down
1 change: 1 addition & 0 deletions metricreport/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package metricreport

import (
Expand Down
16 changes: 16 additions & 0 deletions monitor/checker.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package monitor

import (
Expand Down
16 changes: 16 additions & 0 deletions monitor/monitor.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package monitor

import (
Expand Down
Loading

0 comments on commit 17245e7

Please sign in to comment.