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

Resolve index out of range when running locally #670

Closed
wants to merge 1 commit into from

Conversation

EdwinWalela
Copy link
Contributor

This seeks to close #668.

Removed the if block so that storageAddr is used, preventing the controller from panicking if RUNTIME_NAMESPACE is non-empty and doesn't contain hyphens

main.go Outdated
svcParts := strings.Split(os.Getenv("HOSTNAME"), "-")
return fmt.Sprintf("%s.%s",
strings.Join(svcParts[:len(svcParts)-2], "-"), os.Getenv("RUNTIME_NAMESPACE"))
}

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

@EdwinWalela thanks for the quick turn around. Can you please remove the extra line and sign-off the commit to ensure it passes the DCO check?

You can signoff the current commit with git commit --amend --signoff and then just need to push it back up.

More info on DCO checks:
https://wiki.linuxfoundation.org/dco#:~:text=The%20DCO%20is%20a%20per,org%2F%20for%20that%20particular%20contribution.

@EdwinWalela
Copy link
Contributor Author

@pjbgf Thanks for the feedback. I've signed off on the latest commit. Let me know if there is more I should do.

@pjbgf
Copy link
Member

pjbgf commented Apr 13, 2022

@EdwinWalela do you mind squashing both commits into one please?

I have noticed that the second commit message has two Signed-off-by: lines, but in the first the email was not within <>. In the final squashed commit you can have a single one.

@EdwinWalela EdwinWalela force-pushed the edwin-dev branch 2 times, most recently from b45ec17 to 88db86d Compare April 13, 2022 13:40
@EdwinWalela
Copy link
Contributor Author

@pjbgf I have squashed the previous commits and signed it off with Signed-off-by: full name <email> however, the DCO check has still failed. Is there something I have missed?

@pjbgf
Copy link
Member

pjbgf commented Apr 13, 2022

@EdwinWalela Your branch current have 4 commits, you can drop the last 2 by resetting the state back to the second commit:

git reset 1bd61efa6389fa01a20a06d33542e5b2973f8078

You can then squash the two commits by rebasing interactively:

git rebase -i HEAD~2

You will be shown a list of the commits prefixed with "pick", change the second commit's prefix to "s" or "squash". Save and exit (:wq).
Then you will be presented with the commit message, which you can amend to become a single message with the correct signature. Save and exit (:wq).

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>

Resolve index out of range when running locally

Signed-off-by: edwinwalela <edwinwalela@gmail.com>
@EdwinWalela
Copy link
Contributor Author

@pjbgf Thanks for the help, I noticed I did a mistake on renaming the sign off. I'll open a new PR instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve index out of range when running locally
2 participants