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

Added Validation Regex and Message to the user provided registry username #2620

Merged
merged 2 commits into from Apr 25, 2023

Conversation

alexandradragodan
Copy link
Contributor

Added Validation Regex and Message to the user provided registry username

What issue type does this pull request address? (keep at least one, remove the others)

/kind enhancement

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves #
Fixes ENG-701

Please provide a short message that should be published in the DevSpace release notes
Fixed an issue where DevSpace connected registry username was not checked for UpperCase letters.

What else do we need to know?

@netlify
Copy link

netlify bot commented Apr 5, 2023

Deploy Preview for devspace-docs canceled.

Name Link
🔨 Latest commit 066263b
🔍 Latest deploy log https://app.netlify.com/sites/devspace-docs/deploys/642eb98227202b00082a2612

@89luca89
Copy link
Collaborator

89luca89 commented Apr 6, 2023

LGTM

…name

Signed-off-by: Alexandra Dragodan <alexandra@loft.sh>
Signed-off-by: Alexandra Dragodan <alexandra@loft.sh>
@alexandradragodan alexandradragodan force-pushed the alexandra/devspace-init-lowercase-registry-username branch from b96947b to 066263b Compare April 6, 2023 12:22
@@ -172,8 +172,10 @@ func (m *manager) AddImage(imageName, image, projectNamespace, dockerfile string
registryHostname = generator.GithubContainerRegistry
} else {
registryHostname, err = m.log.Question(&survey.QuestionOptions{
Question: "Please provide the registry hostname without the image path (e.g. gcr.io, ghcr.io, ecr.io)",
DefaultValue: "gcr.io",
Question: "Please provide the registry hostname without the image path (e.g. gcr.io, ghcr.io, ecr.io)",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove hostname check

@FabianKramm FabianKramm merged commit 01aa322 into main Apr 25, 2023
18 checks passed
@FabianKramm FabianKramm deleted the alexandra/devspace-init-lowercase-registry-username branch April 25, 2023 09:49
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.

None yet

3 participants