使用 kubebuilder 生成的每个 deepcopy 生成的文件都会生成一个顶部make带有构建标记指令的文件。// +build !ignore_autogenerated
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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.
*/
// Code generated by controller-gen. DO NOT EDIT.
为什么要将这个特定的构建标记指令添加到这些生成的文件中?它的目的是什么?
开满天机
相关分类