-
Notifications
You must be signed in to change notification settings - Fork 152
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
Modify describe to not list snapshots #376
Conversation
@@ -255,9 +266,7 @@ func resticAzureArgs(profile *param.Profile, repository string) []string { | |||
|
|||
// GetOrCreateRepository will check if the repository already exists and initialize one if not | |||
func GetOrCreateRepository(cli kubernetes.Interface, namespace, pod, container, artifactPrefix, encryptionKey string, profile *param.Profile) error { | |||
stdout, stderr, err := listSnapshots(profile, artifactPrefix, encryptionKey, cli, namespace, pod, container) | |||
format.Log(pod, container, stdout) |
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.
We don't need to print the output. That will help reduce the long logs
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.
It is already printed in getLatestSnapshots
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.
+1 LGTM
Change Overview
Listing snapshots is an
expensive
operation. Also, we do not need a list of snapshots.Changing the command to check for latest instead
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan