mirror of
https://github.com/vmware-tanzu/velero.git
synced 2025-12-23 14:25:22 +00:00
Status fields are part of a struct
Signed-off-by: Joseph <jvaikath@redhat.com>
This commit is contained in:
@@ -158,9 +158,11 @@ The restore expansion occurs after parsing the backup tar contents, using `extra
|
||||
|
||||
```go
|
||||
// Record the expanded wildcard includes/excludes in the request status
|
||||
r.backupRequest.Status.IncludeWildcardMatches = expandedIncludes
|
||||
r.backupRequest.Status.ExcludeWildcardMatches = expandedExcludes
|
||||
r.backupRequest.Status.WildcardResult = wildcardResult
|
||||
r.backupRequest.Status.WildcardNamespaces = &velerov1api.WildcardNamespaceStatus{
|
||||
IncludeWildcardMatches: expandedIncludes,
|
||||
ExcludeWildcardMatches: expandedExcludes,
|
||||
WildcardResult: wildcardResult,
|
||||
}
|
||||
```
|
||||
|
||||
#### Restore Status Fields
|
||||
@@ -169,9 +171,11 @@ r.backupRequest.Status.WildcardResult = wildcardResult
|
||||
|
||||
```go
|
||||
// Record the expanded wildcard includes/excludes in the restore status
|
||||
ctx.restore.Status.IncludeWildcardMatches = expandedIncludes
|
||||
ctx.restore.Status.ExcludeWildcardMatches = expandedExcludes
|
||||
ctx.restore.Status.WildcardResult = wildcardResult
|
||||
ctx.restore.Status.WildcardNamespaces = &velerov1api.WildcardNamespaceStatus{
|
||||
IncludeWildcardMatches: expandedIncludes,
|
||||
ExcludeWildcardMatches: expandedExcludes,
|
||||
WildcardResult: wildcardResult,
|
||||
}
|
||||
```
|
||||
|
||||
The status fields are populated immediately after successful wildcard expansion, providing visibility into which namespaces were actually matched by the wildcard patterns and the final list of namespaces that will be processed.
|
||||
|
||||
Reference in New Issue
Block a user