-
Notifications
You must be signed in to change notification settings - Fork 457
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
Feat:supports custom folder expressions and setting folder names by annotation #299
base: master
Are you sure you want to change the base?
Conversation
@kuengroc |
@derekbit |
Got it. Do we need the full path or just need to specify the folder name |
The base path required for a random directory may be inconsistent with the specified directory. For security reasons, it is recommended to provide two base path settings. |
Sorry, what does |
One is used for the use of random directories, but the prefix of the random directory is often inconsistent with the prefix of the specified directory, but it is necessary to restrict the use of the specified directory, so two base paths are required. |
Sounds good. Let me know if the PR is ready. I will continue the review. Thank you. |
@kuengroc The test failed. Could you please check the failure? Thank you. |
5111a92
to
a10a078
Compare
Integration testing has been OK |
@kuengroc Can you help add the usage in the README.md as well? Thank you. |
REASME.md Added completed |
@@ -653,5 +662,10 @@ func canonicalizeConfig(data *ConfigData) (cfg *Config, err error) { | |||
} else { | |||
cfg.CmdTimeoutSeconds = defaultCmdTimeoutSeconds | |||
} | |||
if data.FolderExpression != "" { | |||
cfg.FolderExpression = data.FolderExpression |
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.
I'm thinking of we can validate the input of the data.FolderExpression
?
If there is a typo or capitalization prob, for example, data.FolderExpression = {{.PVName}}-{{.namespace}}-{{.pvcNane}}
, what will happen?
@@ -155,7 +155,8 @@ data: | |||
"node":"yasker-lp-dev3", | |||
"paths":[] | |||
} | |||
] | |||
], | |||
"folderExpression":"{{.pvName}}-{{.namespace}}-{{.pvcName}}" |
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.
Can we have test for folderExpression
?
@kuengroc Will you update the PR soon? I'd like to put it in the upcoming v0.0.24. Many thanks. |
Ping @kuengroc |
No description provided.