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

Fix vtctld deployment to allow ListBackups to work #356

Merged
merged 3 commits into from
Jan 16, 2023

Conversation

GuptaManan100
Copy link
Collaborator

Description

This PR passes the required flags, volumes, volume mounts and environment variables to get ListBackups to work with vtctld.

Related Issues

@GuptaManan100 GuptaManan100 added the bug Something isn't working label Jan 10, 2023
Comment on lines 182 to 188
// We don't know which location to use for vtctld.
// If there are more than one locations configured, we can only choose one.
// Here we opt to take the first one.
if len(vt.Spec.Backup.Locations) != 0 {
spec.BackupLocation = &vt.Spec.Backup.Locations[0]
}
specs = append(specs, spec)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This here is worth noting. A user can setup multiple backup locations and use different ones in different tablet pools. However, we can only configure the vtctld with the flags to support one implementation. For now I have chosen to take the first one.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be fine. Even though operator's spec allows this, it is not supported by Vitess itself.

@GuptaManan100 GuptaManan100 merged commit 0c292c7 into main Jan 16, 2023
@GuptaManan100 GuptaManan100 deleted the list-backups-fix branch January 16, 2023 14:39
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
None yet
Development

Successfully merging this pull request may close these issues.

When configured backup, backup parameters not added to vtcld pods
3 participants