Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

fix: validate namespace when validating workload#294

Merged
shashwathi merged 1 commit into
vmware-tanzu:mainfrom
odinnordico:issue-271-image-upload-no-namespace
Aug 30, 2022
Merged

fix: validate namespace when validating workload#294
shashwathi merged 1 commit into
vmware-tanzu:mainfrom
odinnordico:issue-271-image-upload-no-namespace

Conversation

@odinnordico
Copy link
Copy Markdown
Contributor

Pull request

What this PR does / why we need it

Validates if the provided namespace can be accessed by the user when validating if workload exists.

Which issue(s) this PR fixes

Fixes #271

Describe testing done for PR

Loca installation of plugin against TAP1.2 cluster in GKE

image

Try to create a workload from source code in the default namespace and a non-existing namespace.

Additional information or special notes for your reviewer

This validation applies to all the apply/create subcommands, if the namespace does not exist or is not accessible for the user it will throw an error

Comment thread pkg/commands/workload_create_test.go Outdated
Signed-off-by: Diego Alfonso <dalfonso@vmware.com>
@odinnordico odinnordico force-pushed the issue-271-image-upload-no-namespace branch from d7a9552 to 7c7060b Compare August 25, 2022 21:16
@odinnordico odinnordico requested a review from shashwathi August 25, 2022 22:24
@shashwathi shashwathi merged commit cc0a0b1 into vmware-tanzu:main Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source image is uploaded when namespace is invalid for workload creation/apply

3 participants