Skip to content

support tencent cfs csi driver default config#6

Open
wangao1236 wants to merge 1 commit into
tkestack:masterfrom
wangao1236:jasonawang-cfs-support
Open

support tencent cfs csi driver default config#6
wangao1236 wants to merge 1 commit into
tkestack:masterfrom
wangao1236:jasonawang-cfs-support

Conversation

@wangao1236
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pkg/config/config.go Outdated
func (c *TencentCloudConfig) AddFlags() {
flag.StringVar(&c.SecretID, "tencent-cloud-secret-id", "admin", "API Secret ID of Tencent Cloud")
flag.StringVar(&c.SecretKey, "tencent-cloud-secret-key", "admin", "API Secret Key of Tencent Cloud")
flag.StringVar(&c.VpcID, "tencent-cloud-cfs-vpc-id", "vpc-xxxxxxxx", "VpcID used in TencentCloud CFS storage")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to config these options for csi-operator in tke.

import (
"encoding/base64"
"fmt"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to delete this line.

subnetID = e.config.SubnetID
}

if len(secretID) > 0 && len(secretKey) > 0 && len(subnetID) > 0 && len(vpcID) > 0 {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subnetID and vpcID are not necessary parameters for CBS.

@wangao1236 wangao1236 force-pushed the jasonawang-cfs-support branch from 382509f to b6b8a23 Compare March 31, 2020 10:06
@wangao1236 wangao1236 force-pushed the jasonawang-cfs-support branch from b6b8a23 to 1605a96 Compare April 10, 2020 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants