Skip to content

Commit

Permalink
Merge pull request #1074 from sykim-etri/set-default-container-runtim…
Browse files Browse the repository at this point in the history
…e-as-containerd

Set default container runtime as containerd (fix #1011)
  • Loading branch information
powerkimhub authored Feb 15, 2024
2 parents 6be2f10 + 1b4d9c9 commit bec2ec1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ import (
// })
// }

const (
defaultContainerRuntime = "containerd"
)

type TencentClusterHandler struct {
RegionInfo idrv.RegionInfo
CredentialInfo idrv.CredentialInfo
Expand Down Expand Up @@ -756,6 +760,9 @@ func getCreateClusterRequest(clusterHandler *TencentClusterHandler, clusterInfo
ClusterDescription: common.StringPtr(desc_str), // option, #CB-SPIDER:PMKS:SECURITYGROUP:sg-c00t00ih
}
request.ClusterType = common.StringPtr("MANAGED_CLUSTER") //default value
request.ClusterAdvancedSettings = &tke.ClusterAdvancedSettings{
ContainerRuntime: common.StringPtr(defaultContainerRuntime),
}

return request, err
}
Expand Down

0 comments on commit bec2ec1

Please sign in to comment.