File tree 8 files changed +74
-6
lines changed
8 files changed +74
-6
lines changed Original file line number Diff line number Diff line change 57
57
58
58
generate :
59
59
go mod vendor
60
- rm ./pkg/encoding /scheme.go
61
- ./hack/gen_scheme.sh > pkg/encoding /scheme.go
60
+ rm ./pkg/scheme /scheme.go
61
+ ./hack/gen_scheme.sh > pkg/scheme /scheme.go
62
62
63
63
.PHONY : build test release release-docker-build clean generate
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2024 The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package cmd
18
+
19
+ import (
20
+ _ "github.com/etcd-io/auger/pkg/scheme"
21
+ )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ See the License for the specific language governing permissions and
38
38
limitations under the License.
39
39
*/
40
40
41
- package encoding
41
+ package scheme
42
42
43
43
// Don't edit this file directly. It is generated by scheme.sh.
44
44
import (
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import (
19
19
"fmt"
20
20
"os"
21
21
22
+ _ "github.com/etcd-io/auger/pkg/scheme"
23
+
22
24
"github.com/etcd-io/auger/cmd"
23
25
)
24
26
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2024 The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package data
18
+
19
+ import (
20
+ _ "github.com/etcd-io/auger/pkg/scheme"
21
+ )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package encoding
19
19
import (
20
20
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
21
runtime "k8s.io/apimachinery/pkg/runtime"
22
- schema "k8s.io/apimachinery/pkg/runtime/schema"
22
+ "k8s.io/apimachinery/pkg/runtime/schema"
23
23
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
24
24
)
25
25
@@ -28,5 +28,4 @@ var Codecs = serializer.NewCodecFactory(Scheme)
28
28
29
29
func init () {
30
30
v1 .AddToGroupVersion (Scheme , schema.GroupVersion {Version : "v1" })
31
- AddToScheme (Scheme )
32
31
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package scheme
18
+
19
+ import (
20
+ "github.com/etcd-io/auger/pkg/encoding"
21
+ )
22
+
23
+ func init () {
24
+ AddToScheme (encoding .Scheme )
25
+ }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- package encoding
17
+ package scheme
18
18
19
19
// Don't edit this file directly. It is generated by scheme.sh.
20
20
import (
You can’t perform that action at this time.
0 commit comments