Skip to content

Conversation

NicholasYancey
Copy link
Contributor

No description provided.

@NicholasYancey NicholasYancey self-assigned this Aug 4, 2025
@NicholasYancey NicholasYancey linked an issue Aug 4, 2025 that may be closed by this pull request
@Joeavaikath
Copy link
Contributor

Looks great. Do we know if the logs command has any issues similar to NAB?
Any scenarios where the commands have failed in tandem with NAB cli commands?

Copy link
Contributor

@Joeavaikath Joeavaikath left a comment

Choose a reason for hiding this comment

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

Does the NAR flow work as expected with a NAB?
Is it possible to specify namespaces in restores? I don't see the create option, but there is a includenamespaceresource field so wondering about that

@NicholasYancey
Copy link
Contributor Author

The flow of NAR work with NABs, the flag IncludeNamespaceScopedResources is only supposed to be in NABs, and includednamespaces and other namespace spec fields in NARs are not admin enforceable and restricted so specifying namespace should not be allowed I believe. I changed the code to remove the fields not allowed in NAR such as the one mentioned.

}

// NonAdminDescribeBackupDetailed provides a Velero-style detailed output format
func NonAdminDescribeBackupDetailed(cmd *cobra.Command, kbClient kbclient.Client, nab *nacv1alpha1.NonAdminBackup, userNamespace string, ctx context.Context) error {
Copy link
Member

Choose a reason for hiding this comment

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

Hmm here is thought, Instead of implementing NonAdminDescribeBackupDetailed from scratch, consider leveraging Velero's existing describe logic and filtering the output for non-admin users. Like get the describe output then stream it to a filtering function and then present the refined output for non-admin users. WDYGT ? @Joeavaikath @NicholasYancey (We will have significantly less code to maintain 😉)
Let me know your thoughts on this.

@shubham-pampattiwar
Copy link
Member

Please resolve conflicts

@Joeavaikath
Copy link
Contributor

Continued by #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NAR crud Support
3 participants