diff --git a/build/images/codegen/Dockerfile b/build/images/codegen/Dockerfile index c04af21bc51..0d1205ef6fc 100644 --- a/build/images/codegen/Dockerfile +++ b/build/images/codegen/Dockerfile @@ -46,7 +46,7 @@ RUN go install k8s.io/code-generator/cmd/client-gen@kubernetes-$K8S_VERSION && \ go install k8s.io/kube-openapi/cmd/openapi-gen@$KUBEOPENAPI_VERSION && \ go install k8s.io/code-generator/cmd/go-to-protobuf@kubernetes-$K8S_VERSION && \ go install k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo@kubernetes-$K8S_VERSION && \ - go install go.uber.org/mock/mockgen@v0.3.0 && \ + go install go.uber.org/mock/mockgen@v0.4.0 && \ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.33.0 && \ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 && \ go install golang.org/x/tools/cmd/goimports@latest && \ diff --git a/build/images/codegen/README.md b/build/images/codegen/README.md index 20ade95d481..32c8c3c5011 100644 --- a/build/images/codegen/README.md +++ b/build/images/codegen/README.md @@ -22,6 +22,7 @@ Here is the table of codegen images that have been uploaded: | Tag | Change | | :------------------------ | ----------------------------------------------------------------------------- | +| kubernetes-1.29.2-build.2 | Upgraded go.uber.org/mock/mockgen to v0.4.0 | | kubernetes-1.29.2-build.1 | Upgraded controller-gen to v0.14.0 | | kubernetes-1.29.2-build.0 | Upgraded protoc (v26.0), protoc-gen-go (v1.33.0), protoc-gen-go-grpc (v1.3.0) | | kubernetes-1.29.2 | Upgraded K8s libraries to v1.29.2 | diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 5fd01353c74..ecf52f320bd 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -22,7 +22,7 @@ function echoerr { } ANTREA_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )" -IMAGE_NAME="antrea/codegen:kubernetes-1.29.2-build.1" +IMAGE_NAME="antrea/codegen:kubernetes-1.29.2-build.2" # We will use git clone to make a working copy of the repository into a # temporary directory. This requires that all changes have been committed diff --git a/multicluster/controllers/multicluster/commonarea/mock_remote_common_area.go b/multicluster/controllers/multicluster/commonarea/mock_remote_common_area.go index 362147565fd..dadd6078272 100644 --- a/multicluster/controllers/multicluster/commonarea/mock_remote_common_area.go +++ b/multicluster/controllers/multicluster/commonarea/mock_remote_common_area.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination multicluster/controllers/multicluster/commonarea/mock_remote_common_area.go -package commonarea antrea.io/antrea/multicluster/controllers/multicluster/commonarea CommonArea,RemoteCommonArea,ImportReconciler,RemoteCommonAreaGetter // + // Package commonarea is a generated GoMock package. package commonarea diff --git a/multicluster/controllers/multicluster/leader/mock_membercluster_status_manager.go b/multicluster/controllers/multicluster/leader/mock_membercluster_status_manager.go index f4bedd483c5..cfc4e8add42 100644 --- a/multicluster/controllers/multicluster/leader/mock_membercluster_status_manager.go +++ b/multicluster/controllers/multicluster/leader/mock_membercluster_status_manager.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination multicluster/controllers/multicluster/leader/mock_membercluster_status_manager.go -package leader antrea.io/antrea/multicluster/controllers/multicluster/leader MemberClusterStatusManager // + // Package leader is a generated GoMock package. package leader diff --git a/multicluster/hack/update-codegen.sh b/multicluster/hack/update-codegen.sh index bce4f8ce66e..49c19f34625 100755 --- a/multicluster/hack/update-codegen.sh +++ b/multicluster/hack/update-codegen.sh @@ -22,7 +22,7 @@ function echoerr { } ANTREA_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../" && pwd )" -IMAGE_NAME="antrea/codegen:kubernetes-1.29.2-build.1" +IMAGE_NAME="antrea/codegen:kubernetes-1.29.2-build.2" # We will use git clone to make a working copy of the repository into a # temporary directory. This requires that all changes have been committed diff --git a/pkg/agent/cniserver/ipam/testing/mock_ipam.go b/pkg/agent/cniserver/ipam/testing/mock_ipam.go index 0bc23f34456..8c8b845cd3c 100644 --- a/pkg/agent/cniserver/ipam/testing/mock_ipam.go +++ b/pkg/agent/cniserver/ipam/testing/mock_ipam.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/cniserver/ipam/testing/mock_ipam.go -package testing antrea.io/antrea/pkg/agent/cniserver/ipam IPAMDriver // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/cniserver/testing/mock_cniserver.go b/pkg/agent/cniserver/testing/mock_cniserver.go index 5f9e85b06d3..3f9de1f37e9 100644 --- a/pkg/agent/cniserver/testing/mock_cniserver.go +++ b/pkg/agent/cniserver/testing/mock_cniserver.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/cniserver/testing/mock_cniserver.go -package testing antrea.io/antrea/pkg/agent/cniserver SriovNet // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/flowexporter/connections/testing/mock_connections.go b/pkg/agent/flowexporter/connections/testing/mock_connections.go index 737be2853cf..45fd05ebcf1 100644 --- a/pkg/agent/flowexporter/connections/testing/mock_connections.go +++ b/pkg/agent/flowexporter/connections/testing/mock_connections.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/flowexporter/connections/testing/mock_connections.go -package testing antrea.io/antrea/pkg/agent/flowexporter/connections ConnTrackDumper,NetFilterConnTrack // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/interfacestore/testing/mock_interfacestore.go b/pkg/agent/interfacestore/testing/mock_interfacestore.go index 11bb47da8a1..e45da47f514 100644 --- a/pkg/agent/interfacestore/testing/mock_interfacestore.go +++ b/pkg/agent/interfacestore/testing/mock_interfacestore.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/interfacestore/testing/mock_interfacestore.go -package testing antrea.io/antrea/pkg/agent/interfacestore InterfaceStore // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/ipassigner/testing/mock_ipassigner.go b/pkg/agent/ipassigner/testing/mock_ipassigner.go index 340a96fbc6b..f301347ee5e 100644 --- a/pkg/agent/ipassigner/testing/mock_ipassigner.go +++ b/pkg/agent/ipassigner/testing/mock_ipassigner.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/ipassigner/testing/mock_ipassigner.go -package testing antrea.io/antrea/pkg/agent/ipassigner IPAssigner // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/memberlist/mock_memberlist_test.go b/pkg/agent/memberlist/mock_memberlist_test.go index 7bd4c868114..6def0232239 100644 --- a/pkg/agent/memberlist/mock_memberlist_test.go +++ b/pkg/agent/memberlist/mock_memberlist_test.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/memberlist/mock_memberlist_test.go -package memberlist antrea.io/antrea/pkg/agent/memberlist Memberlist // + // Package memberlist is a generated GoMock package. package memberlist diff --git a/pkg/agent/memberlist/testing/mock_memberlist.go b/pkg/agent/memberlist/testing/mock_memberlist.go index e5a136d45c6..ff081a3cb29 100644 --- a/pkg/agent/memberlist/testing/mock_memberlist.go +++ b/pkg/agent/memberlist/testing/mock_memberlist.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/memberlist/testing/mock_memberlist.go -package testing antrea.io/antrea/pkg/agent/memberlist Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/monitortool/testing/mock_monitortool.go b/pkg/agent/monitortool/testing/mock_monitortool.go index 5631dbb5ce6..027e13d027b 100644 --- a/pkg/agent/monitortool/testing/mock_monitortool.go +++ b/pkg/agent/monitortool/testing/mock_monitortool.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/monitortool/testing/mock_monitortool.go -package testing antrea.io/antrea/pkg/agent/monitortool PacketListener // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/multicast/testing/mock_multicast.go b/pkg/agent/multicast/testing/mock_multicast.go index 277876ca2da..c0fc9e3450a 100644 --- a/pkg/agent/multicast/testing/mock_multicast.go +++ b/pkg/agent/multicast/testing/mock_multicast.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/multicast/testing/mock_multicast.go -package testing antrea.io/antrea/pkg/agent/multicast RouteInterface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/nodeportlocal/portcache/testing/mock_portcache.go b/pkg/agent/nodeportlocal/portcache/testing/mock_portcache.go index 8153444d329..6ccda3910c4 100644 --- a/pkg/agent/nodeportlocal/portcache/testing/mock_portcache.go +++ b/pkg/agent/nodeportlocal/portcache/testing/mock_portcache.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/nodeportlocal/portcache/testing/mock_portcache.go -package testing antrea.io/antrea/pkg/agent/nodeportlocal/portcache LocalPortOpener // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/nodeportlocal/rules/testing/mock_rules.go b/pkg/agent/nodeportlocal/rules/testing/mock_rules.go index eae0fbadaed..1e3365f5ae4 100644 --- a/pkg/agent/nodeportlocal/rules/testing/mock_rules.go +++ b/pkg/agent/nodeportlocal/rules/testing/mock_rules.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/nodeportlocal/rules/testing/mock_rules.go -package testing antrea.io/antrea/pkg/agent/nodeportlocal/rules PodPortRules // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/openflow/operations/testing/mock_operations.go b/pkg/agent/openflow/operations/testing/mock_operations.go index dd86a8ac43c..1369da2155e 100644 --- a/pkg/agent/openflow/operations/testing/mock_operations.go +++ b/pkg/agent/openflow/operations/testing/mock_operations.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/openflow/operations/testing/mock_operations.go -package testing antrea.io/antrea/pkg/agent/openflow/operations OFEntryOperations // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/openflow/testing/mock_openflow.go b/pkg/agent/openflow/testing/mock_openflow.go index cb1f4cb8cbc..99c21e47119 100644 --- a/pkg/agent/openflow/testing/mock_openflow.go +++ b/pkg/agent/openflow/testing/mock_openflow.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/openflow/testing/mock_openflow.go -package testing antrea.io/antrea/pkg/agent/openflow Client // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/proxy/testing/mock_proxy.go b/pkg/agent/proxy/testing/mock_proxy.go index b9a79ad615d..88a7919161c 100644 --- a/pkg/agent/proxy/testing/mock_proxy.go +++ b/pkg/agent/proxy/testing/mock_proxy.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/proxy/testing/mock_proxy.go -package testing antrea.io/antrea/pkg/agent/proxy Proxier // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/querier/testing/mock_querier.go b/pkg/agent/querier/testing/mock_querier.go index 3d6a1e9a08f..ea590282081 100644 --- a/pkg/agent/querier/testing/mock_querier.go +++ b/pkg/agent/querier/testing/mock_querier.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/querier/testing/mock_querier.go -package testing antrea.io/antrea/pkg/agent/querier AgentQuerier // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/route/testing/mock_route.go b/pkg/agent/route/testing/mock_route.go index 6153d2f3d0c..220eec914a7 100644 --- a/pkg/agent/route/testing/mock_route.go +++ b/pkg/agent/route/testing/mock_route.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/route/testing/mock_route.go -package testing antrea.io/antrea/pkg/agent/route Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/secondarynetwork/podwatch/testing/mock_podwatch.go b/pkg/agent/secondarynetwork/podwatch/testing/mock_podwatch.go index c788599c03e..58514d07279 100644 --- a/pkg/agent/secondarynetwork/podwatch/testing/mock_podwatch.go +++ b/pkg/agent/secondarynetwork/podwatch/testing/mock_podwatch.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/secondarynetwork/podwatch/testing/mock_podwatch.go -package testing antrea.io/antrea/pkg/agent/secondarynetwork/podwatch InterfaceConfigurator,IPAMAllocator // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/servicecidr/testing/mock_servicecidr.go b/pkg/agent/servicecidr/testing/mock_servicecidr.go index 37e136de94e..54d4c1ccdb3 100644 --- a/pkg/agent/servicecidr/testing/mock_servicecidr.go +++ b/pkg/agent/servicecidr/testing/mock_servicecidr.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/servicecidr/testing/mock_servicecidr.go -package testing antrea.io/antrea/pkg/agent/servicecidr Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/types/testing/mock_types.go b/pkg/agent/types/testing/mock_types.go index 7bad906b8e3..fae58481155 100644 --- a/pkg/agent/types/testing/mock_types.go +++ b/pkg/agent/types/testing/mock_types.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/types/testing/mock_types.go -package testing antrea.io/antrea/pkg/agent/types McastNetworkPolicyController // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/util/ipset/testing/mock_ipset.go b/pkg/agent/util/ipset/testing/mock_ipset.go index 204c5ca12ec..7c5b46b56b0 100644 --- a/pkg/agent/util/ipset/testing/mock_ipset.go +++ b/pkg/agent/util/ipset/testing/mock_ipset.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/util/ipset/testing/mock_ipset.go -package testing antrea.io/antrea/pkg/agent/util/ipset Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/util/iptables/testing/mock_iptables_linux.go b/pkg/agent/util/iptables/testing/mock_iptables_linux.go index 00c30f50390..c26e7e3ca39 100644 --- a/pkg/agent/util/iptables/testing/mock_iptables_linux.go +++ b/pkg/agent/util/iptables/testing/mock_iptables_linux.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/util/iptables/testing/mock_iptables_linux.go -package testing antrea.io/antrea/pkg/agent/util/iptables Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/util/netlink/testing/mock_netlink_linux.go b/pkg/agent/util/netlink/testing/mock_netlink_linux.go index e8353d9f8c1..be9d25a36c2 100644 --- a/pkg/agent/util/netlink/testing/mock_netlink_linux.go +++ b/pkg/agent/util/netlink/testing/mock_netlink_linux.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/util/netlink/testing/mock_netlink_linux.go -package testing antrea.io/antrea/pkg/agent/util/netlink Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/util/winnet/testing/mock_net_windows.go b/pkg/agent/util/winnet/testing/mock_net_windows.go index 8a68cf026d9..a8328902b71 100644 --- a/pkg/agent/util/winnet/testing/mock_net_windows.go +++ b/pkg/agent/util/winnet/testing/mock_net_windows.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/util/winnet/testing/mock_net_windows.go -package testing antrea.io/antrea/pkg/agent/util/winnet Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/agent/wireguard/testing/mock_wireguard.go b/pkg/agent/wireguard/testing/mock_wireguard.go index 6ec8881740b..8c345d9e3e9 100644 --- a/pkg/agent/wireguard/testing/mock_wireguard.go +++ b/pkg/agent/wireguard/testing/mock_wireguard.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/wireguard/testing/mock_wireguard.go -package testing antrea.io/antrea/pkg/agent/wireguard Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/antctl/mock_antctl_test.go b/pkg/antctl/mock_antctl_test.go index e7e66a9f1c7..408dbc5b207 100644 --- a/pkg/antctl/mock_antctl_test.go +++ b/pkg/antctl/mock_antctl_test.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/antctl/mock_antctl_test.go -package antctl antrea.io/antrea/pkg/antctl AntctlClient // + // Package antctl is a generated GoMock package. package antctl diff --git a/pkg/controller/networkpolicy/testing/mock_networkpolicy.go b/pkg/controller/networkpolicy/testing/mock_networkpolicy.go index bc90e3769a2..8c1cfebed49 100644 --- a/pkg/controller/networkpolicy/testing/mock_networkpolicy.go +++ b/pkg/controller/networkpolicy/testing/mock_networkpolicy.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/controller/networkpolicy/testing/mock_networkpolicy.go -package testing antrea.io/antrea/pkg/controller/networkpolicy EndpointQuerier,PolicyRuleQuerier // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/controller/querier/testing/mock_querier.go b/pkg/controller/querier/testing/mock_querier.go index 0a633ecadf4..14a0b75cb13 100644 --- a/pkg/controller/querier/testing/mock_querier.go +++ b/pkg/controller/querier/testing/mock_querier.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/controller/querier/testing/mock_querier.go -package testing antrea.io/antrea/pkg/controller/querier ControllerQuerier // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/flowaggregator/exporter/testing/mock_exporter.go b/pkg/flowaggregator/exporter/testing/mock_exporter.go index 8307816b5a8..d4a1dcb7c71 100644 --- a/pkg/flowaggregator/exporter/testing/mock_exporter.go +++ b/pkg/flowaggregator/exporter/testing/mock_exporter.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/flowaggregator/exporter/testing/mock_exporter.go -package testing antrea.io/antrea/pkg/flowaggregator/exporter Interface // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/flowaggregator/querier/testing/mock_querier.go b/pkg/flowaggregator/querier/testing/mock_querier.go index addaaa96514..84763c89659 100644 --- a/pkg/flowaggregator/querier/testing/mock_querier.go +++ b/pkg/flowaggregator/querier/testing/mock_querier.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/flowaggregator/querier/testing/mock_querier.go -package testing antrea.io/antrea/pkg/flowaggregator/querier FlowAggregatorQuerier // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/flowaggregator/s3uploader/testing/mock_s3uploader.go b/pkg/flowaggregator/s3uploader/testing/mock_s3uploader.go index 2fe015c7cef..7284d412455 100644 --- a/pkg/flowaggregator/s3uploader/testing/mock_s3uploader.go +++ b/pkg/flowaggregator/s3uploader/testing/mock_s3uploader.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/flowaggregator/s3uploader/testing/mock_s3uploader.go -package testing antrea.io/antrea/pkg/flowaggregator/s3uploader S3UploaderAPI // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/ipfix/testing/mock_ipfix.go b/pkg/ipfix/testing/mock_ipfix.go index 4c9126ff722..455a28cb1f2 100644 --- a/pkg/ipfix/testing/mock_ipfix.go +++ b/pkg/ipfix/testing/mock_ipfix.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/ipfix/testing/mock_ipfix.go -package testing antrea.io/antrea/pkg/ipfix IPFIXExportingProcess,IPFIXRegistry,IPFIXCollectingProcess,IPFIXAggregationProcess // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/ovs/openflow/testing/mock_openflow.go b/pkg/ovs/openflow/testing/mock_openflow.go index 8e7558383f2..1241cf1d888 100644 --- a/pkg/ovs/openflow/testing/mock_openflow.go +++ b/pkg/ovs/openflow/testing/mock_openflow.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/ovs/openflow/testing/mock_openflow.go -package testing antrea.io/antrea/pkg/ovs/openflow Bridge,Table,Flow,Action,CTAction,FlowBuilder,Group,BucketBuilder,PacketOutBuilder,Meter,MeterBandBuilder // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/ovs/ovsconfig/testing/mock_ovsconfig.go b/pkg/ovs/ovsconfig/testing/mock_ovsconfig.go index 431df64515d..fec3215f811 100644 --- a/pkg/ovs/ovsconfig/testing/mock_ovsconfig.go +++ b/pkg/ovs/ovsconfig/testing/mock_ovsconfig.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/ovs/ovsconfig/testing/mock_ovsconfig.go -package testing antrea.io/antrea/pkg/ovs/ovsconfig OVSBridgeClient // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/ovs/ovsctl/mock_ovsctl_test.go b/pkg/ovs/ovsctl/mock_ovsctl_test.go index 36d57597f75..c004d24242d 100644 --- a/pkg/ovs/ovsctl/mock_ovsctl_test.go +++ b/pkg/ovs/ovsctl/mock_ovsctl_test.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/ovs/ovsctl/mock_ovsctl_test.go -package ovsctl antrea.io/antrea/pkg/ovs/ovsctl OVSOfctlRunner,OVSAppctlRunner // + // Package ovsctl is a generated GoMock package. package ovsctl diff --git a/pkg/ovs/ovsctl/testing/mock_ovsctl.go b/pkg/ovs/ovsctl/testing/mock_ovsctl.go index e6866efaabb..c93c2a29dd2 100644 --- a/pkg/ovs/ovsctl/testing/mock_ovsctl.go +++ b/pkg/ovs/ovsctl/testing/mock_ovsctl.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/ovs/ovsctl/testing/mock_ovsctl.go -package testing antrea.io/antrea/pkg/ovs/ovsctl OVSCtlClient // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/querier/testing/mock_querier.go b/pkg/querier/testing/mock_querier.go index 03541e73b4a..fe30070ba73 100644 --- a/pkg/querier/testing/mock_querier.go +++ b/pkg/querier/testing/mock_querier.go @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/querier/testing/mock_querier.go -package testing antrea.io/antrea/pkg/querier AgentNetworkPolicyInfoQuerier,AgentMulticastInfoQuerier,EgressQuerier // + // Package testing is a generated GoMock package. package testing diff --git a/pkg/util/podstore/testing/mock_podstore.go b/pkg/util/podstore/testing/mock_podstore.go index 165b3a7c8c4..859ffb30563 100644 --- a/pkg/util/podstore/testing/mock_podstore.go +++ b/pkg/util/podstore/testing/mock_podstore.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/util/podstore/testing/mock_podstore.go -package testing antrea.io/antrea/pkg/util/podstore Interface // + // Package testing is a generated GoMock package. package testing diff --git a/third_party/proxy/testing/mock_proxy.go b/third_party/proxy/testing/mock_proxy.go index 4b2269bce7c..acd35eb7b47 100644 --- a/third_party/proxy/testing/mock_proxy.go +++ b/third_party/proxy/testing/mock_proxy.go @@ -1,4 +1,4 @@ -// Copyright 2023 Antrea Authors +// Copyright 2024 Antrea Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ // // mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination third_party/proxy/testing/mock_proxy.go -package testing antrea.io/antrea/third_party/proxy Provider // + // Package testing is a generated GoMock package. package testing