Skip to content

Fix vtctld deployment to allow ListBackups to work#356

Merged
GuptaManan100 merged 3 commits into
mainfrom
list-backups-fix
Jan 16, 2023
Merged

Fix vtctld deployment to allow ListBackups to work#356
GuptaManan100 merged 3 commits into
mainfrom
list-backups-fix

Conversation

@GuptaManan100
Copy link
Copy Markdown
Contributor

Description

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

Related Issues

Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
@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
Copy Markdown
Contributor 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
Copy Markdown
Contributor

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.

Signed-off-by: Manan Gupta <manan@planetscale.com>
@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