37 Star 407 Fork 74

GVPrancher/rancher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
appHandler.go 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
package monitoring
import (
"github.com/rancher/rancher/pkg/monitoring"
"github.com/rancher/rancher/pkg/systemaccount"
appsv1beta2 "github.com/rancher/types/apis/apps/v1beta2"
corev1 "github.com/rancher/types/apis/core/v1"
mgmtv3 "github.com/rancher/types/apis/management.cattle.io/v3"
projectv3 "github.com/rancher/types/apis/project.cattle.io/v3"
)
type appHandler struct {
cattleAppClient projectv3.AppInterface
cattleSecretClient corev1.SecretInterface
cattleTemplateVersionClient mgmtv3.CatalogTemplateVersionInterface
cattleProjectClient mgmtv3.ProjectInterface
cattleClusterGraphClient mgmtv3.ClusterMonitorGraphInterface
cattleProjectGraphClient mgmtv3.ProjectMonitorGraphInterface
cattleMonitorMetricClient mgmtv3.MonitorMetricInterface
agentDeploymentClient appsv1beta2.DeploymentInterface
agentStatefulSetClient appsv1beta2.StatefulSetInterface
agentDaemonSetClient appsv1beta2.DaemonSetInterface
agentServiceAccountClient corev1.ServiceAccountInterface
agentSecretClient corev1.SecretInterface
agentNodeClient corev1.NodeInterface
agentNamespaceClient corev1.NamespaceInterface
systemAccountManager *systemaccount.Manager
}
func (ah *appHandler) withdrawApp(clusterID, appName, appTargetNamespace string) error {
return monitoring.WithdrawApp(ah.cattleAppClient, monitoring.OwnedAppListOptions(clusterID, appName, appTargetNamespace))
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rancher/rancher.git
git@gitee.com:rancher/rancher.git
rancher
rancher
rancher
v2.2.11-rc4

搜索帮助