Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
水淹萌龙
kubesphere
提交
fe249513
K
kubesphere
项目概览
水淹萌龙
/
kubesphere
与 Fork 源项目一致
Fork自
KubeSphere / kubesphere
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kubesphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
fe249513
编写于
8月 07, 2019
作者:
R
runzexia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use deepcode gen
Signed-off-by:
N
runzexia
<
runzexia@yunify.com
>
上级
e5d59b75
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
46 addition
and
31 deletion
+46
-31
Makefile
Makefile
+5
-12
pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go
pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go
+9
-3
pkg/apis/network/v1alpha1/zz_generated.deepcopy.go
pkg/apis/network/v1alpha1/zz_generated.deepcopy.go
+9
-3
pkg/apis/servicemesh/v1alpha2/zz_generated.deepcopy.go
pkg/apis/servicemesh/v1alpha2/zz_generated.deepcopy.go
+18
-11
pkg/apis/tenant/v1alpha1/zz_generated.deepcopy.go
pkg/apis/tenant/v1alpha1/zz_generated.deepcopy.go
+5
-2
未找到文件。
Makefile
浏览文件 @
fe249513
...
...
@@ -58,16 +58,16 @@ controller-manager: test
hack/gobuild.sh cmd/controller-manager
# Run go fmt against code
fmt
:
generate-apis
fmt
:
deepcopy
go
fmt
./pkg/... ./cmd/...
# Run go vet against code
vet
:
generate-apis
vet
:
deepcopy
go vet ./pkg/... ./cmd/...
# Generate manifests e.g. CRD, RBAC etc.
manifests
:
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
go run
./
vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
deploy
:
manifests
kubectl apply
-f
config/crds
...
...
@@ -76,8 +76,8 @@ deploy: manifests
generate
:
go generate ./pkg/... ./cmd/...
# Generate code
generate-apis
:
controller-gen
$(CONTROLLER_GEN)
object:headerFile
=
./hack/boilerplate.go.txt
paths
=
./pkg/apis/...
deepcopy
:
controller-gen
go run ./vendor/k8s.io/code-generator/cmd/deepcopy-gen
-i
kubesphere.io/kubesphere/pkg/apis/...
-h
hack/boilerplate.go.txt
-O
zz_generated.deepcopy
# Build the docker image
...
...
@@ -95,13 +95,6 @@ clean:
# find or download controller-gen
# download controller-gen if necessary
controller-gen
:
ifeq
(, $(shell which controller-gen))
cd
..
&&
GO111MODULE
=
on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.0-beta.4
CONTROLLER_GEN
=
$(GOBIN)
/controller-gen
else
CONTROLLER_GEN
=
$(
shell
which controller-gen
)
endif
clientset
:
./hack/generate_client.sh
pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go
浏览文件 @
fe249513
...
...
@@ -15,8 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// autogenerated by controller-gen object, do not modify manually
// Code generated by main. DO NOT EDIT.
package
v1alpha1
...
...
@@ -31,6 +30,7 @@ func (in *S2iBinary) DeepCopyInto(out *S2iBinary) {
in
.
ObjectMeta
.
DeepCopyInto
(
&
out
.
ObjectMeta
)
in
.
Spec
.
DeepCopyInto
(
&
out
.
Spec
)
out
.
Status
=
in
.
Status
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S2iBinary.
...
...
@@ -63,6 +63,7 @@ func (in *S2iBinaryList) DeepCopyInto(out *S2iBinaryList) {
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S2iBinaryList.
...
...
@@ -86,7 +87,11 @@ func (in *S2iBinaryList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
S2iBinarySpec
)
DeepCopyInto
(
out
*
S2iBinarySpec
)
{
*
out
=
*
in
in
.
UploadTimeStamp
.
DeepCopyInto
(
&
out
.
UploadTimeStamp
)
if
in
.
UploadTimeStamp
!=
nil
{
in
,
out
:=
&
in
.
UploadTimeStamp
,
&
out
.
UploadTimeStamp
*
out
=
(
*
in
)
.
DeepCopy
()
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S2iBinarySpec.
...
...
@@ -102,6 +107,7 @@ func (in *S2iBinarySpec) DeepCopy() *S2iBinarySpec {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
S2iBinaryStatus
)
DeepCopyInto
(
out
*
S2iBinaryStatus
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S2iBinaryStatus.
...
...
pkg/apis/network/v1alpha1/zz_generated.deepcopy.go
浏览文件 @
fe249513
...
...
@@ -15,13 +15,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// autogenerated by controller-gen object, do not modify manually
// Code generated by main. DO NOT EDIT.
package
v1alpha1
import
(
"k8s.io/api/networking/v1"
v1
"k8s.io/api/networking/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
runtime
"k8s.io/apimachinery/pkg/runtime"
)
...
...
@@ -33,6 +32,7 @@ func (in *WorkspaceNetworkPolicy) DeepCopyInto(out *WorkspaceNetworkPolicy) {
in
.
ObjectMeta
.
DeepCopyInto
(
&
out
.
ObjectMeta
)
in
.
Spec
.
DeepCopyInto
(
&
out
.
Spec
)
out
.
Status
=
in
.
Status
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceNetworkPolicy.
...
...
@@ -70,6 +70,7 @@ func (in *WorkspaceNetworkPolicyEgressRule) DeepCopyInto(out *WorkspaceNetworkPo
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceNetworkPolicyEgressRule.
...
...
@@ -99,6 +100,7 @@ func (in *WorkspaceNetworkPolicyIngressRule) DeepCopyInto(out *WorkspaceNetworkP
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceNetworkPolicyIngressRule.
...
...
@@ -123,6 +125,7 @@ func (in *WorkspaceNetworkPolicyList) DeepCopyInto(out *WorkspaceNetworkPolicyLi
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceNetworkPolicyList.
...
...
@@ -152,6 +155,7 @@ func (in *WorkspaceNetworkPolicyPeer) DeepCopyInto(out *WorkspaceNetworkPolicyPe
*
out
=
new
(
metav1
.
LabelSelector
)
(
*
in
)
.
DeepCopyInto
(
*
out
)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceNetworkPolicyPeer.
...
...
@@ -186,6 +190,7 @@ func (in *WorkspaceNetworkPolicySpec) DeepCopyInto(out *WorkspaceNetworkPolicySp
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceNetworkPolicySpec.
...
...
@@ -201,6 +206,7 @@ func (in *WorkspaceNetworkPolicySpec) DeepCopy() *WorkspaceNetworkPolicySpec {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
WorkspaceNetworkPolicyStatus
)
DeepCopyInto
(
out
*
WorkspaceNetworkPolicyStatus
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceNetworkPolicyStatus.
...
...
pkg/apis/servicemesh/v1alpha2/zz_generated.deepcopy.go
浏览文件 @
fe249513
...
...
@@ -15,13 +15,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// autogenerated by controller-gen object, do not modify manually
// Code generated by main. DO NOT EDIT.
package
v1alpha2
import
(
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
runtime
"k8s.io/apimachinery/pkg/runtime"
)
...
...
@@ -30,6 +29,7 @@ func (in *DestinationRuleSpecTemplate) DeepCopyInto(out *DestinationRuleSpecTemp
*
out
=
*
in
in
.
ObjectMeta
.
DeepCopyInto
(
&
out
.
ObjectMeta
)
in
.
Spec
.
DeepCopyInto
(
&
out
.
Spec
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRuleSpecTemplate.
...
...
@@ -49,6 +49,7 @@ func (in *ServicePolicy) DeepCopyInto(out *ServicePolicy) {
in
.
ObjectMeta
.
DeepCopyInto
(
&
out
.
ObjectMeta
)
in
.
Spec
.
DeepCopyInto
(
&
out
.
Spec
)
in
.
Status
.
DeepCopyInto
(
&
out
.
Status
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePolicy.
...
...
@@ -74,6 +75,7 @@ func (in *ServicePolicyCondition) DeepCopyInto(out *ServicePolicyCondition) {
*
out
=
*
in
in
.
LastProbeTime
.
DeepCopyInto
(
&
out
.
LastProbeTime
)
in
.
LastTransitionTime
.
DeepCopyInto
(
&
out
.
LastTransitionTime
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePolicyCondition.
...
...
@@ -98,6 +100,7 @@ func (in *ServicePolicyList) DeepCopyInto(out *ServicePolicyList) {
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePolicyList.
...
...
@@ -127,6 +130,7 @@ func (in *ServicePolicySpec) DeepCopyInto(out *ServicePolicySpec) {
(
*
in
)
.
DeepCopyInto
(
*
out
)
}
in
.
Template
.
DeepCopyInto
(
&
out
.
Template
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePolicySpec.
...
...
@@ -151,14 +155,13 @@ func (in *ServicePolicyStatus) DeepCopyInto(out *ServicePolicyStatus) {
}
if
in
.
StartTime
!=
nil
{
in
,
out
:=
&
in
.
StartTime
,
&
out
.
StartTime
*
out
=
new
(
v1
.
Time
)
(
*
in
)
.
DeepCopyInto
(
*
out
)
*
out
=
(
*
in
)
.
DeepCopy
()
}
if
in
.
CompletionTime
!=
nil
{
in
,
out
:=
&
in
.
CompletionTime
,
&
out
.
CompletionTime
*
out
=
new
(
v1
.
Time
)
(
*
in
)
.
DeepCopyInto
(
*
out
)
*
out
=
(
*
in
)
.
DeepCopy
()
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePolicyStatus.
...
...
@@ -178,6 +181,7 @@ func (in *Strategy) DeepCopyInto(out *Strategy) {
in
.
ObjectMeta
.
DeepCopyInto
(
&
out
.
ObjectMeta
)
in
.
Spec
.
DeepCopyInto
(
&
out
.
Spec
)
in
.
Status
.
DeepCopyInto
(
&
out
.
Status
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Strategy.
...
...
@@ -203,6 +207,7 @@ func (in *StrategyCondition) DeepCopyInto(out *StrategyCondition) {
*
out
=
*
in
in
.
LastProbeTime
.
DeepCopyInto
(
&
out
.
LastProbeTime
)
in
.
LastTransitionTime
.
DeepCopyInto
(
&
out
.
LastTransitionTime
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyCondition.
...
...
@@ -227,6 +232,7 @@ func (in *StrategyList) DeepCopyInto(out *StrategyList) {
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyList.
...
...
@@ -256,6 +262,7 @@ func (in *StrategySpec) DeepCopyInto(out *StrategySpec) {
(
*
in
)
.
DeepCopyInto
(
*
out
)
}
in
.
Template
.
DeepCopyInto
(
&
out
.
Template
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategySpec.
...
...
@@ -280,14 +287,13 @@ func (in *StrategyStatus) DeepCopyInto(out *StrategyStatus) {
}
if
in
.
StartTime
!=
nil
{
in
,
out
:=
&
in
.
StartTime
,
&
out
.
StartTime
*
out
=
new
(
v1
.
Time
)
(
*
in
)
.
DeepCopyInto
(
*
out
)
*
out
=
(
*
in
)
.
DeepCopy
()
}
if
in
.
CompletionTime
!=
nil
{
in
,
out
:=
&
in
.
CompletionTime
,
&
out
.
CompletionTime
*
out
=
new
(
v1
.
Time
)
(
*
in
)
.
DeepCopyInto
(
*
out
)
*
out
=
(
*
in
)
.
DeepCopy
()
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyStatus.
...
...
@@ -305,6 +311,7 @@ func (in *VirtualServiceTemplateSpec) DeepCopyInto(out *VirtualServiceTemplateSp
*
out
=
*
in
in
.
ObjectMeta
.
DeepCopyInto
(
&
out
.
ObjectMeta
)
in
.
Spec
.
DeepCopyInto
(
&
out
.
Spec
)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServiceTemplateSpec.
...
...
pkg/apis/tenant/v1alpha1/zz_generated.deepcopy.go
浏览文件 @
fe249513
...
...
@@ -15,8 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// autogenerated by controller-gen object, do not modify manually
// Code generated by main. DO NOT EDIT.
package
v1alpha1
...
...
@@ -31,6 +30,7 @@ func (in *Workspace) DeepCopyInto(out *Workspace) {
in
.
ObjectMeta
.
DeepCopyInto
(
&
out
.
ObjectMeta
)
out
.
Spec
=
in
.
Spec
out
.
Status
=
in
.
Status
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workspace.
...
...
@@ -63,6 +63,7 @@ func (in *WorkspaceList) DeepCopyInto(out *WorkspaceList) {
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceList.
...
...
@@ -86,6 +87,7 @@ func (in *WorkspaceList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
WorkspaceSpec
)
DeepCopyInto
(
out
*
WorkspaceSpec
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceSpec.
...
...
@@ -101,6 +103,7 @@ func (in *WorkspaceSpec) DeepCopy() *WorkspaceSpec {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
WorkspaceStatus
)
DeepCopyInto
(
out
*
WorkspaceStatus
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceStatus.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录