Documentation ¶
Index ¶
- Constants
- Variables
- func AlarmPolicyRule() map[string]*schema.Schema
- func DataSourceTencentCloudMonitorAlarmAllNamespaces() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmBasicAlarms() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmBasicMetric() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmConditionsTemplate() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmHistory() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmMetric() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmMonitorType() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmNoticeCallbacks() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmNotices() *schema.Resource
- func DataSourceTencentCloudMonitorAlarmPolicy() *schema.Resource
- func DataSourceTencentCloudMonitorBindingObjects() *schema.Resource
- func DataSourceTencentCloudMonitorData() *schema.Resource
- func DataSourceTencentCloudMonitorPolicyConditions() *schema.Resource
- func DataSourceTencentCloudMonitorPolicyGroups() *schema.Resource
- func DataSourceTencentCloudMonitorProductEvent() *schema.Resource
- func DataSourceTencentCloudMonitorProductNamespace() *schema.Resource
- func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
- func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint
- func ModifyClusterInternetOrIntranetAccess(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, ...) error
- func ModifySecurityServiceOfCvmInNodePool(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, ...) error
- func ResourceTencentCloudMonitorAlarmNotice() *schema.Resource
- func ResourceTencentCloudMonitorAlarmPolicy() *schema.Resource
- func ResourceTencentCloudMonitorAlarmPolicySetDefault() *schema.Resource
- func ResourceTencentCloudMonitorBindingAlarmReceiver() *schema.Resource
- func ResourceTencentCloudMonitorBindingObject() *schema.Resource
- func ResourceTencentCloudMonitorPolicyBindingObject() *schema.Resource
- type ClusterAdvancedSettings
- type ClusterBasicSetting
- type ClusterCidrSettings
- type ClusterExtraArgs
- type ClusterInfo
- type DescribeLogSwitchesResponse
- type DescribeLogSwitchesResponseParams
- type InstanceAdvancedSettings
- type InstanceInfo
- type MonitorService
- func (me *MonitorService) CheckCanCreateMysqlROInstance(ctx context.Context, mysqlId string) (can bool, errRet error)
- func (me *MonitorService) CleanGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorAlarmNoticeById(ctx context.Context, Id string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaIntegrationById(ctx context.Context, integrationId, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaNotificationChannelById(ctx context.Context, channelId, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorGrafanaPluginById(ctx context.Context, instanceId, pluginId string) (errRet error)
- func (me *MonitorService) DeleteMonitorManageGrafanaAttachmentById(ctx context.Context, instanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorRecordingRule(ctx context.Context, instanceId string, recordingRuleId string) (errRet error)
- func (me *MonitorService) DeleteMonitorSsoAccountById(ctx context.Context, instanceId, userId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpAlertRule(ctx context.Context, instanceId string, ruleId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpExporterIntegrationById(ctx context.Context, tmpExporterIntegrationId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
- func (me *MonitorService) DeleteMonitorTmpScrapeJobById(ctx context.Context, tmpScrapeJobId string) (errRet error)
- func (me *MonitorService) DeletePrometheusClusterAgent(ctx context.Context, instanceId, clusterId, clusterType string) (errRet error)
- func (me *MonitorService) DeletePrometheusRecordRuleYaml(ctx context.Context, id, name string) (errRet error)
- func (me *MonitorService) DeleteTkeTmpAlertPolicyById(ctx context.Context, instanceId, tmpAlertPolicyId string) (errRet error)
- func (me *MonitorService) DeleteTkeTmpConfigByName(ctx context.Context, configId string, ServiceMonitors []*string, ...) (errRet error)
- func (me *MonitorService) DeleteTmpTkeTemplate(ctx context.Context, tempId string) (errRet error)
- func (me *MonitorService) DescribeAlarmNoticeById(ctx context.Context, alarmmap map[string]interface{}) (noticeIds []*monitor.AlarmNotice, errRet error)
- func (me *MonitorService) DescribeAlarmPolicyById(ctx context.Context, policyId string) (info *monitor.AlarmPolicy, errRet error)
- func (me *MonitorService) DescribeBindingAlarmPolicyObjectList(ctx context.Context, policyId string) (objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
- func (me *MonitorService) DescribeBindingPolicyObjectList(ctx context.Context, groupId int64) (objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmAllNamespacesByFilter(ctx context.Context, param map[string]interface{}) (qce, custom []*monitor.CommonNamespace, common []*monitor.CommonNamespaceNew, ...)
- func (me *MonitorService) DescribeMonitorAlarmBasicAlarmsByFilter(ctx context.Context, param map[string]interface{}) (alarms []*monitor.DescribeBasicAlarmListAlarms, warning *string, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmBasicMetricByFilter(ctx context.Context, param map[string]interface{}) (metric []*monitor.MetricSet, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmConditionsTemplateByFilter(ctx context.Context, param map[string]interface{}) (alarmConditionsTemplate []*monitor.TemplateGroup, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmHistoryByFilter(ctx context.Context, param map[string]interface{}) (alarmHistory []*monitor.AlarmHistory, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmMetricByFilter(ctx context.Context, param map[string]interface{}) (alarmMetric []*monitor.Metric, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmMonitorTypeByFilter(ctx context.Context, param map[string]interface{}) (alarmMonitor *monitor.DescribeMonitorTypesResponseParams, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmNoticeCallbacksByFilter(ctx context.Context) (alarmNoticeCallbacks []*monitor.URLNotice, errRet error)
- func (me *MonitorService) DescribeMonitorAlarmPolicyByFilter(ctx context.Context, param map[string]interface{}) (alarmPolicy []*monitor.AlarmPolicy, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaDnsConfigById(ctx context.Context, instanceId string) (grafanaDnsConfig *monitor.DescribeDNSConfigResponseParams, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaEnvConfigById(ctx context.Context, instanceId string) (grafanaEnvConfig *monitor.DescribeGrafanaEnvironmentsResponseParams, ...)
- func (me *MonitorService) DescribeMonitorGrafanaInstance(ctx context.Context, instanceId string) (grafanaInstance *monitor.GrafanaInstanceInfo, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaIntegration(ctx context.Context, integrationId, instanceId string) (grafanaIntegration *monitor.GrafanaIntegrationConfig, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaNotificationChannel(ctx context.Context, channelId, instanceId string) (grafanaNotificationChannel *monitor.GrafanaChannel, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaPlugin(ctx context.Context, instanceId, pluginId string) (grafanaPlugin *monitor.GrafanaPlugin, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaPluginOverviewsByFilter(ctx context.Context, param map[string]interface{}) (pluginOverviews []*monitor.GrafanaPlugin, errRet error)
- func (me *MonitorService) DescribeMonitorGrafanaWhitelistConfigById(ctx context.Context, instanceId string) (grafanaWhitelistConfig *monitor.DescribeGrafanaWhiteListResponseParams, ...)
- func (me *MonitorService) DescribeMonitorManageGrafanaAttachmentById(ctx context.Context, instanceId string) (manageGrafanaAttachment *monitor.PrometheusInstancesItem, errRet error)
- func (me *MonitorService) DescribeMonitorRecordingRuleById(ctx context.Context, instanceId string, recordingRuleId string) (instance *monitor.RecordingRuleSet, errRet error)
- func (me *MonitorService) DescribeMonitorSsoAccount(ctx context.Context, instanceId, userId string) (ssoAccount *monitor.GrafanaAccountInfo, errRet error)
- func (me *MonitorService) DescribeMonitorStatisticDataByFilter(ctx context.Context, param map[string]interface{}) (statisticData *monitor.DescribeStatisticDataResponseParams, errRet error)
- func (me *MonitorService) DescribeMonitorTmpAlertRuleById(ctx context.Context, instanceId string, tmpAlertRuleId string) (instance *monitor.PrometheusRuleSet, errRet error)
- func (me *MonitorService) DescribeMonitorTmpCvmAgent(ctx context.Context, instanceId string, tmpCvmAgentId string) (tmpCvmAgent *monitor.PrometheusAgent, errRet error)
- func (me *MonitorService) DescribeMonitorTmpExporterIntegration(ctx context.Context, tmpExporterIntegrationId string) (tmpExporterIntegration *monitor.IntegrationConfiguration, errRet error)
- func (me *MonitorService) DescribeMonitorTmpGrafanaConfigById(ctx context.Context, instanceId string) (tmpGrafanaConfig *monitor.DescribeGrafanaConfigResponseParams, errRet error)
- func (me *MonitorService) DescribeMonitorTmpInstance(ctx context.Context, tmpInstanceId string) (tmpInstance *monitor.PrometheusInstancesItem, errRet error)
- func (me *MonitorService) DescribeMonitorTmpRegionsByFilter(ctx context.Context, param map[string]interface{}) (tmpRegions []*monitor.PrometheusRegionItem, errRet error)
- func (me *MonitorService) DescribeMonitorTmpScrapeJob(ctx context.Context, tmpScrapeJobId string) (tmpScrapeJob *monitor.PrometheusScrapeJob, errRet error)
- func (me *MonitorService) DescribePolicyGroup(ctx context.Context, groupId int64) (info *monitor.DescribePolicyGroupListGroup, errRet error)
- func (me *MonitorService) DescribePolicyGroupDetailInfo(ctx context.Context, groupId int64) (response *monitor.DescribePolicyGroupInfoResponse, errRet error)
- func (me *MonitorService) DescribePrometheusRecordRuleByName(ctx context.Context, id, name string) (ret *monitor.DescribePrometheusRecordRulesResponse, errRet error)
- func (me *MonitorService) DescribePrometheusTempSync(ctx context.Context, templateId string) (targets []*monitor.PrometheusTemplateSyncTarget, errRet error)
- func (me *MonitorService) DescribeTkeTmpAlertPolicy(ctx context.Context, instanceId, tmpAlertPolicyId string) (tmpAlertPolicy *monitor.PrometheusAlertPolicyItem, errRet error)
- func (me *MonitorService) DescribeTkeTmpBasicConfigById(ctx context.Context, clusterId, clusterType, instanceId string) (respParams *monitor.DescribePrometheusConfigResponseParams, errRet error)
- func (me *MonitorService) DescribeTkeTmpConfigById(ctx context.Context, configId string) (respParams *monitor.DescribePrometheusConfigResponseParams, errRet error)
- func (me *MonitorService) DescribeTkeTmpGlobalNotification(ctx context.Context, instanceId string) (tmpNotification *monitor.PrometheusNotificationItem, errRet error)
- func (me *MonitorService) DescribeTmpTkeClusterAgentsById(ctx context.Context, instanceId, clusterId, clusterType string) (agents *monitor.PrometheusAgentOverview, errRet error)
- func (me *MonitorService) DescribeTmpTkeTemplateById(ctx context.Context, templateId string) (template *monitor.PrometheusTemp, errRet error)
- func (me *MonitorService) FullRegions() (regions []string, errRet error)
- func (me *MonitorService) GetConfigType(name string, respParams *monitor.DescribePrometheusConfigResponseParams) (configType string, config *monitor.PrometheusConfigItem, err error)
- func (me *MonitorService) IsolateMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
- func (me *MonitorService) ModifyTkeTmpGlobalNotification(ctx context.Context, instanceId string, ...) (response *monitor.ModifyPrometheusGlobalNotificationResponse, errRet error)
- type OverrideSettings
- type PrometheusConfig
- type PrometheusConfigIds
- type RunInstancesForNode
- type Switch
- type SwitchInfo
- type TkeService
- func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)
- func (me *TkeService) AddVpcCniSubnets(ctx context.Context, id string, subnets []string, vpcId string) (errRet error)
- func (me *TkeService) CheckClusterVersion(ctx context.Context, id string, clusterVersion string) (isOk bool, errRet error)
- func (me *TkeService) CheckInstancesUpgradeAble(ctx context.Context, id string, upgradeType string) (instanceIds []string, errRet error)
- func (me *TkeService) CheckOneOfClusterNodeReady(ctx context.Context, clusterId string, mustHaveWorkers bool) error
- func (me *TkeService) CreateCluster(ctx context.Context, basic ClusterBasicSetting, ...) (id string, errRet error)
- func (me *TkeService) CreateClusterAsGroup(ctx context.Context, id, groupPara, configPara string, labels []*tke.Label, ...) (asGroupId string, errRet error)
- func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId, securityGroupId string, ...) (errRet error)
- func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, ...) (instanceIds []string, errRet error)
- func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, ...) (asGroupId string, errRet error)
- func (me *TkeService) CreateClusterVirtualNodePool(ctx context.Context, request *tke.CreateClusterVirtualNodePoolRequest) (id string, errRet error)
- func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)
- func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId string) (errRet error)
- func (me *TkeService) DeleteClusterEndpoint(ctx context.Context, id string, isInternet bool) (errRet error)
- func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)
- func (me *TkeService) DeleteClusterNodePool(ctx context.Context, id, nodePoolId string, deleteKeepInstance bool) (errRet error)
- func (me *TkeService) DeleteClusterVirtualNodePool(ctx context.Context, request *tke.DeleteClusterVirtualNodePoolRequest) (errRet error)
- func (me *TkeService) DeleteTkeEncryptionProtectionById(ctx context.Context, clusterId string) (errRet error)
- func (me *TkeService) DescribeCluster(ctx context.Context, id string) (clusterInfo ClusterInfo, has bool, errRet error)
- func (me *TkeService) DescribeClusterAsGroupsByGroupId(ctx context.Context, id string, groupId string) (clusterAsGroupSet *tke.ClusterAsGroup, errRet error)
- func (me *TkeService) DescribeClusterAuthenticationOptions(ctx context.Context, id string) (options *tke.ServiceAccountAuthenticationOptions, state string, ...)
- func (me *TkeService) DescribeClusterCommonNames(ctx context.Context, request *tke.DescribeClusterCommonNamesRequest) (commonNames []*tke.CommonName, errRet error)
- func (me *TkeService) DescribeClusterConfig(ctx context.Context, id string, isPublic bool) (config string, errRet error)
- func (me *TkeService) DescribeClusterEndpointStatus(ctx context.Context, id string, isExtranet bool) (status string, message string, errRet error)
- func (me *TkeService) DescribeClusterEndpoints(ctx context.Context, id string) (response tke.DescribeClusterEndpointsResponseParams, errRet error)
- func (me *TkeService) DescribeClusterExtraArgs(ctx context.Context, clusterId string) (extraArgs *tke.ClusterExtraArgs, errRet error)
- func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
- func (me *TkeService) DescribeClusterInstancesByRole(ctx context.Context, id, role string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
- func (me *TkeService) DescribeClusterLevelAttribute(ctx context.Context, id string) (clusterLevels []*tke.ClusterLevelAttribute, errRet error)
- func (me *TkeService) DescribeClusterNodePoolGlobalConfig(ctx context.Context, clusterId string) (npGlobalConfig *tke.ClusterAsGroupOption, errRet error)
- func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)
- func (me *TkeService) DescribeClusterVirtualNode(ctx context.Context, clusterId string) (virtualNodes []tke.VirtualNode, errRet error)
- func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)
- func (me *TkeService) DescribeEnableVpcCniProgress(ctx context.Context, id string) (status, message string, errRet error)
- func (me *TkeService) DescribeExternalNodeSupportConfig(ctx context.Context, clusterId string) (resp *tke.DescribeExternalNodeSupportConfigResponseParams, errRet error)
- func (me *TkeService) DescribeIPAMD(ctx context.Context, clusterId string) (resp *tke.DescribeIPAMDResponseParams, errRet error)
- func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
- func (me *TkeService) DescribeKubernetesAvailableClusterVersionsByFilter(ctx context.Context, param map[string]interface{}) (availableClusterVersions *tke.DescribeAvailableClusterVersionResponseParams, ...)
- func (me *TkeService) DescribeKubernetesClusterInstancesByFilter(ctx context.Context, param map[string]interface{}) (clusterInstances []*tke.Instance, errRet error)
- func (me *TkeService) DescribeKubernetesClusterNodePoolsByFilter(ctx context.Context, param map[string]interface{}) (clusterNodePools []*tke.NodePool, errRet error)
- func (me *TkeService) DescribeLogSwitches(ctx context.Context, clusterId string) (resp []*tke.Switch, errRet error)
- func (me *TkeService) DescribeNodePool(ctx context.Context, clusterId string, nodePoolId string) (nodePool *tke.NodePool, has bool, errRet error)
- func (me *TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId(ctx context.Context, clusterId, nodePoolId string) (instance *tke.VirtualNodePool, has bool, errRet error)
- func (me *TkeService) DescribeTkeEncryptionProtectionById(ctx context.Context, clusterId string) (encryptionProtection *tke.DescribeEncryptionStatusResponseParams, errRet error)
- func (me *TkeService) DisableClusterAudit(ctx context.Context, request *tke.DisableClusterAuditRequest) (errRet error)
- func (me *TkeService) DisableEventPersistence(ctx context.Context, request *tke.DisableEventPersistenceRequest) (errRet error)
- func (me *TkeService) DisableVpcCniNetworkType(ctx context.Context, id string) (errRet error)
- func (me *TkeService) EnableClusterAudit(ctx context.Context, request *tke.EnableClusterAuditRequest) (errRet error)
- func (me *TkeService) EnableEventPersistence(ctx context.Context, request *tke.EnableEventPersistenceRequest) (errRet error)
- func (me *TkeService) EnableVpcCniNetworkType(ctx context.Context, id string, vpcCniType string, enableStaticIp bool, ...) (errRet error)
- func (me *TkeService) GetUpgradeInstanceResult(ctx context.Context, id string) (done bool, errRet error)
- func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)
- func (me *TkeService) ModifyClusterAsGroupAttribute(ctx context.Context, id, asGroupId string, maxSize, minSize int64) (errRet error)
- func (me *TkeService) ModifyClusterAttribute(ctx context.Context, id string, projectId int64, ...) (errRet error)
- func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)
- func (me *TkeService) ModifyClusterEndpointSG(ctx context.Context, id string, securityGroup string) (errRet error)
- func (me *TkeService) ModifyClusterEndpointSP(ctx context.Context, id string, securityPolicies []string) (errRet error)
- func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, nodePoolId string, name string, ...) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolDesiredCapacity(ctx context.Context, clusterId, nodePoolId string, desiredCapacity int64) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolInstanceTypes(ctx context.Context, clusterId, nodePoolId string, instanceTypes []*string) (errRet error)
- func (me *TkeService) ModifyClusterVersion(ctx context.Context, id string, clusterVersion string, extraArgs interface{}) (errRet error)
- func (me *TkeService) ModifyClusterVirtualNodePool(ctx context.Context, request *tke.ModifyClusterVirtualNodePoolRequest) (errRet error)
- func (me *TkeService) ModifyDeletionProtection(ctx context.Context, id string, enable bool) (errRet error)
- func (me *TkeService) SwitchClusterAudit(ctx context.Context, clusterId, logSetId, topicId string, ...) error
- func (me *TkeService) SwitchEventPersistence(ctx context.Context, clusterId, logSetId, topicId string, ...) error
- func (me *TkeService) SwitchLogAgent(ctx context.Context, clusterId, rootDir string, enable bool) error
- func (me *TkeService) TkeEncryptionProtectionStateRefreshFunc(clusterId string, failStates []string) resource.StateRefreshFunc
- func (me *TkeService) UninstallLogAgent(ctx context.Context, request *tke.UninstallLogAgentRequest) (errRet error)
- func (me *TkeService) UpgradeClusterInstances(ctx context.Context, id string, upgradeType string, instanceIds []string) (errRet error)
- func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, ...)
Constants ¶
View Source
const ( TKE_CLUSTER_OS_CENTOS72 = "centos7.2x86_64" TKE_CLUSTER_OS_CENTOS76 = "centos7.6.0_x64" TKE_CLUSTER_OS_UBUNTU18 = "ubuntu18.04.1x86_64" TKE_CLUSTER_OS_LINUX24 = "tlinux2.4x86_64" TKE_CLUSTER_OS_LINUX22 = "tlinux2.2(tkernel3)x86_64" TKE_CLUSTER_OS_LINUXF22 = "Tencent tlinux release 2.2 (Final)" )
View Source
const ( TkeClusterOsCentOS76 = "centos7.6x86_64" //TkeClusterOsUbuntu16 = "ubuntu16.04.1 LTSx86_64" TkeClusterOsUbuntu18 = "ubuntu18.04.1 LTSx86_64" )
兼容旧的 cluster_os 定义
View Source
const ( TKE_DEPLOY_TYPE_MANAGED = "MANAGED_CLUSTER" TKE_DEPLOY_TYPE_INDEPENDENT = "INDEPENDENT_CLUSTER" )
View Source
const ( TKE_RUNTIME_DOCKER = "docker" TKE_RUNTIME_CONTAINERD = "containerd" )
View Source
const ( TKE_ROLE_MASTER_ETCD = "MASTER_ETCD" TKE_ROLE_WORKER = "WORKER" )
View Source
const ( TKE_CLUSTER_OS_TYPE_DOCKER_CUSTOMIZE = "DOCKER_CUSTOMIZE" TKE_CLUSTER_OS_TYPE_GENERAL = "GENERAL" )
View Source
const ( TkeInternetStatusCreating = "Creating" TkeInternetStatusCreateFailed = "CreateFailed" TkeInternetStatusCreated = "Created" TkeInternetStatusDeleting = "Deleting" TkeInternetStatusDeleted = "Deleted" TkeInternetStatusDeletedFailed = "DeletedFailed" TkeInternetStatusNotfound = "NotFound" )
View Source
const ( TKE_CLUSTER_NETWORK_TYPE_GR = "GR" TKE_CLUSTER_NETWORK_TYPE_VPC_CNI = "VPC-CNI" TKE_CLUSTER_NETWORK_TYPE_CILIUM_OVERLAY = "CiliumOverlay" )
View Source
const ( TKE_CLUSTER_VPC_CNI_STATUS_RUNNING = "Running" TKE_CLUSTER_VPC_CNI_STATUS_SUCCEED = "Succeed" TKE_CLUSTER_VPC_CNI_STATUS_FAILED = "Failed" )
View Source
const ( TKE_CLUSTER_NODE_NAME_TYPE_LAN_IP = "lan-ip" TKE_CLUSTER_NODE_NAME_TYPE_HOSTNAME = "hostname" )
View Source
const ( TKE_CLUSTER_INTERNET = true TKE_CLUSTER_INTRANET = false TKE_CLUSTER_OPEN_ACCESS = true TKE_CLUSTER_CLOSE_ACCESS = false )
View Source
const (
DefaultAuthenticationOptionsIssuer = "https://kubernetes.default.svc.cluster.local"
)
View Source
const (
DefaultDesiredPodNum = 0
)
View Source
const (
InstallSecurityAgentCommandId = "cmd-d8jj2skv"
)
View Source
const (
TKE_CLUSTER_KUBE_PROXY_MODE_BPF = "kube-proxy-bpf"
)
Variables ¶
View Source
var MonitorRegionMap = map[string]string{
"ap-guangzhou": "gz",
"ap-shenzhen-fsi": "szjr",
"ap-guangzhou-open": "gzopen",
"ap-shenzhen": "szx",
"ap-shanghai": "sh",
"ap-shanghai-fsi": "shjr",
"ap-nanjing": "nj",
"ap-jinan-ec": "jnec",
"ap-hangzhou-ec": "hzec",
"ap-fuzhou-ec": "fzec",
"ap-beijing": "bj",
"ap-tianjin": "tsn",
"ap-shijiazhuang-ec": "sjwec",
"ap-beijing-fsi": "bjjr",
"ap-wuhan-ec": "whec",
"ap-changsha-ec": "csec",
"ap-chengdu": "cd",
"ap-chongqing": "cq",
"ap-taipei": "tpe",
"ap-hongkong": "hk",
"ap-singapore": "sg",
"ap-bangkok": "th",
"ap-mumbai": "in",
"ap-seoul": "kr",
"ap-tokyo": "jp",
"na-siliconvalley": "usw",
"na-ashburn": "use",
"na-toronto": "ca",
"eu-frankfurt": "de",
"eu-moscow": "ru",
}
regions in monitor
View Source
var TKE_ADDON_DEFAULT_VALUES_KEY = []string{
"global.image.host",
"global.cluster.id",
"global.cluster.appid",
"global.cluster.uin",
"global.cluster.subuin",
"global.cluster.type",
"global.cluster.clustertype",
"global.cluster.kubeversion",
"global.cluster.kubeminor",
}
This use to filter default values the addon returns.
View Source
var TKE_CLUSTER_KUBE_PROXY_MODE = []string{TKE_CLUSTER_KUBE_PROXY_MODE_BPF}
View Source
var TKE_CLUSTER_NETWORK_TYPE = []string{TKE_CLUSTER_NETWORK_TYPE_GR, TKE_CLUSTER_NETWORK_TYPE_VPC_CNI, TKE_CLUSTER_NETWORK_TYPE_CILIUM_OVERLAY}
View Source
var TKE_CLUSTER_NODE_NAME_TYPE = []string{TKE_CLUSTER_NODE_NAME_TYPE_LAN_IP, TKE_CLUSTER_NODE_NAME_TYPE_HOSTNAME}
View Source
var TKE_CLUSTER_OS = []string{TKE_CLUSTER_OS_CENTOS76, TKE_CLUSTER_OS_UBUNTU18, TKE_CLUSTER_OS_LINUX24}
View Source
var TKE_CLUSTER_OS_TYPES = []string{TKE_CLUSTER_OS_TYPE_GENERAL}
View Source
var TKE_DEPLOY_TYPES = []string{TKE_DEPLOY_TYPE_MANAGED, TKE_DEPLOY_TYPE_INDEPENDENT}
View Source
var TKE_INSTANCE_CHARGE_TYPE = []string{svccvm.CVM_CHARGE_TYPE_PREPAID, svccvm.CVM_CHARGE_TYPE_POSTPAID}
View Source
var TKE_RUNTIMES = []string{TKE_RUNTIME_DOCKER, TKE_RUNTIME_CONTAINERD}
Functions ¶
func AlarmPolicyRule ¶
func GetTkeLabels ¶
func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
func GetTkeTaints ¶
func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint
func ModifySecurityServiceOfCvmInNodePool ¶
func ModifySecurityServiceOfCvmInNodePool(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, cvmSvc *svccvm.CvmService, client *connectivity.TencentCloudClient, clusterId string, nodePoolId string) error
Types ¶
type ClusterAdvancedSettings ¶
type ClusterAdvancedSettings struct { Ipvs bool AsEnabled bool EnableCustomizedPodCIDR bool BasePodNumber int64 ContainerRuntime string RuntimeVersion string NodeNameType string ExtraArgs ClusterExtraArgs NetworkType string IsNonStaticIpMode bool DeletionProtection bool KubeProxyMode string Property string OsCustomizeType string VpcCniType string }
type ClusterBasicSetting ¶
type ClusterBasicSetting struct { ClusterId string ClusterOs string ClusterOsType string ClusterVersion string ClusterName string ClusterDescription string ClusterLevel *string AutoUpgradeClusterLevel *bool VpcId string ProjectId int64 ClusterNodeNum int64 ClusterStatus string SubnetId string Tags map[string]string }
type ClusterCidrSettings ¶
type ClusterExtraArgs ¶
type ClusterInfo ¶
type ClusterInfo struct { ClusterBasicSetting ClusterCidrSettings ClusterAdvancedSettings DeployType string CreatedTime string }
type DescribeLogSwitchesResponse ¶
type DescribeLogSwitchesResponse struct { tchttp.BaseResponse Response *DescribeLogSwitchesResponseParams `json:"Response"` }
type InstanceInfo ¶
type MonitorService ¶
type MonitorService struct {
// contains filtered or unexported fields
}
func (*MonitorService) CheckCanCreateMysqlROInstance ¶
func (*MonitorService) CleanGrafanaInstanceById ¶
func (me *MonitorService) CleanGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorAlarmNoticeById ¶
func (me *MonitorService) DeleteMonitorAlarmNoticeById(ctx context.Context, Id string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaInstanceById ¶
func (me *MonitorService) DeleteMonitorGrafanaInstanceById(ctx context.Context, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaIntegrationById ¶
func (me *MonitorService) DeleteMonitorGrafanaIntegrationById(ctx context.Context, integrationId, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaNotificationChannelById ¶
func (me *MonitorService) DeleteMonitorGrafanaNotificationChannelById(ctx context.Context, channelId, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorGrafanaPluginById ¶
func (me *MonitorService) DeleteMonitorGrafanaPluginById(ctx context.Context, instanceId, pluginId string) (errRet error)
func (*MonitorService) DeleteMonitorManageGrafanaAttachmentById ¶
func (me *MonitorService) DeleteMonitorManageGrafanaAttachmentById(ctx context.Context, instanceId string) (errRet error)
func (*MonitorService) DeleteMonitorRecordingRule ¶
func (*MonitorService) DeleteMonitorSsoAccountById ¶
func (me *MonitorService) DeleteMonitorSsoAccountById(ctx context.Context, instanceId, userId string) (errRet error)
func (*MonitorService) DeleteMonitorTmpAlertRule ¶
func (*MonitorService) DeleteMonitorTmpExporterIntegrationById ¶
func (me *MonitorService) DeleteMonitorTmpExporterIntegrationById(ctx context.Context, tmpExporterIntegrationId string) (errRet error)
func (*MonitorService) DeleteMonitorTmpInstanceById ¶
func (me *MonitorService) DeleteMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
func (*MonitorService) DeleteMonitorTmpScrapeJobById ¶
func (me *MonitorService) DeleteMonitorTmpScrapeJobById(ctx context.Context, tmpScrapeJobId string) (errRet error)
func (*MonitorService) DeletePrometheusClusterAgent ¶
func (me *MonitorService) DeletePrometheusClusterAgent(ctx context.Context, instanceId, clusterId, clusterType string) (errRet error)
func (*MonitorService) DeletePrometheusRecordRuleYaml ¶
func (me *MonitorService) DeletePrometheusRecordRuleYaml(ctx context.Context, id, name string) (errRet error)
func (*MonitorService) DeleteTkeTmpAlertPolicyById ¶
func (me *MonitorService) DeleteTkeTmpAlertPolicyById(ctx context.Context, instanceId, tmpAlertPolicyId string) (errRet error)
func (*MonitorService) DeleteTkeTmpConfigByName ¶
func (*MonitorService) DeleteTmpTkeTemplate ¶
func (me *MonitorService) DeleteTmpTkeTemplate(ctx context.Context, tempId string) (errRet error)
func (*MonitorService) DescribeAlarmNoticeById ¶
func (me *MonitorService) DescribeAlarmNoticeById(ctx context.Context, alarmmap map[string]interface{}) (noticeIds []*monitor.AlarmNotice, errRet error)
func (*MonitorService) DescribeAlarmPolicyById ¶
func (me *MonitorService) DescribeAlarmPolicyById(ctx context.Context, policyId string) (info *monitor.AlarmPolicy, errRet error)
func (*MonitorService) DescribeBindingAlarmPolicyObjectList ¶
func (me *MonitorService) DescribeBindingAlarmPolicyObjectList(ctx context.Context, policyId string) ( objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
func (*MonitorService) DescribeBindingPolicyObjectList ¶
func (me *MonitorService) DescribeBindingPolicyObjectList(ctx context.Context, groupId int64) (objects []*monitor.DescribeBindingPolicyObjectListInstance, errRet error)
func (*MonitorService) DescribeMonitorAlarmAllNamespacesByFilter ¶
func (me *MonitorService) DescribeMonitorAlarmAllNamespacesByFilter(ctx context.Context, param map[string]interface{}) ( qce, custom []*monitor.CommonNamespace, common []*monitor.CommonNamespaceNew, errRet error)
func (*MonitorService) DescribeMonitorAlarmBasicAlarmsByFilter ¶
func (me *MonitorService) DescribeMonitorAlarmBasicAlarmsByFilter(ctx context.Context, param map[string]interface{}) (alarms []*monitor.DescribeBasicAlarmListAlarms, warning *string, errRet error)
func (*MonitorService) DescribeMonitorAlarmBasicMetricByFilter ¶
func (*MonitorService) DescribeMonitorAlarmConditionsTemplateByFilter ¶
func (me *MonitorService) DescribeMonitorAlarmConditionsTemplateByFilter(ctx context.Context, param map[string]interface{}) (alarmConditionsTemplate []*monitor.TemplateGroup, errRet error)
func (*MonitorService) DescribeMonitorAlarmHistoryByFilter ¶
func (me *MonitorService) DescribeMonitorAlarmHistoryByFilter(ctx context.Context, param map[string]interface{}) (alarmHistory []*monitor.AlarmHistory, errRet error)
func (*MonitorService) DescribeMonitorAlarmMetricByFilter ¶
func (*MonitorService) DescribeMonitorAlarmMonitorTypeByFilter ¶
func (me *MonitorService) DescribeMonitorAlarmMonitorTypeByFilter(ctx context.Context, param map[string]interface{}) (alarmMonitor *monitor.DescribeMonitorTypesResponseParams, errRet error)
func (*MonitorService) DescribeMonitorAlarmNoticeCallbacksByFilter ¶
func (*MonitorService) DescribeMonitorAlarmPolicyByFilter ¶
func (me *MonitorService) DescribeMonitorAlarmPolicyByFilter(ctx context.Context, param map[string]interface{}) (alarmPolicy []*monitor.AlarmPolicy, errRet error)
func (*MonitorService) DescribeMonitorGrafanaDnsConfigById ¶
func (me *MonitorService) DescribeMonitorGrafanaDnsConfigById(ctx context.Context, instanceId string) (grafanaDnsConfig *monitor.DescribeDNSConfigResponseParams, errRet error)
func (*MonitorService) DescribeMonitorGrafanaEnvConfigById ¶
func (me *MonitorService) DescribeMonitorGrafanaEnvConfigById(ctx context.Context, instanceId string) (grafanaEnvConfig *monitor.DescribeGrafanaEnvironmentsResponseParams, errRet error)
func (*MonitorService) DescribeMonitorGrafanaInstance ¶
func (me *MonitorService) DescribeMonitorGrafanaInstance(ctx context.Context, instanceId string) (grafanaInstance *monitor.GrafanaInstanceInfo, errRet error)
func (*MonitorService) DescribeMonitorGrafanaIntegration ¶
func (me *MonitorService) DescribeMonitorGrafanaIntegration(ctx context.Context, integrationId, instanceId string) (grafanaIntegration *monitor.GrafanaIntegrationConfig, errRet error)
func (*MonitorService) DescribeMonitorGrafanaNotificationChannel ¶
func (me *MonitorService) DescribeMonitorGrafanaNotificationChannel(ctx context.Context, channelId, instanceId string) (grafanaNotificationChannel *monitor.GrafanaChannel, errRet error)
func (*MonitorService) DescribeMonitorGrafanaPlugin ¶
func (me *MonitorService) DescribeMonitorGrafanaPlugin(ctx context.Context, instanceId, pluginId string) (grafanaPlugin *monitor.GrafanaPlugin, errRet error)
func (*MonitorService) DescribeMonitorGrafanaPluginOverviewsByFilter ¶
func (me *MonitorService) DescribeMonitorGrafanaPluginOverviewsByFilter(ctx context.Context, param map[string]interface{}) (pluginOverviews []*monitor.GrafanaPlugin, errRet error)
func (*MonitorService) DescribeMonitorGrafanaWhitelistConfigById ¶
func (me *MonitorService) DescribeMonitorGrafanaWhitelistConfigById(ctx context.Context, instanceId string) (grafanaWhitelistConfig *monitor.DescribeGrafanaWhiteListResponseParams, errRet error)
func (*MonitorService) DescribeMonitorManageGrafanaAttachmentById ¶
func (me *MonitorService) DescribeMonitorManageGrafanaAttachmentById(ctx context.Context, instanceId string) (manageGrafanaAttachment *monitor.PrometheusInstancesItem, errRet error)
func (*MonitorService) DescribeMonitorRecordingRuleById ¶
func (me *MonitorService) DescribeMonitorRecordingRuleById(ctx context.Context, instanceId string, recordingRuleId string) (instance *monitor.RecordingRuleSet, errRet error)
func (*MonitorService) DescribeMonitorSsoAccount ¶
func (me *MonitorService) DescribeMonitorSsoAccount(ctx context.Context, instanceId, userId string) (ssoAccount *monitor.GrafanaAccountInfo, errRet error)
func (*MonitorService) DescribeMonitorStatisticDataByFilter ¶
func (me *MonitorService) DescribeMonitorStatisticDataByFilter(ctx context.Context, param map[string]interface{}) (statisticData *monitor.DescribeStatisticDataResponseParams, errRet error)
func (*MonitorService) DescribeMonitorTmpAlertRuleById ¶
func (me *MonitorService) DescribeMonitorTmpAlertRuleById(ctx context.Context, instanceId string, tmpAlertRuleId string) (instance *monitor.PrometheusRuleSet, errRet error)
func (*MonitorService) DescribeMonitorTmpCvmAgent ¶
func (me *MonitorService) DescribeMonitorTmpCvmAgent(ctx context.Context, instanceId string, tmpCvmAgentId string) (tmpCvmAgent *monitor.PrometheusAgent, errRet error)
func (*MonitorService) DescribeMonitorTmpExporterIntegration ¶
func (me *MonitorService) DescribeMonitorTmpExporterIntegration(ctx context.Context, tmpExporterIntegrationId string) (tmpExporterIntegration *monitor.IntegrationConfiguration, errRet error)
func (*MonitorService) DescribeMonitorTmpGrafanaConfigById ¶
func (me *MonitorService) DescribeMonitorTmpGrafanaConfigById(ctx context.Context, instanceId string) (tmpGrafanaConfig *monitor.DescribeGrafanaConfigResponseParams, errRet error)
func (*MonitorService) DescribeMonitorTmpInstance ¶
func (me *MonitorService) DescribeMonitorTmpInstance(ctx context.Context, tmpInstanceId string) (tmpInstance *monitor.PrometheusInstancesItem, errRet error)
DescribeMonitorTmpInstance tmp
func (*MonitorService) DescribeMonitorTmpRegionsByFilter ¶
func (me *MonitorService) DescribeMonitorTmpRegionsByFilter(ctx context.Context, param map[string]interface{}) (tmpRegions []*monitor.PrometheusRegionItem, errRet error)
func (*MonitorService) DescribeMonitorTmpScrapeJob ¶
func (me *MonitorService) DescribeMonitorTmpScrapeJob(ctx context.Context, tmpScrapeJobId string) (tmpScrapeJob *monitor.PrometheusScrapeJob, errRet error)
func (*MonitorService) DescribePolicyGroup ¶
func (me *MonitorService) DescribePolicyGroup(ctx context.Context, groupId int64) (info *monitor.DescribePolicyGroupListGroup, errRet error)
func (*MonitorService) DescribePolicyGroupDetailInfo ¶
func (me *MonitorService) DescribePolicyGroupDetailInfo(ctx context.Context, groupId int64) (response *monitor.DescribePolicyGroupInfoResponse, errRet error)
func (*MonitorService) DescribePrometheusRecordRuleByName ¶
func (me *MonitorService) DescribePrometheusRecordRuleByName(ctx context.Context, id, name string) ( ret *monitor.DescribePrometheusRecordRulesResponse, errRet error)
func (*MonitorService) DescribePrometheusTempSync ¶
func (me *MonitorService) DescribePrometheusTempSync(ctx context.Context, templateId string) (targets []*monitor.PrometheusTemplateSyncTarget, errRet error)
func (*MonitorService) DescribeTkeTmpAlertPolicy ¶
func (me *MonitorService) DescribeTkeTmpAlertPolicy(ctx context.Context, instanceId, tmpAlertPolicyId string) (tmpAlertPolicy *monitor.PrometheusAlertPolicyItem, errRet error)
func (*MonitorService) DescribeTkeTmpBasicConfigById ¶
func (me *MonitorService) DescribeTkeTmpBasicConfigById(ctx context.Context, clusterId, clusterType, instanceId string) (respParams *monitor.DescribePrometheusConfigResponseParams, errRet error)
func (*MonitorService) DescribeTkeTmpConfigById ¶
func (me *MonitorService) DescribeTkeTmpConfigById(ctx context.Context, configId string) (respParams *monitor.DescribePrometheusConfigResponseParams, errRet error)
func (*MonitorService) DescribeTkeTmpGlobalNotification ¶
func (me *MonitorService) DescribeTkeTmpGlobalNotification(ctx context.Context, instanceId string) (tmpNotification *monitor.PrometheusNotificationItem, errRet error)
func (*MonitorService) DescribeTmpTkeClusterAgentsById ¶
func (me *MonitorService) DescribeTmpTkeClusterAgentsById(ctx context.Context, instanceId, clusterId, clusterType string) (agents *monitor.PrometheusAgentOverview, errRet error)
func (*MonitorService) DescribeTmpTkeTemplateById ¶
func (me *MonitorService) DescribeTmpTkeTemplateById(ctx context.Context, templateId string) (template *monitor.PrometheusTemp, errRet error)
func (*MonitorService) FullRegions ¶
func (me *MonitorService) FullRegions() (regions []string, errRet error)
func (*MonitorService) GetConfigType ¶
func (me *MonitorService) GetConfigType(name string, respParams *monitor.DescribePrometheusConfigResponseParams) (configType string, config *monitor.PrometheusConfigItem, err error)
func (*MonitorService) IsolateMonitorTmpInstanceById ¶
func (me *MonitorService) IsolateMonitorTmpInstanceById(ctx context.Context, tmpInstanceId string) (errRet error)
func (*MonitorService) ModifyTkeTmpGlobalNotification ¶
func (me *MonitorService) ModifyTkeTmpGlobalNotification(ctx context.Context, instanceId string, notification monitor.PrometheusNotificationItem) (response *monitor.ModifyPrometheusGlobalNotificationResponse, errRet error)
type OverrideSettings ¶
type OverrideSettings struct { Master []tke.InstanceAdvancedSettings Work []tke.InstanceAdvancedSettings }
type PrometheusConfig ¶
func (*PrometheusConfig) MarshalToYaml ¶
func (r *PrometheusConfig) MarshalToYaml(config *map[interface{}]interface{}) (string, error)
func (*PrometheusConfig) SetRegex ¶
func (r *PrometheusConfig) SetRegex(configs []interface{}) (*[]interface{}, error)
func (*PrometheusConfig) UnmarshalToMap ¶
func (r *PrometheusConfig) UnmarshalToMap() (map[interface{}]interface{}, error)
type PrometheusConfigIds ¶
type RunInstancesForNode ¶
type Switch ¶
type Switch struct { ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` Audit *SwitchInfo `json:"Audit,omitempty" name:"Audit"` Event *SwitchInfo `json:"Event,omitempty" name:"Event"` Log *SwitchInfo `json:"Log,omitempty" name:"Log"` }
type SwitchInfo ¶
type SwitchInfo struct { Enable *bool `json:"Enable,omitempty" name:"Enable"` LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` TopicId *string `json:"TopicId,omitempty" name:"TopicId"` Version *string `json:"Version,omitempty" name:"Version"` UpgradeAble *bool `json:"UpgradeAble,omitempty" name:"UpgradeAble"` }
type TkeService ¶
type TkeService struct {
// contains filtered or unexported fields
}
func (*TkeService) AcquireClusterAdminRole ¶
func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)
func (*TkeService) AddVpcCniSubnets ¶
func (*TkeService) CheckClusterVersion ¶
func (*TkeService) CheckInstancesUpgradeAble ¶
func (*TkeService) CheckOneOfClusterNodeReady ¶
func (*TkeService) CreateCluster ¶
func (me *TkeService) CreateCluster(ctx context.Context, basic ClusterBasicSetting, advanced ClusterAdvancedSettings, cvms RunInstancesForNode, iAdvanced InstanceAdvancedSettings, cidrSetting ClusterCidrSettings, tags map[string]string, existedInstance []*tke.ExistedInstancesForNode, overrideSettings *OverrideSettings, iDiskMountSettings []*tke.InstanceDataDiskMountSetting, extensionAddons []*tke.ExtensionAddon, ) (id string, errRet error)
func (*TkeService) CreateClusterAsGroup ¶
func (me *TkeService) CreateClusterAsGroup(ctx context.Context, id, groupPara, configPara string, labels []*tke.Label, iAdvanced InstanceAdvancedSettings) (asGroupId string, errRet error)
func (*TkeService) CreateClusterEndpoint ¶
func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId, securityGroupId string, internet bool, domain string, extensiveParameters string) (errRet error)
open internet access
func (*TkeService) CreateClusterInstances ¶
func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, iAdvanced tke.InstanceAdvancedSettings) (instanceIds []string, errRet error)
func (*TkeService) CreateClusterNodePool ¶
func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, enableAutoScale bool, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, iAdvanced tke.InstanceAdvancedSettings, deletionProtection bool) (asGroupId string, errRet error)
func (*TkeService) CreateClusterVirtualNodePool ¶
func (me *TkeService) CreateClusterVirtualNodePool(ctx context.Context, request *tke.CreateClusterVirtualNodePoolRequest) (id string, errRet error)
func (*TkeService) DeleteCluster ¶
func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)
func (*TkeService) DeleteClusterAsGroups ¶
func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId string) (errRet error)
func (*TkeService) DeleteClusterEndpoint ¶
func (*TkeService) DeleteClusterInstances ¶
func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)
if cluster is creating, return error:TencentCloudSDKError] Code=InternalError.ClusterState
func (*TkeService) DeleteClusterNodePool ¶
func (*TkeService) DeleteClusterVirtualNodePool ¶
func (me *TkeService) DeleteClusterVirtualNodePool(ctx context.Context, request *tke.DeleteClusterVirtualNodePoolRequest) (errRet error)
func (*TkeService) DeleteTkeEncryptionProtectionById ¶
func (me *TkeService) DeleteTkeEncryptionProtectionById(ctx context.Context, clusterId string) (errRet error)
func (*TkeService) DescribeCluster ¶
func (me *TkeService) DescribeCluster(ctx context.Context, id string) ( clusterInfo ClusterInfo, has bool, errRet error, )
func (*TkeService) DescribeClusterAsGroupsByGroupId ¶
func (me *TkeService) DescribeClusterAsGroupsByGroupId(ctx context.Context, id string, groupId string) (clusterAsGroupSet *tke.ClusterAsGroup, errRet error)
func (*TkeService) DescribeClusterAuthenticationOptions ¶
func (me *TkeService) DescribeClusterAuthenticationOptions(ctx context.Context, id string) (options *tke.ServiceAccountAuthenticationOptions, state string, oidcConfig *tke.OIDCConfigAuthenticationOptions, errRet error)
DescribeClusterAuthenticationOptions Field `ServiceAccounts.AutoCreateDiscoveryAnonymousAuth` will always return null by design
func (*TkeService) DescribeClusterCommonNames ¶
func (me *TkeService) DescribeClusterCommonNames(ctx context.Context, request *tke.DescribeClusterCommonNamesRequest) (commonNames []*tke.CommonName, errRet error)
func (*TkeService) DescribeClusterConfig ¶
func (*TkeService) DescribeClusterEndpointStatus ¶
func (*TkeService) DescribeClusterEndpoints ¶
func (me *TkeService) DescribeClusterEndpoints(ctx context.Context, id string) (response tke.DescribeClusterEndpointsResponseParams, errRet error)
func (*TkeService) DescribeClusterExtraArgs ¶
func (me *TkeService) DescribeClusterExtraArgs(ctx context.Context, clusterId string) (extraArgs *tke.ClusterExtraArgs, errRet error)
func (*TkeService) DescribeClusterInstances ¶
func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
func (*TkeService) DescribeClusterInstancesByRole ¶
func (me *TkeService) DescribeClusterInstancesByRole(ctx context.Context, id, role string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
func (*TkeService) DescribeClusterLevelAttribute ¶
func (me *TkeService) DescribeClusterLevelAttribute(ctx context.Context, id string) (clusterLevels []*tke.ClusterLevelAttribute, errRet error)
func (*TkeService) DescribeClusterNodePoolGlobalConfig ¶
func (me *TkeService) DescribeClusterNodePoolGlobalConfig(ctx context.Context, clusterId string) ( npGlobalConfig *tke.ClusterAsGroupOption, errRet error, )
func (*TkeService) DescribeClusterSecurity ¶
func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)
func (*TkeService) DescribeClusterVirtualNode ¶
func (me *TkeService) DescribeClusterVirtualNode(ctx context.Context, clusterId string) (virtualNodes []tke.VirtualNode, errRet error)
func (*TkeService) DescribeClusters ¶
func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)
func (*TkeService) DescribeEnableVpcCniProgress ¶
func (*TkeService) DescribeExternalNodeSupportConfig ¶
func (me *TkeService) DescribeExternalNodeSupportConfig(ctx context.Context, clusterId string) (resp *tke.DescribeExternalNodeSupportConfigResponseParams, errRet error)
func (*TkeService) DescribeIPAMD ¶
func (me *TkeService) DescribeIPAMD(ctx context.Context, clusterId string) (resp *tke.DescribeIPAMDResponseParams, errRet error)
func (*TkeService) DescribeImages ¶
func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
func (*TkeService) DescribeKubernetesAvailableClusterVersionsByFilter ¶
func (me *TkeService) DescribeKubernetesAvailableClusterVersionsByFilter(ctx context.Context, param map[string]interface{}) (availableClusterVersions *tke.DescribeAvailableClusterVersionResponseParams, errRet error)
func (*TkeService) DescribeKubernetesClusterInstancesByFilter ¶
func (*TkeService) DescribeKubernetesClusterNodePoolsByFilter ¶
func (*TkeService) DescribeLogSwitches ¶
func (*TkeService) DescribeNodePool ¶
func (*TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId ¶
func (me *TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId(ctx context.Context, clusterId, nodePoolId string) (instance *tke.VirtualNodePool, has bool, errRet error)
func (*TkeService) DescribeTkeEncryptionProtectionById ¶
func (me *TkeService) DescribeTkeEncryptionProtectionById(ctx context.Context, clusterId string) (encryptionProtection *tke.DescribeEncryptionStatusResponseParams, errRet error)
func (*TkeService) DisableClusterAudit ¶
func (me *TkeService) DisableClusterAudit(ctx context.Context, request *tke.DisableClusterAuditRequest) (errRet error)
func (*TkeService) DisableEventPersistence ¶
func (me *TkeService) DisableEventPersistence(ctx context.Context, request *tke.DisableEventPersistenceRequest) (errRet error)
func (*TkeService) DisableVpcCniNetworkType ¶
func (me *TkeService) DisableVpcCniNetworkType(ctx context.Context, id string) (errRet error)
func (*TkeService) EnableClusterAudit ¶
func (me *TkeService) EnableClusterAudit(ctx context.Context, request *tke.EnableClusterAuditRequest) (errRet error)
func (*TkeService) EnableEventPersistence ¶
func (me *TkeService) EnableEventPersistence(ctx context.Context, request *tke.EnableEventPersistenceRequest) (errRet error)
func (*TkeService) EnableVpcCniNetworkType ¶
func (*TkeService) GetUpgradeInstanceResult ¶
func (*TkeService) InstallLogAgent ¶
func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)
func (*TkeService) ModifyClusterAsGroupAttribute ¶
func (*TkeService) ModifyClusterAttribute ¶
func (*TkeService) ModifyClusterAuthenticationOptions ¶
func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)
func (*TkeService) ModifyClusterEndpointSG ¶
func (*TkeService) ModifyClusterEndpointSP ¶
func (*TkeService) ModifyClusterNodePool ¶
func (*TkeService) ModifyClusterNodePoolDesiredCapacity ¶
func (*TkeService) ModifyClusterNodePoolGlobalConfig ¶
func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)
node pool global config
func (*TkeService) ModifyClusterNodePoolInstanceTypes ¶
func (*TkeService) ModifyClusterVersion ¶
func (*TkeService) ModifyClusterVirtualNodePool ¶
func (me *TkeService) ModifyClusterVirtualNodePool(ctx context.Context, request *tke.ModifyClusterVirtualNodePoolRequest) (errRet error)
func (*TkeService) ModifyDeletionProtection ¶
func (*TkeService) SwitchClusterAudit ¶
func (*TkeService) SwitchEventPersistence ¶
func (*TkeService) SwitchLogAgent ¶
func (*TkeService) TkeEncryptionProtectionStateRefreshFunc ¶
func (me *TkeService) TkeEncryptionProtectionStateRefreshFunc(clusterId string, failStates []string) resource.StateRefreshFunc
func (*TkeService) UninstallLogAgent ¶
func (me *TkeService) UninstallLogAgent(ctx context.Context, request *tke.UninstallLogAgentRequest) (errRet error)
func (*TkeService) UpgradeClusterInstances ¶
func (*TkeService) WaitForAuthenticationOptionsUpdateSuccess ¶
func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, oidc *tke.OIDCConfigAuthenticationOptions, errRet error)
Source Files ¶
- data_source_tc_monitor_alarm_all_namespaces.go
- data_source_tc_monitor_alarm_basic_alarms.go
- data_source_tc_monitor_alarm_basic_metric.go
- data_source_tc_monitor_alarm_conditions_template.go
- data_source_tc_monitor_alarm_history.go
- data_source_tc_monitor_alarm_metric.go
- data_source_tc_monitor_alarm_monitor_type.go
- data_source_tc_monitor_alarm_notice_callbacks.go
- data_source_tc_monitor_alarm_notices.go
- data_source_tc_monitor_alarm_policy.go
- data_source_tc_monitor_binding_objects.go
- data_source_tc_monitor_data.go
- data_source_tc_monitor_policy_conditions.go
- data_source_tc_monitor_policy_groups.go
- data_source_tc_monitor_product_event.go
- data_source_tc_monitor_product_namespace.go
- extension_monitor.go
- extension_tke.go
- resource_tc_monitor_alarm_notice.go
- resource_tc_monitor_alarm_policy.go
- resource_tc_monitor_alarm_policy_set_default.go
- resource_tc_monitor_binding_object.go
- resource_tc_monitor_binding_receiver.go
- resource_tc_monitor_policy_binding_object.go
- service_tencentcloud_monitor.go
- service_tencentcloud_tke.go
Click to show internal directories.
Click to hide internal directories.