We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@kgcarr
Currently, MongoDB operator only supports create and delete function. We need to support update function when users edit MongoDB custom resource.
The text was updated successfully, but these errors were encountered:
@kgcarr I can provide an idea about how to implement the update function.
IsAlreadyExists
err = r.client.Create(context.TODO(), obj) if err != nil && !errors.IsAlreadyExists(err) { return fmt.Errorf("could not Create resource: %v", err) }
err = r.client.Create(context.TODO(), obj) if err != nil && !errors.IsAlreadyExists(err) { return fmt.Errorf("could not Create resource: %v", err) } if errors.IsAlreadyExists(err) { err = r.client.Update(context.TODO(), obj) if err != nil { return fmt.Errorf("could not Update resource: %v", err) } }
I am sure if all the MongoDB resources are permitted to be updated in the day2 option. You may need to take a look at this.
Sorry, something went wrong.
kgcarr
No branches or pull requests
@kgcarr
Currently, MongoDB operator only supports create and delete function. We need to support update function when users edit MongoDB custom resource.
The text was updated successfully, but these errors were encountered: