mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
【修改】k8s 配置
This commit is contained in:
@@ -3,6 +3,7 @@ package statefulset
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"pandax/base/global"
|
||||
|
||||
"go.uber.org/zap"
|
||||
apps "k8s.io/api/apps/v1"
|
||||
@@ -226,10 +227,10 @@ func ScaleStatefulSet(client *kubernetes.Clientset, ns string, name string, scal
|
||||
// GetStatusInfo is used to get the status information from the *apps.StatefulSetStatus
|
||||
func GetStatusInfo(statefulSetStatus *apps.StatefulSetStatus) StatusInfo {
|
||||
return StatusInfo{
|
||||
Replicas: statefulSetStatus.Replicas,
|
||||
Updated: statefulSetStatus.UpdatedReplicas,
|
||||
AvailableReplicas: statefulSetStatus.AvailableReplicas,
|
||||
ReadyReplicas: statefulSetStatus.ReadyReplicas,
|
||||
CurrentReplicas: statefulSetStatus.CurrentReplicas,
|
||||
Replicas: statefulSetStatus.Replicas,
|
||||
Updated: statefulSetStatus.UpdatedReplicas,
|
||||
//AvailableReplicas: statefulSetStatus.AvailableReplicas,
|
||||
ReadyReplicas: statefulSetStatus.ReadyReplicas,
|
||||
CurrentReplicas: statefulSetStatus.CurrentReplicas,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package statefulset
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"pandax/base/global"
|
||||
|
||||
apps "k8s.io/api/apps/v1"
|
||||
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@@ -10,7 +11,7 @@ import (
|
||||
k8scommon "pandax/apps/devops/services/k8s/common"
|
||||
"pandax/apps/devops/services/k8s/dataselect"
|
||||
"pandax/apps/devops/services/k8s/event"
|
||||
"pandax/apps/devops/services/pkg/k8s/service"
|
||||
"pandax/apps/devops/services/k8s/service"
|
||||
)
|
||||
|
||||
// StatefulSetDetail is a presentation layer view of Kubernetes Stateful Set resource. This means it is Stateful
|
||||
|
||||
@@ -2,6 +2,7 @@ package statefulset
|
||||
|
||||
import (
|
||||
"context"
|
||||
"pandax/base/global"
|
||||
|
||||
"go.uber.org/zap"
|
||||
apps "k8s.io/api/apps/v1"
|
||||
|
||||
Reference in New Issue
Block a user