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

optimize datacopy job name generating #1196

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

buffalo1024
Copy link
Contributor

What this PR does / why we need it:

generated jobname end with character "-" is invalid against RFC 1123 subdomain while creating job

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Signed-off-by: buffalo1024 <yikaichen@yikaichendeMacBook-Pro.local>
@codecov-commenter
Copy link

Codecov Report

Merging #1196 (cf618c0) into main (997ca1b) will not change coverage.
The diff coverage is n/a.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@           Coverage Diff           @@
##             main    #1196   +/-   ##
=======================================
  Coverage   38.13%   38.13%           
=======================================
  Files          25       25           
  Lines        1980     1980           
=======================================
  Hits          755      755           
  Misses       1125     1125           
  Partials      100      100           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@buffalo1024 buffalo1024 added the kind/bug Categorizes issue or PR as related to a bug. label Oct 26, 2023
@buffalo1024 buffalo1024 linked an issue Oct 26, 2023 that may be closed by this pull request
@@ -448,5 +449,21 @@ func generateJobName(mName string, pvcName string) string {
if len(pvcName) > 25 {
pvcName = pvcName[:25]
}
return fmt.Sprintf("%s-datacopy-%s", mName, pvcName)
jobName := fmt.Sprintf("%s-datacopy-%s", mName, pvcName)
Copy link
Member

Choose a reason for hiding this comment

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

what does this name %s-datacopy-%s mean and what's releationship with LocalVolumeMigrate and LocalVolume?

maybe the name of LocalVoumeMigrate is enough for the datacopy job?

@buffalo1024 buffalo1024 merged commit d52d782 into hwameistor:main Oct 27, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid jobname while migrate LocalVolumeGroup
3 participants