File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/aws-controllers-k8s/code-generator
3
3
go 1.14
4
4
5
5
require (
6
- github.com/aws-controllers-k8s/runtime v0.0.5
6
+ github.com/aws-controllers-k8s/runtime v0.1.0
7
7
github.com/aws/aws-sdk-go v1.37.4
8
8
github.com/dlclark/regexp2 v1.4.0
9
9
// pin to v0.1.1 due to release problem with v0.1.2
Original file line number Diff line number Diff line change @@ -61,10 +61,8 @@ github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmV
61
61
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 /go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8 =
62
62
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf /go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY =
63
63
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a /go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY =
64
- github.com/aws-controllers-k8s/runtime v0.0.4 h1:FXKrez7/x88wprW8a68uM02vGGuz3VPzEJLQ7AZsaxE =
65
- github.com/aws-controllers-k8s/runtime v0.0.4 /go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw =
66
- github.com/aws-controllers-k8s/runtime v0.0.5 h1:WdcnMNdgagF2MMPQRbDJ5OEzMMgHraCJqvvFj4Sx/5g =
67
- github.com/aws-controllers-k8s/runtime v0.0.5 /go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw =
64
+ github.com/aws-controllers-k8s/runtime v0.1.0 h1:XTBQf7hn0792yuCRy58IZpbZoGMrGCpSK2mZXkof5W4 =
65
+ github.com/aws-controllers-k8s/runtime v0.1.0 /go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw =
68
66
github.com/aws/aws-sdk-go v1.37.4 h1:tWxrpMK/oRSXVnjUzhGeCWLR00fW0WF4V4sycYPPrJ8 =
69
67
github.com/aws/aws-sdk-go v1.37.4 /go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro =
70
68
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 /go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q =
Original file line number Diff line number Diff line change @@ -15,14 +15,15 @@ package ack
15
15
16
16
import (
17
17
"testing"
18
+
18
19
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
19
20
k8srt "k8s.io/apimachinery/pkg/runtime"
20
21
21
22
"github.com/stretchr/testify/require"
22
23
23
24
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
24
- acktypes "github.com/aws-controllers-k8s/runtime/pkg/types"
25
25
ackcompare "github.com/aws-controllers-k8s/runtime/pkg/compare"
26
+ acktypes "github.com/aws-controllers-k8s/runtime/pkg/types"
26
27
)
27
28
28
29
type fakeIdentifiers struct {}
@@ -52,7 +53,7 @@ func (fd *fakeDescriptor) ResourceFromRuntimeObject(o k8srt.Object) acktypes.AWS
52
53
}
53
54
54
55
func (fd * fakeDescriptor ) Delta (a , b acktypes.AWSResource ) * ackcompare.Delta {
55
- return nil
56
+ return nil
56
57
}
57
58
58
59
func (fd * fakeDescriptor ) UpdateCRStatus (acktypes.AWSResource ) (bool , error ) {
@@ -69,6 +70,9 @@ func (fd *fakeDescriptor) MarkManaged(acktypes.AWSResource) {
69
70
func (fd * fakeDescriptor ) MarkUnmanaged (acktypes.AWSResource ) {
70
71
}
71
72
73
+ func (fd * fakeDescriptor ) MarkAdopted (acktypes.AWSResource ) {
74
+ }
75
+
72
76
// This test is mostly just a hack to introduce a Go module dependency between
73
77
// the ACK runtime library and the code generator. The code generator doesn't
74
78
// actually depend on Go code in the ACK runtime, but it *produces* templated
You can’t perform that action at this time.
0 commit comments