File tree Expand file tree Collapse file tree 3 files changed +1
-17
lines changed
internal/scorecard/helpers
test/test-framework/pkg/controller/memcached Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ import (
18
18
"fmt"
19
19
20
20
scapiv1alpha1 "github.com/operator-framework/operator-sdk/pkg/apis/scorecard/v1alpha1"
21
-
22
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23
21
)
24
22
25
23
// These functions should be in the public test definitions file, but they are not complete/stable,
@@ -91,10 +89,6 @@ func CalculateResult(tests []scapiv1alpha1.ScorecardTestResult) scapiv1alpha1.Sc
91
89
// provided suites and log
92
90
func TestSuitesToScorecardOutput (suites []TestSuite , log string ) scapiv1alpha1.ScorecardOutput {
93
91
test := scapiv1alpha1.ScorecardOutput {
94
- TypeMeta : metav1.TypeMeta {
95
- Kind : "ScorecardOutput" ,
96
- APIVersion : "osdk.openshift.io/v1alpha1" ,
97
- },
98
92
Log : log ,
99
93
}
100
94
scorecardSuiteResults := []scapiv1alpha1.ScorecardSuiteResult {}
Original file line number Diff line number Diff line change @@ -17,17 +17,11 @@ package scorecard
17
17
import (
18
18
scapiv1alpha1 "github.com/operator-framework/operator-sdk/pkg/apis/scorecard/v1alpha1"
19
19
scapiv1alpha2 "github.com/operator-framework/operator-sdk/pkg/apis/scorecard/v1alpha2"
20
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
20
)
22
21
23
22
func ConvertScorecardOutputV1ToV2 (v1ScorecardOutput scapiv1alpha1.ScorecardOutput ) scapiv1alpha2.ScorecardOutput {
24
23
25
- output := scapiv1alpha2.ScorecardOutput {
26
- TypeMeta : metav1.TypeMeta {
27
- Kind : "ScorecardOutput" ,
28
- APIVersion : "osdk.openshift.io/v1alpha2" ,
29
- },
30
- }
24
+ output := scapiv1alpha2.ScorecardOutput {}
31
25
32
26
// convert v1 suite into v2 test results
33
27
output .Results = make ([]scapiv1alpha2.ScorecardTestResult , 0 )
Original file line number Diff line number Diff line change @@ -180,10 +180,6 @@ func (r *ReconcileMemcached) deploymentForMemcached(m *cachev1alpha1.Memcached)
180
180
replicas := m .Spec .Size
181
181
182
182
dep := & appsv1.Deployment {
183
- TypeMeta : metav1.TypeMeta {
184
- APIVersion : "apps/v1" ,
185
- Kind : "Deployment" ,
186
- },
187
183
ObjectMeta : metav1.ObjectMeta {
188
184
Name : m .Name ,
189
185
Namespace : m .Namespace ,
You can’t perform that action at this time.
0 commit comments