Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support tencent cfs csi driver default config #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangao1236
Copy link
Contributor

No description provided.

}

// AddFlags add the TencentCloud configurations to global flag.
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
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.

@@ -20,7 +20,6 @@ package enhancer
import (
"encoding/base64"
"fmt"

Copy link
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
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.

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