We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cb9288 + b68a1d5 commit 71ef64cCopy full SHA for 71ef64c
pkg/securityscan/job/job.go
@@ -55,6 +55,12 @@ func New(clusterscan *cisoperatorapiv1.ClusterScan, clusterscanprofile *cisopera
55
cisoperatorapi.LabelProfile: clusterscan.Spec.ScanProfileName,
56
cisoperatorapi.LabelClusterScan: clusterscan.Name,
57
},
58
+ OwnerReferences: []metav1.OwnerReference{{
59
+ APIVersion: "cis.cattle.io/v1",
60
+ Kind: "ClusterScan",
61
+ Name: clusterscan.Name,
62
+ UID: clusterscan.GetUID(),
63
+ }},
64
65
Spec: batchv1.JobSpec{
66
BackoffLimit: &BackoffLimit,
0 commit comments