-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: master
Are you sure you want to change the base?
Conversation
pkg/config/config.go
Outdated
} | ||
|
||
// 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") |
There was a problem hiding this comment.
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" | |||
|
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
382509f
to
b6b8a23
Compare
b6b8a23
to
1605a96
Compare
No description provided.