代码拉取完成,页面将自动刷新
package monitoring
import (
"github.com/rancher/rancher/pkg/monitoring"
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
}
func (ah *appHandler) withdrawApp(clusterID, appName, appTargetNamespace string) error {
return monitoring.WithdrawApp(ah.cattleAppClient, monitoring.OwnedAppListOptions(clusterID, appName, appTargetNamespace))
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。