Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
5f3d916
capture list table formatting
kamilprz Apr 16, 2025
97506a9
downloads
kamilprz Apr 18, 2025
9adae77
tar
kamilprz Apr 18, 2025
6ebf85a
blob url as flag
kamilprz Apr 23, 2025
c73df12
download cmd logic
kamilprz Apr 23, 2025
c4ed169
debugging
kamilprz Apr 23, 2025
c189714
output flag
kamilprz Apr 23, 2025
309fb8e
blob output path
kamilprz Apr 24, 2025
69ddf6d
extract files
kamilprz Apr 24, 2025
398fa3f
small cleanup
kamilprz Apr 24, 2025
d355653
restructure code
kamilprz Apr 25, 2025
61dda14
z flag for download
kamilprz Apr 25, 2025
e9f4734
extract files
kamilprz Apr 28, 2025
bca43b1
save file func
kamilprz Apr 28, 2025
edbde0b
print statement
kamilprz Apr 28, 2025
039c221
remove unused changes
kamilprz Apr 28, 2025
1b8c213
remove leftovers from debugging
kamilprz Apr 28, 2025
b96d182
linting
kamilprz Apr 28, 2025
bd3eda7
linting
kamilprz Apr 28, 2025
13f5fd5
linting
kamilprz Apr 28, 2025
fd7b2a2
error wrapping etc.
kamilprz Apr 28, 2025
7da035d
update mount path
kamilprz May 8, 2025
50541d9
annotation constants
kamilprz May 13, 2025
374f020
refactor capture timestamp
kamilprz May 13, 2025
8b1bc67
remove extract, use pod annotations, download by capture name not job
kamilprz May 13, 2025
348f34f
fix test
kamilprz May 13, 2025
7b88351
linting
kamilprz May 13, 2025
9be51c4
fix windows type
kamilprz May 14, 2025
6a5e920
file existence checks
kamilprz May 21, 2025
a687a42
polishing
kamilprz May 21, 2025
cfecbb8
pleasing the linter
kamilprz May 21, 2025
e070464
capture e2e
kamilprz Jun 2, 2025
4e177eb
fix typo
kamilprz Jun 2, 2025
96a2af9
timeout on download pod creation
kamilprz Jun 2, 2025
f09f09d
tidy up
kamilprz Jun 3, 2025
d673c00
Merge with main
kamilprz Jun 3, 2025
3122cc0
Merge branch 'main' into download
kamilprz Jun 3, 2025
0693f51
remove steps not needed from ValidateCapture
alexcastilio Jun 4, 2025
072f008
provide agent image to kubectl-retina; decouple verifyJobs from delet…
alexcastilio Jun 4, 2025
578d15e
change namespace to default
alexcastilio Jun 4, 2025
6a7902d
add downloadCapture test
alexcastilio Jun 4, 2025
cf99fb1
add capture download test
alexcastilio Jun 4, 2025
0319d0f
fix small error in cli documentation
alexcastilio Jun 4, 2025
c51ec1e
docs: add section for retina capture download
alexcastilio Jun 4, 2025
ef230dd
fix lint issues
alexcastilio Jun 4, 2025
4c4792d
rename ValidateCaptureCreate -> ValidateCapture
alexcastilio Jun 6, 2025
aebf0f2
add validation to capture download command
alexcastilio Jun 6, 2025
b88be6d
check OutputConfiguration.HostPath before assignment
alexcastilio Jun 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cli/cmd/capture/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/microsoft/retina/internal/buildinfo"
pkgcapture "github.com/microsoft/retina/pkg/capture"
captureConstants "github.com/microsoft/retina/pkg/capture/constants"
"github.com/microsoft/retina/pkg/capture/file"
captureUtils "github.com/microsoft/retina/pkg/capture/utils"
"github.com/microsoft/retina/pkg/config"
)
Expand Down Expand Up @@ -240,6 +241,8 @@ func deleteSecret(ctx context.Context, kubeClient kubernetes.Interface, secretNa
}

func createCaptureF(ctx context.Context, kubeClient kubernetes.Interface) (*retinav1alpha1.Capture, error) {
timestamp := file.Now()

capture := &retinav1alpha1.Capture{
ObjectMeta: metav1.ObjectMeta{
Name: *opts.Name,
Expand All @@ -253,8 +256,13 @@ func createCaptureF(ctx context.Context, kubeClient kubernetes.Interface) (*reti
CaptureOption: retinav1alpha1.CaptureOption{},
},
},
Status: retinav1alpha1.CaptureStatus{
StartTime: timestamp,
},
}

retinacmd.Logger.Info(fmt.Sprintf("Capture timestamp: %s", timestamp))

if duration != 0 {
retinacmd.Logger.Info(fmt.Sprintf("The capture duration is set to %s", duration))
capture.Spec.CaptureConfiguration.CaptureOption.Duration = &metav1.Duration{Duration: duration}
Expand Down
Loading
Loading