File tree 6 files changed +34
-11
lines changed
6 files changed +34
-11
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 @@ -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 @@ -17,16 +17,9 @@ limitations under the License.
17
17
package encoding
18
18
19
19
import (
20
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
20
runtime "k8s.io/apimachinery/pkg/runtime"
22
- schema "k8s.io/apimachinery/pkg/runtime/schema"
23
21
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
24
22
)
25
23
26
24
var Scheme = runtime .NewScheme ()
27
25
var Codecs = serializer .NewCodecFactory (Scheme )
28
-
29
- func init () {
30
- v1 .AddToGroupVersion (Scheme , schema.GroupVersion {Version : "v1" })
31
- AddToScheme (Scheme )
32
- }
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
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22
+ "k8s.io/apimachinery/pkg/runtime/schema"
23
+ )
24
+
25
+ func init () {
26
+ v1 .AddToGroupVersion (encoding .Scheme , schema.GroupVersion {Version : "v1" })
27
+ AddToScheme (encoding .Scheme )
28
+ }
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