Conversation
|
|
|
Welcome @sosan! |
|
@sosan thanks for working on this. You should update files in |
AhmedGrati
left a comment
There was a problem hiding this comment.
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.
I think that we should delete this bloc here
There was a problem hiding this comment.
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 <2064537+sosan@users.noreply.github.com> formated k8utils_test.go Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com> labels formatted as name"-"envName to match fixtures when performing the gitHub action Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com> removed this piece code because apply it later, and it is redundant Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com> 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 <2064537+sosan@users.noreply.github.com> changed to name function to getUsableNameEnvFile Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com> fix issue 1793 * fix issue 1793 kubernetes#1793 *add tests Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com> labels formatted as name"-"envName to match fixtures when performing the gitHub action Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com> changed to name function to getUsableNameEnvFile Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
|
@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 DetailsNeeds 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: