mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
run pkg/apis/make-origin-dir-compile, pkg/apis compile
This commit is contained in:
@@ -17,15 +17,16 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/api/core/v1"
|
||||
networkingv1 "k8s.io/api/networking/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
func addDefaultingFuncs(scheme *runtime.Scheme) error {
|
||||
return RegisterDefaults(scheme)
|
||||
}
|
||||
|
||||
func SetDefaults_NetworkPolicyPort(obj *NetworkPolicyPort) {
|
||||
func SetDefaults_NetworkPolicyPort(obj *networkingv1.NetworkPolicyPort) {
|
||||
// Default any undefined Protocol fields to TCP.
|
||||
if obj.Protocol == nil {
|
||||
proto := v1.ProtocolTCP
|
||||
|
||||
Reference in New Issue
Block a user