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

Namespace referenced for duplicate DSC and DSC Init Error Messages #645

Closed
strangiato opened this issue Oct 18, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@strangiato
Copy link
Contributor

Describe the bug
When a second instance of the DSC or DSCInit is created it throws the following error in the operator pod:

only one instance of DataScienceCluster object is allowed. Update existing instance on namespace and name default2

The error is generated from the code here:

message := fmt.Sprintf("only one instance of DataScienceCluster object is allowed. Update existing instance on namespace %s and name %s", req.Namespace, req.Name)

Which referes to req.Namespace which is blank.

Since both objects are cluster scoped objects they won't ever report a namespace.

To Reproduce
Steps to reproduce the behavior:

  1. Create a DSC
  2. Create a DSC with a new name
  3. View error log in operator pod

Expected behavior
The reference to namespace should probably be removed from the error message so the error message makes a little more sense.

I'm guessing that all of the references to req.Namespace can be removed from the object but not 100% sure if it is needed for some reason.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Status: No status
Status: Done
Development

No branches or pull requests

2 participants