-
Notifications
You must be signed in to change notification settings - Fork 764
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
fix issue 1793 #1798
fix issue 1793 #1798
Conversation
|
Welcome @sosan! |
@sosan thanks for working on this. You should update files in |
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.
Thanks for working on this. Left some comments below!
if len(envName) > 63 { | ||
envName = envName[len(envName)-63:] | ||
} |
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 think that we should delete this bloc here
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.
applied
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.
from k8sutils_test.go this test gets last 63 characters
{
name: "check that ./ is removed",
args: args{
name: "abcdefghijklnmopqrstuvxyzabcdefghijklmnopqrstuvwxyzabcdejghijkl$Hereisadditional",
},
want: "rstuvxyzabcdefghijklmnopqrstuvwxyzabcdejghijkl$Hereisadditional",
},
and gets affected by this removed code:
if len(envName) > 63 {
envName = envName[len(envName)-63:]
}
The code LGTM. Are you able to add some fixture tests? |
@cdrage rebased |
@sosan For some reason your rebase went wrong. |
@AhmedGrati done :) |
looks like something still went wrong.. over 30 commits in this PR? Maybe your main branch isn't synced to the upstream kubernetes/kompose branch? |
* fix issue 1793 kubernetes#1793 *add tests Signed-off-by: jose luis <[email protected]> formated k8utils_test.go Signed-off-by: jose luis <[email protected]> labels formatted as name"-"envName to match fixtures when performing the gitHub action Signed-off-by: jose luis <[email protected]> removed this piece code because apply it later, and it is redundant Signed-off-by: jose luis <[email protected]> Refactor test in k8sutils_test.go to extract the last 63 characters. This addresses the impact of the removed code that previously truncated the input with if len(envName) > 63 { envName = envName[len(envName)-63:] } Signed-off-by: jose luis <[email protected]> changed to name function to getUsableNameEnvFile Signed-off-by: jose luis <[email protected]> fix issue 1793 * fix issue 1793 kubernetes#1793 *add tests Signed-off-by: jose luis <[email protected]> labels formatted as name"-"envName to match fixtures when performing the gitHub action Signed-off-by: jose luis <[email protected]> changed to name function to getUsableNameEnvFile Signed-off-by: jose luis <[email protected]>
@cdrage squashed and rebased again :) |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdrage, sosan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
Which issue(s) this PR fixes:
Special notes for your reviewer: