-
Notifications
You must be signed in to change notification settings - Fork 440
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
feat: Add support tenant update via image available to operator #266
Conversation
I made some more improvements
|
https://github.com/nitisht/minio-operator/pull/1 here is the PR @nitisht |
The update flow is - Operator has access to a new MinIO Docker Image. - Admin requests an update of a certain tenant using `kubectl apply`. - Operator identifies this request and fetches the minio binary and other relevant files to a local directory. - Operator makes minio admin api call with a URL of its own webhook server. - Tenant fetches the binary and other files extracted in previous step and updates itself. - Operator deletes all temporary files after successful update.
The update flow is - Operator has access to a new MinIO Docker Image. - Admin requests an update of a certain tenant using `kubectl apply`. - Operator identifies this request and fetches the minio binary and other relevant files to a local directory. - Operator makes minio admin api call with a URL of its own webhook server. - Tenant fetches the binary and other files extracted in previous step and updates itself. - Operator deletes all temporary files after successful update.
Works for all situations @nitisht |
// Correct URL could not be obtained, not proceeding to update. | ||
return fmt.Errorf("Unable to get canonical update URL, failed with %w", err) | ||
return fmt.Errorf("Unable to get canonical update URL for Tenant '%s', failed with %w", name, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing through all this error returns, I think maybe we should also update the status of the Tenant to indicate the Update failed for X reason
Please apply this with as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fully tested and working fine
The update flow is
kubectl apply
.and other relevant files to a local directory.
server.
previous step and updates itself.