tke

package
v1.81.139 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Provide a datasource to query EKS cluster credential info (offlined).

~> **NOTE:** This resource was offline no longer supported.

Example Usage

```hcl

data "tencentcloud_eks_cluster_credential" "foo" {
  cluster_id = "cls-xxxxxxxx"
}

example outputs

output "addresses" {
  value = data.tencentcloud_eks_cluster_credential.cred.addresses
}

output "ca_cert" {
  value = data.tencentcloud_eks_cluster_credential.cred.credential.ca_cert
}

output "token" {
  value = data.tencentcloud_eks_cluster_credential.cred.credential.token
}

output "public_lb_param" {
  value = data.tencentcloud_eks_cluster_credential.cred.public_lb.0.extra_param
}

output "internal_lb_subnet" {
  value = data.tencentcloud_eks_cluster_credential.cred.internal_lb.0.subnet_id
}

```

Use this data source to query elastic kubernetes cluster resource (offlined).

~> **NOTE:** This resource was offline and no longer supported.

Example Usage

```

data "tencentcloud_eks_clusters" "foo" {
  cluster_id = "cls-xxxxxxxx"
}

```

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Provides an elastic kubernetes cluster resource (offlined).

~> **NOTE:** This resource was offline and no longer supported.

Example Usage

```

resource "tencentcloud_vpc" "vpc" {
  name       = "tf-eks-vpc"
  cidr_block = "10.2.0.0/16"
}

resource "tencentcloud_subnet" "sub" {
  vpc_id            = tencentcloud_vpc.vpc.id
  name              = "tf-as-subnet"
  cidr_block        = "10.2.11.0/24"
  availability_zone = "ap-guangzhou-3"
}

resource "tencentcloud_subnet" "sub2" {
  vpc_id            = tencentcloud_vpc.vpc.id
  name              = "tf-as-subnet"
  cidr_block        = "10.2.10.0/24"
  availability_zone = "ap-guangzhou-3"
}

resource "tencentcloud_eks_cluster" "foo" {
  cluster_name = "tf-test-eks"
  k8s_version = "1.18.4"
  vpc_id = tencentcloud_vpc.vpc.id
  subnet_ids = [
    tencentcloud_subnet.sub.id,
    tencentcloud_subnet.sub2.id,
  ]
  cluster_desc = "test eks cluster created by terraform"
  service_subnet_id =     tencentcloud_subnet.sub.id
  dns_servers {
    domain = "www.example1.com"
    servers = ["1.1.1.1:8080", "1.1.1.1:8081", "1.1.1.1:8082"]
  }
  enable_vpc_core_dns = true
  need_delete_cbs = true
  tags = {
    hello = "world"
  }
}

```

Import

``` terraform import tencentcloud_eks_cluster.foo cluster-id ```

Provides an elastic kubernetes service container instance (offlined).

~> **NOTE:** This resource was offline and no longer supported.

Example Usage

``` data "tencentcloud_security_groups" "group" { }

data "tencentcloud_availability_zones_by_product" "zone" {
  product = "cvm"
}

resource "tencentcloud_vpc" "vpc" {
  cidr_block = "10.0.0.0/24"
  name       = "tf-test-eksci"
}

resource "tencentcloud_subnet" "sub" {
  availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name
  cidr_block        = "10.0.0.0/24"
  name              = "sub"
  vpc_id            = tencentcloud_vpc.vpc.id
}

resource "tencentcloud_cbs_storage" "cbs" {
  availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name
  storage_name      = "cbs1"
  storage_size      = 10
  storage_type      = "CLOUD_PREMIUM"
}

resource "tencentcloud_eks_container_instance" "eci1" {
  name = "foo"
  vpc_id = tencentcloud_vpc.vpc.id
  subnet_id = tencentcloud_subnet.sub.id
  cpu = 2
  cpu_type = "intel"
  restart_policy = "Always"
  memory = 4
  security_groups = [data.tencentcloud_security_groups.group.security_groups[0].security_group_id]
  cbs_volume {
    name = "vol1"
    disk_id = tencentcloud_cbs_storage.cbs.id
  }
  container {
    name = "redis1"
    image = "redis"
    liveness_probe {
      init_delay_seconds = 1
      timeout_seconds = 3
      period_seconds = 11
      success_threshold = 1
      failure_threshold = 3
      http_get_path = "/"
      http_get_port = 443
      http_get_scheme = "HTTPS"
    }
    readiness_probe {
      init_delay_seconds = 1
      timeout_seconds = 3
      period_seconds = 10
      success_threshold = 1
      failure_threshold = 3
      tcp_socket_port = 81
    }
  }
  container {
    name = "nginx"
    image = "nginx"
  }
  init_container {
    name = "alpine"
    image = "alpine:latest"
  }
}

```

Import

``` terraform import tencentcloud_eks_container_instance.foo container-instance-id ```

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Auto scaling group for kubernetes cluster (offlined).

~> **NOTE:** This resource was offline and no longer supported.

Example Usage

```hcl # Use tencentcloud_kubernetes_node_pool instead

resource "tencentcloud_kubernetes_node_pool" "mynodepool" {
  name = "mynodepool"
  cluster_id = "cls-xxxxxxxx"
  max_size = 6
  min_size = 1
  vpc_id               = "vpc-xxxxxxxx"
  subnet_ids           = ["subnet-xxxxxxxx"]
  retry_policy         = "INCREMENTAL_INTERVALS"
  desired_capacity     = 4
  enable_auto_scale    = true
  multi_zone_subnet_policy = "EQUALITY"

  auto_scaling_config {
    instance_type      = var.default_instance_type
    system_disk_type   = "CLOUD_PREMIUM"
    system_disk_size   = "50"
    orderly_security_group_ids = ["sg-24vswocp"]
	instance_charge_type = "SPOTPAID"
    spot_instance_type = "one-time"
    spot_max_price = "1000"

    data_disk {
      disk_type = "CLOUD_PREMIUM"
      disk_size = 50
    }

    internet_charge_type       = "TRAFFIC_POSTPAID_BY_HOUR"
    internet_max_bandwidth_out = 10
    public_ip_assigned         = true
    password                   = input_your_password
    enhanced_security_service  = false
    enhanced_monitor_service   = false
  }

  labels = {
    "test1" = "test1",
    "test2" = "test2",
  }

}

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Code generated by iacg; DO NOT EDIT.

Index

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 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",
	"global.cluster.region",
	"global.cluster.longregion",
	"global.testenv",
}

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_OS_TYPES = []string{TKE_CLUSTER_OS_TYPE_GENERAL}

Functions

func DataSourceTencentCloudContainerClusterInstances

func DataSourceTencentCloudContainerClusterInstances() *schema.Resource

func DataSourceTencentCloudContainerClusters

func DataSourceTencentCloudContainerClusters() *schema.Resource

func DataSourceTencentCloudEKSClusters

func DataSourceTencentCloudEKSClusters() *schema.Resource

func DataSourceTencentCloudEksClusterCredential

func DataSourceTencentCloudEksClusterCredential() *schema.Resource

func DataSourceTencentCloudKubernetesAvailableClusterVersions

func DataSourceTencentCloudKubernetesAvailableClusterVersions() *schema.Resource

func DataSourceTencentCloudKubernetesCharts

func DataSourceTencentCloudKubernetesCharts() *schema.Resource

func DataSourceTencentCloudKubernetesClusterAuthenticationOptions

func DataSourceTencentCloudKubernetesClusterAuthenticationOptions() *schema.Resource

func DataSourceTencentCloudKubernetesClusterCommonNames

func DataSourceTencentCloudKubernetesClusterCommonNames() *schema.Resource

func DataSourceTencentCloudKubernetesClusterInstances

func DataSourceTencentCloudKubernetesClusterInstances() *schema.Resource

func DataSourceTencentCloudKubernetesClusterLevels

func DataSourceTencentCloudKubernetesClusterLevels() *schema.Resource

func DataSourceTencentCloudKubernetesClusterNativeNodePools added in v1.81.106

func DataSourceTencentCloudKubernetesClusterNativeNodePools() *schema.Resource

func DataSourceTencentCloudKubernetesClusterNodePools

func DataSourceTencentCloudKubernetesClusterNodePools() *schema.Resource

func DataSourceTencentCloudKubernetesClusters

func DataSourceTencentCloudKubernetesClusters() *schema.Resource

func GetOptimizedTkeLabels

func GetOptimizedTkeLabels(d *schema.ResourceData, k string) []*tke.Label

func GetTkeLabels

func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label

func GetTkeTags added in v1.81.79

func GetTkeTags(d *schema.ResourceData, k string) []*tke.Tag

func GetTkeTaints

func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint

func ModifyClusterInternetOrIntranetAccess

func ModifyClusterInternetOrIntranetAccess(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService,
	isInternet bool, enable bool, sg string, subnetId string, domain string) error

func ModifySecurityServiceOfCvmInNodePool

func ModifySecurityServiceOfCvmInNodePool(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, cvmSvc *svccvm.CvmService, client *connectivity.TencentCloudClient, clusterId string, nodePoolId string) error

func ResourceTencentCloudContainerCluster

func ResourceTencentCloudContainerCluster() *schema.Resource

func ResourceTencentCloudContainerClusterInstance

func ResourceTencentCloudContainerClusterInstance() *schema.Resource

func ResourceTencentCloudEksCluster

func ResourceTencentCloudEksCluster() *schema.Resource

func ResourceTencentCloudEksContainerInstance

func ResourceTencentCloudEksContainerInstance() *schema.Resource

func ResourceTencentCloudKubernetesAddon added in v1.81.93

func ResourceTencentCloudKubernetesAddon() *schema.Resource

func ResourceTencentCloudKubernetesAddonAttachment added in v1.81.103

func ResourceTencentCloudKubernetesAddonAttachment() *schema.Resource

func ResourceTencentCloudKubernetesAddonConfig added in v1.81.109

func ResourceTencentCloudKubernetesAddonConfig() *schema.Resource

func ResourceTencentCloudKubernetesAsScalingGroup

func ResourceTencentCloudKubernetesAsScalingGroup() *schema.Resource

func ResourceTencentCloudKubernetesAuthAttachment added in v1.81.103

func ResourceTencentCloudKubernetesAuthAttachment() *schema.Resource

func ResourceTencentCloudKubernetesBackupStorageLocation added in v1.81.99

func ResourceTencentCloudKubernetesBackupStorageLocation() *schema.Resource

func ResourceTencentCloudKubernetesCluster added in v1.81.103

func ResourceTencentCloudKubernetesCluster() *schema.Resource

func ResourceTencentCloudKubernetesClusterAttachment added in v1.81.99

func ResourceTencentCloudKubernetesClusterAttachment() *schema.Resource

func ResourceTencentCloudKubernetesClusterMasterAttachment added in v1.81.138

func ResourceTencentCloudKubernetesClusterMasterAttachment() *schema.Resource

func ResourceTencentCloudKubernetesEncryptionProtection

func ResourceTencentCloudKubernetesEncryptionProtection() *schema.Resource

func ResourceTencentCloudKubernetesHealthCheckPolicy added in v1.81.123

func ResourceTencentCloudKubernetesHealthCheckPolicy() *schema.Resource

func ResourceTencentCloudKubernetesLogConfig added in v1.81.126

func ResourceTencentCloudKubernetesLogConfig() *schema.Resource

func ResourceTencentCloudKubernetesNativeNodePool added in v1.81.106

func ResourceTencentCloudKubernetesNativeNodePool() *schema.Resource

func ResourceTencentCloudKubernetesNodePool

func ResourceTencentCloudKubernetesNodePool() *schema.Resource

func ResourceTencentCloudKubernetesScaleWorker added in v1.81.103

func ResourceTencentCloudKubernetesScaleWorker() *schema.Resource

func ResourceTencentCloudKubernetesServerlessNodePool added in v1.81.103

func ResourceTencentCloudKubernetesServerlessNodePool() *schema.Resource

func ResourceTencentCloudTkeClusterEndpoint

func ResourceTencentCloudTkeClusterEndpoint() *schema.Resource

func ResourceTkeGetAddonsDiffs

func ResourceTkeGetAddonsDiffs(o, n []interface{}) (adds, removes, changes []interface{})

func TKEGpuArgsSetting

func TKEGpuArgsSetting() map[string]*schema.Schema

func TkeCvmCreateInfo

func TkeCvmCreateInfo() map[string]*schema.Schema

func TkeInstanceAdvancedSetting

func TkeInstanceAdvancedSetting() map[string]*schema.Schema

Types

type AddonRequestBody

type AddonRequestBody struct {
	Kind       *string    `json:"kind,omitempty"`
	ApiVersion *string    `json:"apiVersion,omitempty"`
	Spec       *AddonSpec `json:"spec,omitempty"`
}

type AddonResponseData

type AddonResponseData struct {
	Kind       *string                `json:"kind,omitempty"`
	ApiVersion *string                `json:"apiVersion,omitempty"`
	Metadata   *AddonResponseMeta     `json:"metadata,omitempty"`
	Spec       *AddonSpec             `json:"spec,omitempty"`
	Status     map[string]interface{} `json:"status,omitempty"`
}

type AddonResponseMeta

type AddonResponseMeta struct {
	Name              *string            `json:"name,omitempty"`
	GenerateName      *string            `json:"generateName,omitempty"`
	Namespace         *string            `json:"namespace,omitempty"`
	SelfLink          *string            `json:"selfLink,omitempty"`
	Uid               *string            `json:"uid,omitempty"`
	ResourceVersion   *string            `json:"resourceVersion,omitempty"`
	Generation        *int               `json:"generation,omitempty"`
	CreationTimestamp *string            `json:"creationTimestamp,omitempty"`
	Labels            map[string]*string `json:"labels,omitempty"`
}

type AddonSpec

type AddonSpec struct {
	Chart  *AddonSpecChart  `json:"chart,omitempty"`
	Values *AddonSpecValues `json:"values,omitempty"`
}

type AddonSpecChart

type AddonSpecChart struct {
	ChartName    *string `json:"chartName,omitempty"`
	ChartVersion *string `json:"chartVersion,omitempty"`
}

type AddonSpecValues

type AddonSpecValues struct {
	RawValuesType *string   `json:"rawValuesType,omitempty"`
	RawValues     *string   `json:"rawValues,omitempty"`
	Values        []*string `json:"values,omitempty"`
}

type App

type App struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AddonSpec `json:"spec,omitempty" `
	Status            AppStatus `json:"status,omitempty"`
}

type AppList

type AppList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []App `json:"items"`
}

type AppPhase

type AppPhase string

type AppStatus

type AppStatus struct {
	Phase              AppPhase    `json:"phase"`
	ObservedGeneration int64       `json:"observedGeneration,omitempty"`
	ReleaseStatus      string      `json:"releaseStatus,omitempty"`
	ReleaseLastUpdated metav1.Time `json:"releaseLastUpdated,omitempty"`
	Revision           int64       `json:"revision,omitempty"`
	RollbackRevision   int64       `json:"rollbackRevision,omitempty"`
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	Reason             string      `json:"reason,omitempty"`
	Message            string      `json:"message,omitempty"`
	Manifest           string      `json:"manifest"`
}

type AppType

type AppType string

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 ClusterCidrSettings struct {
	ClusterCidr               string
	IgnoreClusterCidrConflict bool
	MaxNodePodNum             int64
	MaxClusterServiceNum      int64
	ServiceCIDR               string
	EniSubnetIds              []string
	ClaimExpiredSeconds       int64
}

type ClusterExtraArgs

type ClusterExtraArgs struct {
	KubeAPIServer         []string
	KubeControllerManager []string
	KubeScheduler         []string
}

type ClusterInfo

type ClusterInfo struct {
	ClusterBasicSetting
	ClusterCidrSettings
	ClusterAdvancedSettings

	DeployType  string
	CreatedTime string
}

type DescribeLogSwitchesResponse

type DescribeLogSwitchesResponse struct {
	tchttp.BaseResponse
	Response *DescribeLogSwitchesResponseParams `json:"Response"`
}

type DescribeLogSwitchesResponseParams

type DescribeLogSwitchesResponseParams struct {
	SwitchSet []*Switch `json:"SwitchSet,omitempty" name:"SwitchSet"`
	RequestId *string   `json:"RequestId,omitempty" name:"RequestId"`
}

type EksClusterCredentialResponse

type EksClusterCredentialResponse struct {
	Addresses []*tke.IPAddress `json:"Addresses,omitempty" name:"Addresses"`

	Credential *tke.ClusterCredential `json:"Credential,omitempty" name:"Credential"`

	PublicLB *tke.ClusterPublicLB `json:"PublicLB,omitempty" name:"PublicLB"`

	InternalLB *tke.ClusterInternalLB `json:"InternalLB,omitempty" name:"InternalLB"`

	KubeConfig string

	ProxyLB bool
}

type EksClusterInfo

type EksClusterInfo struct {
	ClusterId        string
	ClusterName      string
	ClusterDesc      string
	K8SVersion       string
	VpcId            string
	SubnetIds        []string
	Status           string
	CreatedTime      string
	ServiceSubnetId  string
	ExtraParam       string
	DnsServers       []map[string]interface{}
	NeedDeleteCbs    bool
	EnableVpcCoreDNS bool
	Tags             map[string]string
}

type EksService

type EksService struct {
	// contains filtered or unexported fields
}

func NewEksService

func NewEksService(client *connectivity.TencentCloudClient) EksService

func (*EksService) CreateEksCluster

func (me *EksService) CreateEksCluster(ctx context.Context, request *tke.CreateEKSClusterRequest) (id string, errRet error)

func (*EksService) CreateEksContainerInstances

func (me *EksService) CreateEksContainerInstances(ctx context.Context, request *tke.CreateEKSContainerInstancesRequest) (id string, errRet error)

func (*EksService) DeleteEksCluster

func (me *EksService) DeleteEksCluster(ctx context.Context, request *tke.DeleteEKSClusterRequest) (errRet error)

func (*EksService) DeleteEksContainerInstance

func (me *EksService) DeleteEksContainerInstance(ctx context.Context, request *tke.DeleteEKSContainerInstancesRequest) (errRet error)

func (*EksService) DescribeEKSClusterCredential

func (me *EksService) DescribeEKSClusterCredential(ctx context.Context, request *tke.DescribeEKSClusterCredentialRequest) (info *EksClusterCredentialResponse, errRet error)

func (*EksService) DescribeEKSClusterCredentialById

func (me *EksService) DescribeEKSClusterCredentialById(ctx context.Context, id string) (info *EksClusterCredentialResponse, errRet error)

func (*EksService) DescribeEKSClusters

func (me *EksService) DescribeEKSClusters(ctx context.Context, id string, name string) (eksClusters []EksClusterInfo, errRet error)

func (*EksService) DescribeEksCluster

func (me *EksService) DescribeEksCluster(ctx context.Context, id string) (clusterInfo EksClusterInfo, has bool, errRet error)

func (*EksService) DescribeEksContainerInstanceById

func (me *EksService) DescribeEksContainerInstanceById(ctx context.Context, id string) (instance *tke.EksCi, has bool, errRet error)

func (*EksService) DescribeEksContainerInstancesByFilter

func (me *EksService) DescribeEksContainerInstancesByFilter(ctx context.Context, filters []*tke.Filter, limit uint64, offset uint64) (instances []*tke.EksCi, errRet error)

func (*EksService) UpdateEksCluster

func (me *EksService) UpdateEksCluster(ctx context.Context, request *tke.UpdateEKSClusterRequest) (errRet error)

func (*EksService) UpdateEksContainerInstances

func (me *EksService) UpdateEksContainerInstances(ctx context.Context, request *tke.UpdateEKSContainerInstanceRequest) (errRet error)

type InstanceAdvancedSettings

type InstanceAdvancedSettings struct {
	MountTarget        string
	DockerGraphPath    string
	PreStartUserScript string
	UserScript         string
	Unschedulable      int64
	DesiredPodNum      int64
	Labels             []*tke.Label
	DataDisks          []*tke.DataDisk
	ExtraArgs          tke.InstanceExtraArgs
}

type InstanceInfo

type InstanceInfo struct {
	InstanceId                   string
	InstanceRole                 string
	InstanceState                string
	FailedReason                 string
	NodePoolId                   string
	CreatedTime                  string
	InstanceAdvancedSettings     *tke.InstanceAdvancedSettings
	InstanceDataDiskMountSetting *tke.InstanceDataDiskMountSetting
	LanIp                        string
}

type OverrideSettings

type OverrideSettings struct {
	Master []tke.InstanceAdvancedSettings
	Work   []tke.InstanceAdvancedSettings
}

type PrometheusConfigIds

type PrometheusConfigIds struct {
	InstanceId  string
	ClusterType string
	ClusterId   string
}

type RawValuesType

type RawValuesType string

type RunInstancesForNode

type RunInstancesForNode struct {
	Master []string
	Work   []string
}

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 NewTkeService

func NewTkeService(client *connectivity.TencentCloudClient) TkeService

func (*TkeService) AcquireClusterAdminRole

func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)

func (*TkeService) AddVpcCniSubnets

func (me *TkeService) AddVpcCniSubnets(ctx context.Context, id string, subnets []string, vpcId string) (errRet error)

func (*TkeService) CheckClusterVersion

func (me *TkeService) CheckClusterVersion(ctx context.Context, id string, clusterVersion string) (isOk bool, errRet error)

func (*TkeService) CheckInstancesUpgradeAble

func (me *TkeService) CheckInstancesUpgradeAble(ctx context.Context, id string, upgradeType string) (instanceIds []string, errRet error)

func (*TkeService) CheckOneOfClusterNodeReady

func (me *TkeService) CheckOneOfClusterNodeReady(ctx context.Context, clusterId string, mustHaveWorkers bool) error

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, tags []*tke.Tag) (asGroupId string, errRet error)

func (*TkeService) CreateClusterVirtualNodePool

func (me *TkeService) CreateClusterVirtualNodePool(ctx context.Context, request *tke.CreateClusterVirtualNodePoolRequest) (id string, errRet error)

func (*TkeService) CreateExtensionAddon

func (me *TkeService) CreateExtensionAddon(ctx context.Context, clusterName, reqBody string) (errRet error)

func (*TkeService) DeleteBackupStorageLocation

func (me *TkeService) DeleteBackupStorageLocation(ctx context.Context, name 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 (me *TkeService) DeleteClusterEndpoint(ctx context.Context, id string, isInternet bool) (errRet error)

func (*TkeService) DeleteClusterInstances

func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)

if cluster is creating, return error:TencentCloudSDKError] Code=tccommon.InternalError.ClusterState

func (*TkeService) DeleteClusterNodePool

func (me *TkeService) DeleteClusterNodePool(ctx context.Context, id, nodePoolId string, deleteKeepInstance bool) (errRet error)

func (*TkeService) DeleteClusterVirtualNodePool

func (me *TkeService) DeleteClusterVirtualNodePool(ctx context.Context, request *tke.DeleteClusterVirtualNodePoolRequest) (errRet error)

func (*TkeService) DeleteExtensionAddon

func (me *TkeService) DeleteExtensionAddon(ctx context.Context, clusterName, addon string) (errRet error)

func (*TkeService) DeleteKubernetesAddonAttachmentById added in v1.81.103

func (me *TkeService) DeleteKubernetesAddonAttachmentById(ctx context.Context) (errRet error)

func (*TkeService) DeleteKubernetesAuthAttachmentById added in v1.81.103

func (me *TkeService) DeleteKubernetesAuthAttachmentById(ctx context.Context, clusterId string) (errRet error)

func (*TkeService) DeleteTkeEncryptionProtectionById

func (me *TkeService) DeleteTkeEncryptionProtectionById(ctx context.Context, clusterId string) (errRet error)

func (*TkeService) DescribeBackupStorageLocations

func (me *TkeService) DescribeBackupStorageLocations(ctx context.Context, names []string) (locations []*tke.BackupStorageLocation, 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 (me *TkeService) DescribeClusterConfig(ctx context.Context, id string, isPublic bool) (config string, errRet error)

func (*TkeService) DescribeClusterEndpointStatus

func (me *TkeService) DescribeClusterEndpointStatus(ctx context.Context, id string, isExtranet bool) (status string, message string, errRet error)

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 (me *TkeService) DescribeEnableVpcCniProgress(ctx context.Context, id string) (status, message string, errRet error)

func (*TkeService) DescribeExtensionAddon

func (me *TkeService) DescribeExtensionAddon(ctx context.Context, clusterName, addon string) (result string, has bool, errRet error)

func (*TkeService) DescribeExtensionAddonList

func (me *TkeService) DescribeExtensionAddonList(ctx context.Context, clusterId string) (AppList, error)

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) DescribeKubernetesAddonAttachmentById added in v1.81.103

func (me *TkeService) DescribeKubernetesAddonAttachmentById(ctx context.Context) (ret *tke.ForwardApplicationRequestV3ResponseParams, errRet error)

func (*TkeService) DescribeKubernetesAddonById added in v1.81.93

func (me *TkeService) DescribeKubernetesAddonById(ctx context.Context, clusterId string, addonName string) (ret *tke.Addon, errRet error)

func (*TkeService) DescribeKubernetesAuthAttachmentById added in v1.81.103

func (me *TkeService) DescribeKubernetesAuthAttachmentById(ctx context.Context, clusterId string) (ret *tke.DescribeClusterAuthenticationOptionsResponseParams, errRet error)

func (*TkeService) DescribeKubernetesAvailableClusterVersionsByFilter

func (me *TkeService) DescribeKubernetesAvailableClusterVersionsByFilter(ctx context.Context, param map[string]interface{}) (ret *tke.DescribeAvailableClusterVersionResponseParams, errRet error)

func (*TkeService) DescribeKubernetesBackupStorageLocationById added in v1.81.99

func (me *TkeService) DescribeKubernetesBackupStorageLocationById(ctx context.Context, name string) (ret *tke.BackupStorageLocation, errRet error)

func (*TkeService) DescribeKubernetesChartsByFilter added in v1.81.99

func (me *TkeService) DescribeKubernetesChartsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.AppChart, errRet error)

func (*TkeService) DescribeKubernetesClusterAttachmentById added in v1.81.99

func (me *TkeService) DescribeKubernetesClusterAttachmentById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)

func (*TkeService) DescribeKubernetesClusterAttachmentById1 added in v1.81.99

func (me *TkeService) DescribeKubernetesClusterAttachmentById1(ctx context.Context, instanceId string) (ret *cvm.Instance, errRet error)

func (*TkeService) DescribeKubernetesClusterAttachmentById2 added in v1.81.99

func (me *TkeService) DescribeKubernetesClusterAttachmentById2(ctx context.Context, instanceId string, clusterId string) (ret *tke.Instance, errRet error)

func (*TkeService) DescribeKubernetesClusterAuthenticationOptionsByFilter added in v1.81.99

func (me *TkeService) DescribeKubernetesClusterAuthenticationOptionsByFilter(ctx context.Context, param map[string]interface{}) (ret *tke.DescribeClusterAuthenticationOptionsResponseParams, errRet error)

func (*TkeService) DescribeKubernetesClusterById added in v1.81.103

func (me *TkeService) DescribeKubernetesClusterById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)

func (*TkeService) DescribeKubernetesClusterById1 added in v1.81.103

func (me *TkeService) DescribeKubernetesClusterById1(ctx context.Context, clusterId string) (ret *tke.DescribeClusterInstancesResponseParams, errRet error)

func (*TkeService) DescribeKubernetesClusterById2 added in v1.81.103

func (me *TkeService) DescribeKubernetesClusterById2(ctx context.Context, clusterId string) (ret *tke.DescribeClusterSecurityResponseParams, errRet error)

func (*TkeService) DescribeKubernetesClusterCommonNamesByFilter added in v1.81.99

func (me *TkeService) DescribeKubernetesClusterCommonNamesByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.CommonName, errRet error)

func (*TkeService) DescribeKubernetesClusterInstancesByFilter

func (me *TkeService) DescribeKubernetesClusterInstancesByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.Instance, errRet error)

func (*TkeService) DescribeKubernetesClusterLevelsByFilter added in v1.81.99

func (me *TkeService) DescribeKubernetesClusterLevelsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.ClusterLevelAttribute, errRet error)

func (*TkeService) DescribeKubernetesClusterMasterAttachmentById added in v1.81.138

func (me *TkeService) DescribeKubernetesClusterMasterAttachmentById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)

func (*TkeService) DescribeKubernetesClusterMasterAttachmentById1 added in v1.81.138

func (me *TkeService) DescribeKubernetesClusterMasterAttachmentById1(ctx context.Context, instanceId string) (ret *cvm.Instance, errRet error)

func (*TkeService) DescribeKubernetesClusterMasterAttachmentById2 added in v1.81.138

func (me *TkeService) DescribeKubernetesClusterMasterAttachmentById2(ctx context.Context, clusterId string, instanceId string, nodeRole string) (ret *tke.DescribeClusterInstancesResponseParams, errRet error)

func (*TkeService) DescribeKubernetesClusterNativeNodePoolsByFilter added in v1.81.106

func (me *TkeService) DescribeKubernetesClusterNativeNodePoolsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke2.NodePool, errRet error)

func (*TkeService) DescribeKubernetesClusterNodePoolsByFilter

func (me *TkeService) DescribeKubernetesClusterNodePoolsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.NodePool, errRet error)

func (*TkeService) DescribeKubernetesClustersByFilter added in v1.81.99

func (me *TkeService) DescribeKubernetesClustersByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.Cluster, errRet error)

func (*TkeService) DescribeKubernetesEncryptionProtectionById added in v1.81.99

func (me *TkeService) DescribeKubernetesEncryptionProtectionById(ctx context.Context, clusterId string) (ret *tke.DescribeEncryptionStatusResponseParams, errRet error)

func (*TkeService) DescribeKubernetesHealthCheckPolicyById added in v1.81.123

func (me *TkeService) DescribeKubernetesHealthCheckPolicyById(ctx context.Context, clusterId string, name string) (ret *tke2.HealthCheckPolicy, errRet error)

func (*TkeService) DescribeKubernetesLogConfigById added in v1.81.126

func (me *TkeService) DescribeKubernetesLogConfigById(ctx context.Context, clusterId string, logConfigName string, clusterType string) (ret *tke.DescribeLogConfigsResponseParams, errRet error)

func (*TkeService) DescribeKubernetesNativeNodePoolById added in v1.81.106

func (me *TkeService) DescribeKubernetesNativeNodePoolById(ctx context.Context, clusterId string, nodePoolId string) (ret *tke2.NodePool, errRet error)

func (*TkeService) DescribeKubernetesNodePoolById added in v1.81.103

func (me *TkeService) DescribeKubernetesNodePoolById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)

func (*TkeService) DescribeKubernetesNodePoolById1 added in v1.81.103

func (me *TkeService) DescribeKubernetesNodePoolById1(ctx context.Context, clusterId string, nodePoolId string) (ret *tke.NodePool, errRet error)

func (*TkeService) DescribeKubernetesScaleWorkerById added in v1.81.103

func (me *TkeService) DescribeKubernetesScaleWorkerById(ctx context.Context, clusterId string) (ret *tke.DescribeClustersResponseParams, errRet error)

func (*TkeService) DescribeKubernetesScaleWorkerById1 added in v1.81.103

func (me *TkeService) DescribeKubernetesScaleWorkerById1(ctx context.Context) (ret *cvm.DescribeInstancesResponseParams, errRet error)

func (*TkeService) DescribeKubernetesServerlessNodePoolById added in v1.81.103

func (me *TkeService) DescribeKubernetesServerlessNodePoolById(ctx context.Context, clusterId string, nodePoolId string) (ret *tke.VirtualNodePool, errRet error)

func (*TkeService) DescribeLogSwitches

func (me *TkeService) DescribeLogSwitches(ctx context.Context, clusterId string) (resp []*tke.Switch, errRet error)

func (*TkeService) DescribeNodePool

func (me *TkeService) DescribeNodePool(ctx context.Context, clusterId string, nodePoolId string) (
	nodePool *tke.NodePool,
	has bool,
	errRet error,
)

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 (me *TkeService) EnableVpcCniNetworkType(ctx context.Context, id string, vpcCniType string, enableStaticIp bool, subnets []string, expiredSeconds uint64) (errRet error)

func (*TkeService) GetAddonNameFromJson

func (me *TkeService) GetAddonNameFromJson(reqJson string) (name string, err error)

func (*TkeService) GetAddonReqBody

func (me *TkeService) GetAddonReqBody(addon, version string, values []*string, rawValues, rawValuesType *string) (string, error)

func (*TkeService) GetAddonsPath

func (me *TkeService) GetAddonsPath(cluster, addon string) string

func (*TkeService) GetTkeAppChartList

func (me *TkeService) GetTkeAppChartList(ctx context.Context, request *tke.GetTkeAppChartListRequest) (info []*tke.AppChart, errRet error)

func (*TkeService) GetUpgradeInstanceResult

func (me *TkeService) GetUpgradeInstanceResult(ctx context.Context, id string) (
	done bool,
	errRet error,
)

func (*TkeService) InstallLogAgent

func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)

func (*TkeService) ModifyClusterAsGroupAttribute

func (me *TkeService) ModifyClusterAsGroupAttribute(ctx context.Context, id, asGroupId string, maxSize, minSize int64) (errRet error)

func (*TkeService) ModifyClusterAttribute

func (me *TkeService) ModifyClusterAttribute(ctx context.Context, id string, projectId int64, clusterName, clusterDesc, clusterLevel string, autoUpgradeClusterLevel bool) (errRet error)

func (*TkeService) ModifyClusterAuthenticationOptions

func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)

func (*TkeService) ModifyClusterEndpointSG

func (me *TkeService) ModifyClusterEndpointSG(ctx context.Context, id string, securityGroup string) (errRet error)

func (*TkeService) ModifyClusterEndpointSP

func (me *TkeService) ModifyClusterEndpointSP(ctx context.Context, id string, securityPolicies []string) (errRet error)

func (*TkeService) ModifyClusterNodePool

func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, nodePoolId string, name string, enableAutoScale bool, minSize int64, maxSize int64, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, tags map[string]string, deletionProtection bool) (errRet error)

func (*TkeService) ModifyClusterNodePoolDesiredCapacity

func (me *TkeService) ModifyClusterNodePoolDesiredCapacity(ctx context.Context, clusterId, nodePoolId string, desiredCapacity int64) (errRet error)

func (*TkeService) ModifyClusterNodePoolGlobalConfig

func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)

node pool global config

func (*TkeService) ModifyClusterNodePoolInstanceTypes

func (me *TkeService) ModifyClusterNodePoolInstanceTypes(ctx context.Context, clusterId, nodePoolId string, instanceTypes []*string) (errRet error)

func (*TkeService) ModifyClusterVersion

func (me *TkeService) ModifyClusterVersion(ctx context.Context, id string, clusterVersion string, extraArgs interface{}) (errRet error)

func (*TkeService) ModifyClusterVirtualNodePool

func (me *TkeService) ModifyClusterVirtualNodePool(ctx context.Context, request *tke.ModifyClusterVirtualNodePoolRequest) (errRet error)

func (*TkeService) ModifyDeletionProtection

func (me *TkeService) ModifyDeletionProtection(ctx context.Context, id string, enable bool) (errRet error)

func (*TkeService) PollingAddonsPhase

func (me *TkeService) PollingAddonsPhase(ctx context.Context, clusterId, addonName string, addonResponseData *AddonResponseData) (string, bool, error)

func (*TkeService) ProcessExtensionAddons

func (me *TkeService) ProcessExtensionAddons(ctx context.Context, request *tke.ForwardApplicationRequestV3Request) (response *tke.ForwardApplicationRequestV3Response, err error)

func (*TkeService) SwitchClusterAudit

func (me *TkeService) SwitchClusterAudit(ctx context.Context, clusterId, logSetId, topicId string,
	enable, deleteAuditLog bool) error

func (*TkeService) SwitchEventPersistence

func (me *TkeService) SwitchEventPersistence(ctx context.Context, clusterId, logSetId, topicId string,
	enable, deleteEventLog bool) error

func (*TkeService) SwitchLogAgent

func (me *TkeService) SwitchLogAgent(ctx context.Context, clusterId, rootDir string, enable bool) error

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) UpdateExtensionAddon

func (me *TkeService) UpdateExtensionAddon(ctx context.Context, clusterName, addon, reqBody string) (errRet error)

func (*TkeService) UpgradeClusterInstances

func (me *TkeService) UpgradeClusterInstances(ctx context.Context, id string, upgradeType string, instanceIds []string) (errRet error)

func (*TkeService) WaitForAuthenticationOptionsUpdateSuccess

func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, oidc *tke.OIDCConfigAuthenticationOptions, errRet error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL