@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
100 lines • 6.85 kB
TypeScript
import { rolloutV2 } from "../deploy/deploy-rollout";
import { createImagePullSecretsInNamespace } from "./image-pull-secret";
import { currentCluster, currentContext, getKubeConfig, getKubeContextByCluster, getKubeContextByClusterSlug } from "./kube-config";
import { previewPrerelease, rollout } from "./kube-deploy";
import { createNamespace, deleteDeploy, deleteDeploymentsByFilter, deleteEnvVar, deleteEnvVarByFilter, deleteIngress, deleteIngressByFilter, deleteNamespace, deleteNamespaceByCluster, deletePersistentVolume, deletePersistentVolumeClaim, deletePersistentVolumeClaimsByFilter, deletePersistentVolumesByFilter, deletePod, deletePodsByFilter, deleteSecret, deleteSecretsByFilter, deleteService, deleteServiceByFilter, deleteStatefulSet, deleteStatefulSetsByFilter, deleteStorageClass, deleteStorageClassesByFilter, getAllDeploys, getAllIngresses, getAllNamespaces, getAllNodes, getAllPersistentVolumeClaims, getAllPersistentVolumes, getAllPods, getAllSecrets, getAllServices, getAllStatefulSets, getAllStorageClasses, getDeploy, getDeploys, getDeploysByFilter, getIngress, getIngressClasses, getIngresses, getNamespace, getPersistentVolume, getPersistentVolumeClaim, getPersistentVolumeClaims, getPersistentVolumes, getPod, getPods, getSecrets, getService, getServices, getStatefulSet, getStatefulSets, getStatefulSetsByFilter, getStorageClass, getStorageClasses, isNamespaceExisted, isSecretExisted, kubectlAnnotateDeployment, kubectlApply, kubectlApplyContent, logPod, logPodByFilter, rollbackDeploy, rollbackDeployRevision, scaleDeploy, scaleDeployByFilter, setDeployImage, setDeployImageAll, setDeployImagePullSecretByFilter, setDeployPortAll, setEnvVar, setEnvVarByFilter } from "./kubectl";
declare const ClusterManager: {
authCluster: (cluster: import("../../entities").ICluster, options: import("./cluster-auth").ClusterAuthOptions) => Promise<import("../../entities").ICluster>;
authClusterBySlug: (clusterSlug: string, options: import("./cluster-auth").ClusterAuthOptions) => Promise<import("../../entities").ICluster>;
createImagePullSecretsInNamespace: typeof createImagePullSecretsInNamespace;
currentContext: typeof currentContext;
currentCluster: typeof currentCluster;
getNamespace: typeof getNamespace;
createNamespace: typeof createNamespace;
deleteNamespace: typeof deleteNamespace;
deleteNamespaceByCluster: typeof deleteNamespaceByCluster;
deleteSecret: typeof deleteSecret;
deleteDeploy: typeof deleteDeploy;
deleteDeploymentsByFilter: typeof deleteDeploymentsByFilter;
deleteEnvVar: typeof deleteEnvVar;
deleteEnvVarByFilter: typeof deleteEnvVarByFilter;
deleteIngressByFilter: typeof deleteIngressByFilter;
deleteIngress: typeof deleteIngress;
deletePod: typeof deletePod;
deletePodsByFilter: typeof deletePodsByFilter;
deleteSecretsByFilter: typeof deleteSecretsByFilter;
deleteService: typeof deleteService;
deleteServiceByFilter: typeof deleteServiceByFilter;
deleteStatefulSet: typeof deleteStatefulSet;
deleteStatefulSetsByFilter: typeof deleteStatefulSetsByFilter;
getKubeConfig: typeof getKubeConfig;
getKubeContextByClusterShortName: typeof getKubeContextByClusterSlug;
getKubeContextByCluster: typeof getKubeContextByCluster;
getDeploys: typeof getDeploys;
getDeploysByFilter: typeof getDeploysByFilter;
getStatefulSet: typeof getStatefulSet;
getStatefulSets: typeof getStatefulSets;
getStatefulSetsByFilter: typeof getStatefulSetsByFilter;
getAllNodes: typeof getAllNodes;
getPod: typeof getPod;
getPodsByFilter: typeof getPods;
getPods: typeof getPods;
getSecrets: typeof getSecrets;
getServices: typeof getServices;
getService: typeof getService;
getIngresses: typeof getIngresses;
getIngress: typeof getIngress;
getIngressClasses: typeof getIngressClasses;
getDeploy: typeof getDeploy;
getAllIngresses: typeof getAllIngresses;
getAllDeploys: typeof getAllDeploys;
getAllStatefulSets: typeof getAllStatefulSets;
getAllPods: typeof getAllPods;
getAllNamespaces: typeof getAllNamespaces;
getAllSecrets: typeof getAllSecrets;
getAllServices: typeof getAllServices;
logPod: typeof logPod;
logPodByFilter: typeof logPodByFilter;
isNamespaceExisted: typeof isNamespaceExisted;
isSecretExisted: typeof isSecretExisted;
setEnvVar: typeof setEnvVar;
setEnvVarByFilter: typeof setEnvVarByFilter;
setDeployImage: typeof setDeployImage;
setDeployImageAll: typeof setDeployImageAll;
setDeployImagePullSecretByFilter: typeof setDeployImagePullSecretByFilter;
setDeployPortAll: typeof setDeployPortAll;
scaleDeploy: typeof scaleDeploy;
scaleDeployByFilter: typeof scaleDeployByFilter;
getPersistentVolume: typeof getPersistentVolume;
getAllPersistentVolumes: typeof getAllPersistentVolumes;
getPersistentVolumesByFilter: typeof getPersistentVolumes;
getPersistentVolumes: typeof getPersistentVolumes;
deletePersistentVolume: typeof deletePersistentVolume;
deletePersistentVolumesByFilter: typeof deletePersistentVolumesByFilter;
getPersistentVolumeClaim: typeof getPersistentVolumeClaim;
getPersistentVolumeClaims: typeof getPersistentVolumeClaims;
getAllPersistentVolumeClaims: typeof getAllPersistentVolumeClaims;
getPersistentVolumeClaimsByFilter: typeof getPersistentVolumeClaims;
deletePersistentVolumeClaim: typeof deletePersistentVolumeClaim;
deletePersistentVolumeClaimsByFilter: typeof deletePersistentVolumeClaimsByFilter;
getStorageClass: typeof getStorageClass;
getAllStorageClasses: typeof getAllStorageClasses;
getStorageClasses: typeof getStorageClasses;
getStorageClassesByFilter: typeof getPods;
deleteStorageClass: typeof deleteStorageClass;
deleteStorageClassesByFilter: typeof deleteStorageClassesByFilter;
previewPrerelease: typeof previewPrerelease;
rollout: typeof rollout;
rolloutV2: typeof rolloutV2;
kubectlApply: typeof kubectlApply;
kubectlApplyContent: typeof kubectlApplyContent;
kubectlAnnotateDeployment: typeof kubectlAnnotateDeployment;
rollbackDeploy: typeof rollbackDeploy;
rollbackDeployRevision: typeof rollbackDeployRevision;
checkCertManagerInstalled: (cluster: import("../../entities").ICluster) => Promise<string | boolean>;
checkNginxIngressInstalled: (cluster: import("../../entities").ICluster) => Promise<string | false>;
installCertManagerStack: (cluster: import("../../entities").ICluster, options?: import("./stack-install").InstallStackOptions) => Promise<string | boolean>;
installNginxIngressStack: (cluster: import("../../entities").ICluster, options?: import("./stack-install").InstallStackOptions) => Promise<string | boolean>;
};
export default ClusterManager;
//# sourceMappingURL=index.d.ts.map