package io.wdd.func.auto.beans;

/**
 * 参数固定顺序为 A1C2IP SUPREME N1C2IP A1C1IP A1C1JS M2D2IP KIMMY
 */
public enum AppFunctionEnum {

    DEPLOY_CHRONY_SERVER(
            "DEPLOY_CHRONY_SERVER",
            "使用docker部署chrony server"
    ),


    DEPLOY_RKE(
            "DEPLOY_RKE",
            "部署rke的组件，准备环境"
    ),

    DEPLOY_K8S_NAMESPACE(
            "DEPLOY_K8S_NAMESPACE",
            "部署k8s的业务应用的namespace, 参数A1C2IP, SUPREME"
    ),

    DEPLOY_K8S_DASHBOARD(
            "DEPLOY_K8S_DASHBOARD",
            "部署kubernetes dashboard, 参数A1C2IP"
    ),

    DEPLOY_MINIO(
            "DEPLOY_MINIO",
            "部署MINIO, 参数A1C2IP"
    ),

    DEPLOY_NFS(
            "DEPLOY_NFS",
            "部署nfs+storage_class, 参数为A1C2IP, SUPREME, N1C2IP"
    ),

    DEPLOY_TEST_NFS(
            "DEPLOY_TEST_NFS",
            "部署NFS的测试Pod, 参数为A1C2IP, SUPREME, N1C2IP"
    ),

    DEPLOY_STORAGE_CLASS(
            "DEPLOY_STORAGE_CLASS",
            "无"
    ),

    DEPLOY_K8S_PVC(
            "DEPLOY_K8S_PVC",
            "部署所需要的pvc后端存储，参数 A1C2IP, SUPREME"
    ),

    DEPLOY_K8S_MYSQL(
            "DEPLOY_K8S_MYSQL",
            "部署k8s mysql, 参数 A1C2IP, SUPREME"
    ),

//    LOAD_MYSQL_INIT_SCRIPT(
//            "LOAD_MYSQL_INIT_SCRIPT",
//            "加载MySQl的初始化脚本，废弃，手动！"
//    ),

    DEPLOY_K8S_REDIS(
            "DEPLOY_K8S_REDIS",
            "部署k8s redis,  参数 A1C2IP, SUPREME "
    ),

    DEPLOY_K8S_MIDDLEWARES(
            "DEPLOY_K8S_MIDDLEWARES",
            "部署k8s mongo nacos emqxs,  参数 A1C2IP, SUPREME "
    ),

    INIT_MINIO(
            "INIT_MINIO",
            "初始化MINIO， 参数 A1C2IP, SUPREME, M2D2IP"
    ),

    DEPLOY_K8S_SRS(
            "DEPLOY_K8S_SRS",
            ""
    ),

    DEPLOY_GDR(
            "DEPLOY_GDR",
            ""
    ),

    MODIFY_NACOS(
            "MODIFY_NACOS",
            "修改Nacos，手动！"
    ),

    DEPLOY_INGRESS(
            "DEPLOY_INGRESS",
            "部署Ingress服务"

    ),

    DEPLOY_FRONTEND(
            "DEPLOY_FRONTEND",
            "部署前端服务"

    ),

    DEPLOY_BACKEND(
            "DEPLOY_BACKEND",
            "部署后端服务"

    );

    String appOpName;

    String desc;


    AppFunctionEnum(String appOpName, String desc) {
        this.appOpName = appOpName;
        this.desc = desc;
    }

    public String getAppOpname() {
        return appOpName;
    }

    public String getDesc() {
        return desc;
    }

}
