This commit is contained in:
GLYASAI 2021-05-10 19:32:27 +08:00
parent 5d37bb0288
commit 324c038182
5 changed files with 216 additions and 169 deletions

View File

@ -36,6 +36,7 @@ type Lister struct {
StatefulSet appsv1.StatefulSetLister
Deployment appsv1.DeploymentLister
Pod corev1.PodLister
ReplicaSets appsv1.ReplicaSetLister
ConfigMap corev1.ConfigMapLister
Endpoints corev1.EndpointsLister
Nodes corev1.NodeLister

View File

@ -21,17 +21,16 @@ package store
import (
"context"
"fmt"
"github.com/goodrain/rainbond/api/util/bcode"
"github.com/goodrain/rainbond/pkg/apis/rainbond/v1alpha1"
"github.com/pkg/errors"
"os"
"sync"
"time"
"github.com/eapache/channels"
"github.com/goodrain/rainbond/api/util/bcode"
"github.com/goodrain/rainbond/cmd/worker/option"
"github.com/goodrain/rainbond/db"
"github.com/goodrain/rainbond/db/model"
"github.com/goodrain/rainbond/pkg/apis/rainbond/v1alpha1"
rainbondversioned "github.com/goodrain/rainbond/pkg/generated/clientset/versioned"
"github.com/goodrain/rainbond/pkg/generated/informers/externalversions"
"github.com/goodrain/rainbond/util/constants"
@ -42,6 +41,7 @@ import (
"github.com/goodrain/rainbond/worker/server/pb"
workerutil "github.com/goodrain/rainbond/worker/util"
"github.com/jinzhu/gorm"
"github.com/pkg/errors"
monitorv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
"github.com/prometheus-operator/prometheus-operator/pkg/client/versioned"
"github.com/sirupsen/logrus"
@ -98,6 +98,7 @@ type Storer interface {
GetAppResources(appID string) (int64, int64, error)
GetHelmApp(namespace, name string) (*v1alpha1.HelmApp, error)
ListPods(namespace string, selector labels.Selector) ([]*corev1.Pod, error)
ListReplicaSets(namespace string, selector labels.Selector) ([]*appsv1.ReplicaSet, error)
ListServices(namespace string, selector labels.Selector) ([]*corev1.Service, error)
}
@ -138,6 +139,7 @@ type appRuntimeStore struct {
cancel context.CancelFunc
informers *Informer
listers *Lister
replicaSets *Lister
appServices sync.Map
appCount int32
dbmanager db.Manager
@ -221,6 +223,7 @@ func NewStore(
store.listers.Ingress = infFactory.Extensions().V1beta1().Ingresses().Lister()
store.informers.ReplicaSet = infFactory.Apps().V1().ReplicaSets().Informer()
store.listers.ReplicaSets = infFactory.Apps().V1().ReplicaSets().Lister()
store.informers.Endpoints = infFactory.Core().V1().Endpoints().Informer()
store.listers.Endpoints = infFactory.Core().V1().Endpoints().Lister()
@ -508,8 +511,7 @@ func (a *appRuntimeStore) checkReplicasetWhetherDelete(app *v1.AppService, rs *a
//delete old version
if v1.GetReplicaSetVersion(current) > v1.GetReplicaSetVersion(rs) {
if rs.Status.Replicas == 0 && rs.Status.ReadyReplicas == 0 && rs.Status.AvailableReplicas == 0 {
if err := a.conf.KubeClient.AppsV1().ReplicaSets(rs.Namespace).Delete(context.Background(), rs.Name, metav1.DeleteOptions{});
err != nil && k8sErrors.IsNotFound(err) {
if err := a.conf.KubeClient.AppsV1().ReplicaSets(rs.Namespace).Delete(context.Background(), rs.Name, metav1.DeleteOptions{}); err != nil && k8sErrors.IsNotFound(err) {
logrus.Errorf("delete old version replicaset failure %s", err.Error())
}
}
@ -1556,6 +1558,10 @@ func (a *appRuntimeStore) ListPods(namespace string, selector labels.Selector) (
return a.listers.Pod.Pods(namespace).List(selector)
}
func (a *appRuntimeStore) ListReplicaSets(namespace string, selector labels.Selector) ([]*appsv1.ReplicaSet, error) {
return a.listers.ReplicaSets.ReplicaSets(namespace).List(selector)
}
func (a *appRuntimeStore) ListServices(namespace string, selector labels.Selector) ([]*corev1.Service, error) {
return a.listers.Service.Services(namespace).List(selector)
}

View File

@ -2088,6 +2088,7 @@ type AppService struct {
TcpPorts []int32 `protobuf:"varint,3,rep,packed,name=tcpPorts,proto3" json:"tcpPorts,omitempty"`
UdpPorts []int32 `protobuf:"varint,4,rep,packed,name=udpPorts,proto3" json:"udpPorts,omitempty"`
Pods []*AppService_Pod `protobuf:"bytes,5,rep,name=pods,proto3" json:"pods,omitempty"`
OldPods []*AppService_Pod `protobuf:"bytes,6,rep,name=oldPods,proto3" json:"oldPods,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -2153,6 +2154,13 @@ func (m *AppService) GetPods() []*AppService_Pod {
return nil
}
func (m *AppService) GetOldPods() []*AppService_Pod {
if m != nil {
return m.OldPods
}
return nil
}
type AppService_Pod struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
@ -2417,165 +2425,166 @@ func init() {
func init() { proto.RegisterFile("app_runtime_server.proto", fileDescriptor_f94cf1a886c479d6) }
var fileDescriptor_f94cf1a886c479d6 = []byte{
// 2519 bytes of a gzipped FileDescriptorProto
// 2529 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x4b, 0x73, 0x1b, 0xc7,
0x11, 0x26, 0x00, 0xe2, 0xd5, 0x20, 0x40, 0x70, 0x44, 0x52, 0x10, 0x6c, 0x3d, 0xbc, 0x91, 0x54,
0x2a, 0xc9, 0xa1, 0x25, 0xc6, 0x2a, 0x3d, 0xac, 0x38, 0x05, 0x01, 0x30, 0x85, 0x04, 0x04, 0x51,
0x0b, 0xd0, 0x29, 0x57, 0xa5, 0x0a, 0xb5, 0xc4, 0x8e, 0xa9, 0x8d, 0xf6, 0x31, 0xde, 0x07, 0x1d,
0x1c, 0x93, 0xbf, 0x90, 0x9f, 0x90, 0x83, 0x0f, 0xc9, 0x31, 0x95, 0xa3, 0xff, 0x41, 0x2a, 0x3f,
0xc5, 0x17, 0xff, 0x80, 0x54, 0xcf, 0xcc, 0x3e, 0xb1, 0x94, 0xa2, 0x54, 0x52, 0xbe, 0x6d, 0xf7,
0x74, 0x4f, 0xf7, 0xf4, 0xf4, 0xf4, 0x7c, 0x3d, 0x0b, 0x1d, 0x8d, 0x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 0x7f, 0xde, 0xbb, 0xf4, 0x3d, 0xa0, 0x1b, 0x9b, 0x29, 0x26, 0xc9, 0x6d, 0xda, 0xc5, 0x24,
0x97, 0xf6, 0xf3, 0x6b, 0x93, 0xe4, 0x76, 0xdd, 0x44, 0x3e, 0x34, 0x9a, 0xff, 0xca, 0x24, 0x9f,
0xf1, 0xe0, 0x8b, 0x8b, 0x6f, 0x1e, 0x0b, 0x99, 0x46, 0xb3, 0x1b, 0x96, 0xce, 0x82, 0xc3, 0xa5,
0x70, 0x1f, 0x33, 0x15, 0x66, 0x62, 0x23, 0x48, 0xb6, 0xbe, 0xa3, 0xe8, 0xba, 0x5f, 0xf2, 0xfd,
0xeb, 0x31, 0x96, 0x3a, 0x6f, 0x79, 0xfe, 0xbf, 0xf1, 0xee, 0x3b, 0x5e, 0xd9, 0x20, 0x8f, 0x60,
0x1b, 0x37, 0x34, 0x99, 0x03, 0x41, 0x9e, 0x12, 0xb4, 0x78, 0x3b, 0x9d, 0xfd, 0x50, 0xfb, 0x53,
0x20, 0x28, 0x91, 0x49, 0x55, 0x49, 0xa1, 0x2b, 0xeb, 0xd9, 0xce, 0x53, 0x36, 0xce, 0x2a, 0xfc,
0xf7, 0xe1, 0xcf, 0xfe, 0x19, 0x00, 0x00, 0xff, 0xff, 0x26, 0xa2, 0xd2, 0x31, 0x5a, 0x1c, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -281,6 +281,7 @@ message AppService {
repeated int32 tcpPorts=3;
repeated int32 udpPorts=4;
repeated Pod pods=5;
repeated Pod oldPods=6;
}
message AppServices {

View File

@ -34,7 +34,6 @@ import (
"github.com/goodrain/rainbond/pkg/helm"
"github.com/goodrain/rainbond/util"
etcdutil "github.com/goodrain/rainbond/util/etcd"
"github.com/goodrain/rainbond/util/k8s"
k8sutil "github.com/goodrain/rainbond/util/k8s"
"github.com/goodrain/rainbond/worker/appm/store"
"github.com/goodrain/rainbond/worker/appm/thirdparty/discovery"
@ -44,6 +43,7 @@ import (
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
appv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
@ -527,7 +527,7 @@ func (r *RuntimeServer) UpdThirdPartyEndpoint(ctx context.Context, re *pb.UpdThi
Port: int(re.Port),
IsOnline: re.IsOnline,
}
if re.IsOnline == false {
if !re.IsOnline {
r.updateCh.In() <- discovery.Event{
Type: discovery.DeleteEvent,
Obj: rbdep,
@ -690,7 +690,7 @@ func (r *RuntimeServer) convertServices(services []*corev1.Service) []*pb.AppSer
selector = selector.Add(*req)
}
var spods []*pb.AppService_Pod
var oldPods, newPods []*pb.AppService_Pod
pods, err := r.store.ListPods(svc.Namespace, selector)
if err != nil {
logrus.Warningf("parse services: %v", err)
@ -698,10 +698,21 @@ func (r *RuntimeServer) convertServices(services []*corev1.Service) []*pb.AppSer
for _, pod := range pods {
podStatus := &pb.PodStatus{}
wutil.DescribePodStatus(r.clientset, pod, podStatus, k8sutil.DefListEventsByPod)
spods = append(spods, &pb.AppService_Pod{
po := &pb.AppService_Pod{
Name: pod.Name,
Status: podStatus.TypeStr,
})
}
rss, err := r.store.ListReplicaSets(svc.Namespace, selector)
if err != nil {
logrus.Warningf("[RuntimeServer] convert services: list replica sets: %v", err)
}
if isOldPod(pod, rss) {
oldPods = append(oldPods, po)
} else {
newPods = append(newPods, po)
}
}
}
@ -715,7 +726,8 @@ func (r *RuntimeServer) convertServices(services []*corev1.Service) []*pb.AppSer
Address: address,
TcpPorts: tcpPorts,
UdpPorts: udpPorts,
Pods: spods,
OldPods: oldPods,
Pods: newPods,
})
}
return appServices
@ -755,3 +767,21 @@ func (r *RuntimeServer) ListHelmAppRelease(ctx context.Context, req *pb.AppReq)
HelmAppRelease: releases,
}, nil
}
func isOldPod(pod *corev1.Pod, rss []*appv1.ReplicaSet) bool {
if len(rss) == 0 {
return false
}
var newrs *appv1.ReplicaSet
for _, rs := range rss {
if newrs == nil {
newrs = rs
continue
}
if newrs.ObjectMeta.CreationTimestamp.Before(&rs.ObjectMeta.CreationTimestamp) {
newrs = rs
}
}
return pod.ObjectMeta.CreationTimestamp.Before(&newrs.ObjectMeta.CreationTimestamp)
}