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

Resource name to lowercase #4045

Merged
merged 10 commits into from
Jun 7, 2023

Conversation

ayushgml
Copy link
Contributor

@ayushgml ayushgml commented Jun 6, 2023

This PR closes:

Changes

  • Added custom validations for name, namespace and image name
  • Added a Read more External link with error box whenever errors are present
  • Added VALID_RESOURCE_NAME_REGEX in constants

How to test it

-Run electron app and try to create a k8s resource with invalid name or namespace or image name.

Screenshots

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Copy link
Member

@topliceanurazvan topliceanurazvan left a comment

Choose a reason for hiding this comment

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

Just a small change, the rest lgtm!

<S.ErrorText>
<S.ReadMoreLink
onClick={() => {
window.open('https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names');
Copy link
Member

Choose a reason for hiding this comment

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

Let's use shell.openExternal instead of window.open

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ayushgml
Copy link
Contributor Author

ayushgml commented Jun 7, 2023

Roger that!🙌🏼

@topliceanurazvan topliceanurazvan merged commit f245c90 into kubeshop:main Jun 7, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert resource names to lowercase to avoid InvalidValue error
2 participants