Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pullbot #1

Merged
merged 1,121 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1121 commits
Select commit Hold shift + click to select a range
3f7c49a
Merge remote-tracking branch 'upstream/master' into sync-2023-06-27
SchSeba Jun 27, 2023
28df315
Add support for Intel X710 Backplane and Base T
vrindle Jun 5, 2023
b9102a7
Merge pull request #452 from vrindle/add_support_Intel_X710_Nics
adrianchiris Jun 29, 2023
a6d499e
Add sriovoperatorconfigs resource to webhook
mlguerrero12 Jun 20, 2023
9262126
Disable webhooks in api server of envtest
mlguerrero12 Jul 1, 2023
2d37483
Merge pull request #461 from mlguerrero12/addoperatorconfigwebhook
SchSeba Jul 3, 2023
c596e2c
Merge remote-tracking branch 'upstream/master' into sync-2023-06-27
SchSeba Jul 3, 2023
1a6040f
Refactor validateSriovOperatorConfig
zeeke Jun 28, 2023
91ea65f
webhook: Avoid setting DisableDrain while updating
zeeke Jun 28, 2023
085bdfe
Merge pull request #432 from Longchuanzheng/plugin
adrianchiris Jul 4, 2023
4ddfd02
Merge pull request #464 from zeeke/validate-disable-drain
adrianchiris Jul 4, 2023
cacadba
run make bundle and make manifest
SchSeba Jul 4, 2023
a62bc94
Merge pull request #793 from SchSeba/sync-2023-06-27
openshift-merge-robot Jul 4, 2023
680654f
Merge pull request #365 from SchSeba/systemd
e0ne Jul 5, 2023
8a90dd3
copy the BF3 to the right manifest folder
SchSeba Jul 6, 2023
7205816
Use `e2e-test` tag for images built in e2e CI
abdallahyas Jul 10, 2023
085231a
Merge pull request #796 from SchSeba/make_bundle
openshift-merge-robot Jul 10, 2023
bbd08a2
Add support for Intel X710 Backplane and Base T
vrindle Jun 30, 2023
2d51066
adding design template
SchSeba Jul 11, 2023
8d93633
Merge pull request #470 from SchSeba/create_desing_proposal_template
adrianchiris Jul 11, 2023
0656e84
Merge pull request #794 from vrindle/add_X710_cards
openshift-merge-robot Jul 11, 2023
37ddcd4
Merge pull request #466 from abdallahyas/fix-image-pull-policy-on-ci
zeeke Jul 12, 2023
6b946e9
Re-introduce the check if the number of VFs is 0
SchSeba Jul 12, 2023
6a6f8d8
Merge pull request #472 from SchSeba/remove_drain_on_none_vfs
SchSeba Jul 13, 2023
1e48731
Merge remote-tracking branch 'upstream/master' into sync-2023-07-13
SchSeba Jul 13, 2023
95eed3f
Fix issue when creating SRIOV/vDPA devices
lmilleri Jul 12, 2023
52e9d20
Merge pull request #474 from lmilleri/fix-issue-471
adrianchiris Jul 13, 2023
d695d63
Merge remote-tracking branch 'upstream/master' into sync-2023-07-13
SchSeba Jul 13, 2023
2485658
Merge pull request #799 from SchSeba/sync-2023-07-13
openshift-merge-robot Jul 13, 2023
064df38
Set zap log TimeEncoder
zeeke Jul 14, 2023
ed9d2db
Reduce SriovOperator verbosity
zeeke Jul 14, 2023
154d2d6
Merge pull request #477 from zeeke/improve-operator-logging
adrianchiris Jul 20, 2023
c3b8137
e2e: Validate ExcludeTopology field
zeeke May 31, 2023
990648e
Merge pull request #451 from zeeke/exclude-topology-conformance-test
adrianchiris Jul 24, 2023
79bd2e3
e2e: Fix Validate ExcludeTopology field
zeeke Jul 24, 2023
9d8f31e
Avoid reconciling policies multiple times
zeeke Jul 14, 2023
cff73c4
Avoid logging `devlink` warning
zeeke Jul 4, 2023
9a500dd
Reduce vebosity of config-damon
zeeke Jul 4, 2023
c23b983
Add support for BCM57504
SalDaniele Jul 27, 2023
a1651df
run make bundle manifests
SalDaniele Aug 1, 2023
3807a3b
Merge pull request #808 from SalDaniele/add_bmc57504
openshift-merge-robot Aug 1, 2023
852f63b
Sync CRDs manifests
e0ne Aug 2, 2023
12b2566
Merge pull request #482 from zeeke/exclude-topology-conformance-test-2
e0ne Aug 2, 2023
99a78b7
Merge pull request #485 from e0ne/manifests-sync
adrianchiris Aug 2, 2023
5faf3c4
Partially revert BCM57504 update
SalDaniele Aug 2, 2023
af3eeae
Merge remote-tracking branch 'upstream/master' into sync-0804
zeeke Aug 4, 2023
695c9d1
Merge pull request #810 from zeeke/sync-0804
openshift-merge-robot Aug 6, 2023
1edc345
Merge pull request #809 from SalDaniele/partial_revert_BCM57504
openshift-merge-robot Aug 6, 2023
18a288a
Render SriovNetworkNodeState before Device Plugin ConfigMap
e0ne Aug 7, 2023
87d2860
Merge pull request #478 from zeeke/optimize-operator-reconciliation
adrianchiris Aug 8, 2023
3500926
Merge pull request #468 from zeeke/improve-config-daemon-logging
adrianchiris Aug 8, 2023
7b5ecac
Merge pull request #487 from e0ne/node-state-render
adrianchiris Aug 8, 2023
458f02a
Merge remote-tracking branch 'upstream/master' into sync-20230811
zeeke Aug 11, 2023
1879609
Never reduce MTU on PF
bn222 Aug 11, 2023
fd0737a
Return reconcile error if node state is not updated
e0ne Aug 11, 2023
edf7474
Remove use of ioutil deprecated functions
adrianchiris Aug 16, 2023
db75a90
Merge pull request #491 from adrianchiris/remove-ioutil
zeeke Aug 21, 2023
ce73a4d
Merge pull request #490 from e0ne/node-policy-net-filter
adrianchiris Aug 21, 2023
4dd75bc
Merge pull request #489 from bn222/OCPBUGS-16906
adrianchiris Aug 22, 2023
75e7d15
Driver loading refactoring
lmilleri Jul 18, 2023
1a5faae
vdpa multiqueue enabled
lmilleri Jul 13, 2023
688979d
vhost-vdpa support
lmilleri Jul 18, 2023
ee0e017
Merge pull request #467 from lmilleri/host-vdpa
zeeke Aug 23, 2023
48b2aeb
Fix Plugin Config Daemon node selector
wizhaoredhat Aug 23, 2023
7f6095f
Merge pull request #811 from zeeke/sync-20230811
openshift-merge-robot Aug 24, 2023
6794c32
Bump dependencies: Go, K8S, and controller-runtime
liornoy Aug 29, 2023
25fca14
Fix the breaking changes in the controllers
liornoy Aug 29, 2023
6ef4579
Update go version in workflows and Dockerfiles
liornoy Aug 29, 2023
ec33770
Fix the golangci to support Go v1.20
liornoy Aug 29, 2023
25a291e
Move Config Daemon Node Selector tests from Pending to Running
wizhaoredhat Aug 29, 2023
bf30003
Add test for multiple updates to the node selector of the config daemon
wizhaoredhat Aug 29, 2023
5c1b0af
Fix Config Daemon node selector
wizhaoredhat Aug 1, 2023
645c412
Revert "Updating images to pull from github instead of quay.io"
SalDaniele Aug 31, 2023
05f0159
Merge pull request #816 from SalDaniele/revert_3eb2f8
openshift-merge-robot Aug 31, 2023
52c9386
Merge commit '4dd75bc7ae339e8397266580ff1b97a6b2125bdb'
bn222 Sep 4, 2023
73e7564
Merge pull request #495 from liornoy/bump-k8s-1.27
e0ne Sep 4, 2023
e1dd22a
Merge pull request #815 from bn222/master
openshift-merge-robot Sep 4, 2023
3315fcd
Merge remote-tracking branch 'downstream/master' into sync-05-09-2023
liornoy Sep 5, 2023
a8f7425
config-daemon: Log drainable state transitions
zeeke Aug 23, 2023
3e16640
config-daemon: Log node name when starting
zeeke Aug 23, 2023
ddb03ce
Merge pull request #820 from liornoy/sync-05-09-2023
openshift-merge-robot Sep 5, 2023
14c6765
Merge pull request #494 from zeeke/log-on-node-update
adrianchiris Sep 5, 2023
9e3ad0a
SriovNetwork: react on namespace creation
zeeke Aug 21, 2023
66a50a1
SriovIBetwork: react on namespace creation
zeeke Aug 24, 2023
6e66cc7
Update golang.org/x/net/html
bn222 Sep 7, 2023
d8240d7
make manifests
bn222 Sep 7, 2023
6841873
Update device plugins volumes mounts
e0ne Sep 7, 2023
b6b5f85
Merge pull request #500 from e0ne/dp-volumes
bn222 Sep 7, 2023
00bd7db
Merge pull request #499 from bn222/update-net
bn222 Sep 7, 2023
3096dee
Remove bundle since we use helm chart instead in upstream
bn222 Sep 7, 2023
5075807
Merge pull request #502 from bn222/master
zeeke Sep 8, 2023
7572c87
Remove unused VERSION variable
bn222 Sep 8, 2023
ded9eca
Remove file that got added accidently
bn222 Sep 8, 2023
bc4b371
externally managed api
SchSeba Aug 3, 2023
55ae84d
documentation update
SchSeba Aug 3, 2023
455951e
validation webhook update
SchSeba Aug 3, 2023
7c2116e
Merge pull request #503 from bn222/master
adrianchiris Sep 11, 2023
b42ba97
Merge commit '7c2116ed5cd644cebfc16c31e076a8039b5ee2c0' into sync-202…
bn222 Sep 11, 2023
8138931
Add downstream specific bundle Makefile
bn222 Sep 11, 2023
4020a67
OCPBUGS-18177: change the bundle to always use stable
SchSeba Sep 11, 2023
6758c6b
Merge pull request #822 from SchSeba/update_bundle_to_stable
openshift-merge-robot Sep 11, 2023
e0eae3e
Add back bundle (downstream specific)
bn222 Sep 11, 2023
97dfa80
Merge pull request #821 from bn222/sync-20230911
openshift-merge-robot Sep 11, 2023
992723c
Utilize the k8s-reporter in the e2e tests
liornoy Jul 12, 2023
2307c9f
design doc for the externally-manage-pf support
SchSeba Jul 12, 2023
cf4a728
new store package to save per pci policy info
SchSeba Aug 3, 2023
5a74fc3
update host package and fix mocks
SchSeba Aug 3, 2023
bf6cecd
update utils and systemd
SchSeba Aug 3, 2023
8ada397
add externally manage to plugins
SchSeba Aug 3, 2023
241f4d7
update daemon to support new externally managed field
SchSeba Aug 3, 2023
3ebe5f6
copy crds to deployment
SchSeba Aug 3, 2023
7edb9b8
update systemd service main go with new store and host interfaces
SchSeba Aug 3, 2023
aeb60e2
functional tests
SchSeba Aug 3, 2023
835f5ac
improve udev rules to only disable nm on operator managed devices
SchSeba Sep 4, 2023
0a6cacd
Merge pull request #498 from liornoy/update-k8s-reporter
Sep 13, 2023
04e886f
Merge remote-tracking branch 'downstream/master' into add-k8s-reporter
liornoy Sep 13, 2023
9214273
Merge pull request #476 from SchSeba/design_externally_manage
zeeke Sep 13, 2023
08badf6
Merge pull request #493 from zeeke/ocpbugs-8266
SchSeba Sep 14, 2023
d03f955
Updating sriov-network-operator images to be consistent with ART
Sep 16, 2023
0c3e2ea
Updating sriov-network-webhook images to be consistent with ART
Sep 16, 2023
2a0cc08
Updating sriov-network-config-daemon images to be consistent with ART
Sep 17, 2023
0055add
Merge pull request #826 from openshift-bot/art-consistency-openshift-…
openshift-merge-robot Sep 18, 2023
f189cd6
Add context to `validatePolicyForNodeState` errors
zeeke Sep 18, 2023
24027fd
Merge pull request #827 from openshift-bot/art-consistency-openshift-…
openshift-merge-robot Sep 19, 2023
524602e
Merge pull request #828 from openshift-bot/art-consistency-openshift-…
openshift-merge-robot Sep 19, 2023
55de991
Use the OPERATOR_NAMESPACE var in the k8sreporter
liornoy Sep 19, 2023
2097c2a
Merge pull request #506 from liornoy/use-namespace-const
zeeke Sep 19, 2023
dd4751c
Merge remote-tracking branch 'downstream/master' into add-k8s-reporter
liornoy Sep 19, 2023
b5d2a17
Merge pull request #824 from liornoy/add-k8s-reporter
openshift-merge-robot Sep 20, 2023
26f3737
Bump images to rhel-9
bn222 Sep 26, 2023
d72a2ad
Merge pull request #831 from bn222/NHE-751
openshift-merge-robot Sep 26, 2023
53cfd3d
Fix comments
SchSeba Sep 26, 2023
2c5fc1b
virtual cluster e2e tests changes
SchSeba Jun 14, 2023
22c7a2e
Merge pull request #462 from SchSeba/support_virtual_cluster
e0ne Sep 28, 2023
6f63125
Refactor network controller namespace handlers
zeeke Sep 28, 2023
532df8a
Merge pull request #484 from wizhaoredhat/fix_plugin_ds_node_selector
e0ne Sep 28, 2023
c7cbaa8
Bump base images to rhel9 too
bn222 Sep 29, 2023
68a8c3a
Merge pull request #836 from bn222/bumpbase
openshift-merge-robot Sep 29, 2023
d8a33a8
Merge pull request #436 from SchSeba/externally_manage
SchSeba Oct 1, 2023
3241c2f
Speed up GitHub action runs and save resources
SchSeba Oct 2, 2023
8d53a20
Merge pull request #504 from zeeke/improve-validation-error
e0ne Oct 5, 2023
41774fb
add networkManager to disable dhcp on vfs
SchSeba Oct 2, 2023
44afc00
Merge pull request #515 from SchSeba/update_github_actions
zeeke Oct 9, 2023
09c94a1
conformance-test: Filter NIC by env var
zeeke Sep 14, 2023
bcfa74a
Add vlanProto parameter
mlguerrero12 Oct 6, 2023
6838aec
Add events for config daemon
rollandf Oct 10, 2023
314f246
Merge pull request #517 from mlguerrero12/addprotoparam
Oct 12, 2023
d73d7ad
Merge pull request #483 from wizhaoredhat/fix_node_selector
Oct 12, 2023
bcaf72b
Kernel args set by the config daemon should be verified
wizhaoredhat Aug 3, 2023
3eaac7e
Set kernel arg PCI realloc on "cannot allocate memory" on VF creation
wizhaoredhat Aug 3, 2023
49fff50
Merge pull request #486 from wizhaoredhat/add_pci_realloc
bn222 Oct 13, 2023
efb48ad
Update error messages to show why no interface is selected
vrindle Apr 28, 2023
a3ea7b1
Merge pull request #434 from vrindle/fix_error_message_revised
bn222 Oct 16, 2023
d5499fd
Merge pull request #513 from zeeke/react-namespace-refactor
zeeke Oct 16, 2023
7068f9c
Update configmap.yaml
murali509 Oct 16, 2023
2432e47
Update configmap.yaml to add support for Intel E823C NIC
murali509 Oct 17, 2023
a83f66d
Update supported-hardware.md to add support Intel E823-C NIC
murali509 Oct 17, 2023
bf595e4
Merge pull request #519 from rollandf/events
e0ne Oct 17, 2023
7fd62a4
Avoid recording multiple events
adrianchiris Oct 18, 2023
a90baba
Updating sriov-network-config-daemon-container image to be consistent…
Oct 18, 2023
305e695
Extend make image target to build config daemon image
adrianchiris Oct 19, 2023
4d153f8
allow config daemon to send events
adrianchiris Oct 19, 2023
af24f18
Merge pull request #521 from adrianchiris/dont-record-same-events
adrianchiris Oct 19, 2023
065d0cf
Add SR-IOV Device Plugin CDI support
e0ne Jul 12, 2023
3b84171
Merge pull request #525 from adrianchiris/fix-operator-deployment
adrianchiris Oct 19, 2023
e1f6fd9
Fix typo NetworkAttachementDefinition
andreaskaris Sep 22, 2023
2fea41b
Merge remote-tracking branch 'upstream/master' into sync-20231020
mlguerrero12 Oct 20, 2023
2eefedb
webhook: Disable HTTP2 by default
zeeke Oct 20, 2023
2bafe25
Merge pull request #520 from murali509/patch-1
SchSeba Oct 20, 2023
39ce89d
virtual: get real PCI address for each device found
EmilienM Oct 2, 2023
55baf5a
utils_virtual: unit tests
EmilienM Oct 18, 2023
2a1bbec
Add Virtio 1.0 network device as supported
EmilienM Oct 5, 2023
3a69bf8
Support logLevel and logFile for SR-IOV plugin
andreaskaris Sep 22, 2023
9e24f2f
Merge pull request #841 from mlguerrero12/sync-1020
openshift-ci[bot] Oct 20, 2023
14ccb38
Merge pull request #516 from EmilienM/pci
SchSeba Oct 21, 2023
6f54e23
CI scripts improvements
SchSeba Oct 18, 2023
10a8201
Merge pull request #523 from SchSeba/update_ocp_ci_version
SchSeba Oct 22, 2023
8dac408
Merge remote-tracking branch 'upstream/master' into ds-sync-20231023
zeeke Oct 23, 2023
dfb84a1
d/s: generate bundle
zeeke Oct 23, 2023
8b3e75a
Merge pull request #842 from zeeke/ds-sync-20231023
openshift-ci[bot] Oct 23, 2023
fbc5bc1
update version to 4.15
zeeke Oct 17, 2023
2d33030
[downstream-only] Support RH Virtio 1.0 network device
EmilienM Oct 24, 2023
de7945c
Merge pull request #522 from cgoncalves/CVE-2023-44487
Oct 24, 2023
e86d1cb
Merge commit '2eefedb63' into OCPBUGS-22158
cgoncalves Oct 24, 2023
513daf6
Merge pull request #840 from zeeke/update-415
openshift-ci[bot] Oct 25, 2023
c88cc24
Merge pull request #509 from andreaskaris/debug-logging
zeeke Oct 25, 2023
4fa2bae
Merge pull request #845 from cgoncalves/OCPBUGS-22158
openshift-ci[bot] Oct 25, 2023
6d7660c
Merge pull request #844 from EmilienM/viriot1-0
openshift-ci[bot] Oct 25, 2023
3398795
Assert config-daemon can publish events
zeeke Oct 25, 2023
21f7333
Support number of workers for the virtual cluster
SchSeba Oct 22, 2023
027cef2
Merge pull request #514 from zeeke/e2e-test-select-pf
e0ne Oct 27, 2023
145272f
fix: sriov config service unit-file dependencies
adrianchiris Oct 29, 2023
f622e38
Merge pull request #473 from e0ne/cdi
adrianchiris Oct 30, 2023
ab2b1b3
move log initialization and setup to its own pkg
adrianchiris Oct 30, 2023
6806da4
update api helper logs
adrianchiris Oct 30, 2023
19b37c3
update logs in daemon pkg
adrianchiris Oct 30, 2023
7794d21
update logs in host pkg
adrianchiris Oct 30, 2023
572dc27
update leaderelection pkg logs
adrianchiris Oct 30, 2023
c155c82
update plugin pkg logs
adrianchiris Oct 30, 2023
0ba80c3
update service pkg log
adrianchiris Oct 30, 2023
664945b
update systemd pkg logs
adrianchiris Oct 30, 2023
9a94575
update utils pkg logs
adrianchiris Oct 30, 2023
2542dde
update webhook pkg logs
adrianchiris Oct 30, 2023
2a775ae
update webhook manifest
adrianchiris Oct 30, 2023
b61d6ef
update client test pkg log
adrianchiris Oct 30, 2023
37924ef
run go mod tidy
adrianchiris Oct 30, 2023
108eef9
Merge pull request #532 from adrianchiris/sriov-systemd-dependencies
adrianchiris Oct 31, 2023
f00830a
Merge pull request #527 from adrianchiris/align-config-daemon-loggin
adrianchiris Oct 31, 2023
50fcaf3
e2e: Add cluster-info as job artifact
zeeke Oct 30, 2023
d4d11d4
Replace reference to quay image with origin image
bn222 Oct 31, 2023
2be5408
Add check extra check for systemd service in the daemon
ykulazhenkov Oct 26, 2023
f1afab5
Remove systemd service result file after configuration update
ykulazhenkov Oct 26, 2023
4dad655
Merge pull request #528 from SchSeba/ci_improvements
zeeke Oct 31, 2023
e91a118
Merge pull request #853 from bn222/master
openshift-ci[bot] Oct 31, 2023
ed5bef6
match origin image to configured image reference
ashwindasr Oct 31, 2023
744ca04
Merge pull request #531 from ykulazhenkov/fix-disabled-systemd
e0ne Nov 1, 2023
3740b44
Merge pull request #854 from ashwindasr/fix-upstream-references
openshift-ci[bot] Nov 1, 2023
e35bc9e
Merge pull request #534 from zeeke/e2e-debug-archive
zeeke Nov 3, 2023
1619f78
Fix equality comparison of policy specs
mlguerrero12 Nov 6, 2023
9ea820d
Skip vf configuration when not found in VF group
mlguerrero12 Nov 7, 2023
28d4726
Basic verification of `SriovNetwork.Spec.LogLevel`
zeeke Oct 25, 2023
5115e63
Update controller-runtime and kubectl
cgoncalves Oct 20, 2023
f109dc6
Fix for controller-runtime v0.16.3 API compat
cgoncalves Oct 20, 2023
7390d13
Refactor vfGroup lookup in configSriovDevice
mlguerrero12 Nov 8, 2023
7d9eca4
fix odd number of key-value in error logs
adrianchiris Nov 9, 2023
ba78e01
Merge pull request #543 from adrianchiris/fix-err-logs
zeeke Nov 9, 2023
2988e1d
Merge pull request #538 from mlguerrero12/fixdeepequalcheck
zeeke Nov 9, 2023
2468eb8
Merge pull request #529 from zeeke/e2e-tests
SchSeba Nov 11, 2023
c786784
Merge pull request #526 from cgoncalves/CVE-2023-44487_controller_run…
zeeke Nov 13, 2023
0f17753
Logs `sriov-network-config-daemon` by default
zeeke Nov 10, 2023
4dc27ea
Verify policy is only applied to partions' VFs
mlguerrero12 Nov 8, 2023
ead7616
Merge pull request #834 from openshift-bot/art-consistency-openshift-…
openshift-merge-bot[bot] Nov 15, 2023
5f0af0e
Hash contents of cm instead of using resource version
bn222 Nov 16, 2023
11fe04b
Add unit test for HashConfigMap
bn222 Nov 21, 2023
dadaa89
Merge pull request #545 from zeeke/daemon-default-container
adrianchiris Nov 21, 2023
80f2015
Merge pull request #549 from bn222/master
bn222 Nov 22, 2023
1dce8da
Hash contents of cm instead of using resource version
bn222 Nov 16, 2023
e6edaa5
Add unit test for HashConfigMap
bn222 Nov 21, 2023
90d0d9d
Merge pull request #864 from bn222/OCPBUGS-23548
openshift-merge-bot[bot] Nov 22, 2023
c54ee95
Merge pull request #539 from mlguerrero12/fixconfigvfgroup
zeeke Nov 23, 2023
c7dc1be
Merge remote-tracking branch 'upstream/master' into sync-20231123
zeeke Nov 23, 2023
c7fe450
Update bundles
zeeke Nov 23, 2023
db56757
Merge pull request #868 from zeeke/sync-20231123
openshift-merge-bot[bot] Nov 24, 2023
7c2f779
dsonly: Allow config-daemon to send k8s events
zeeke Nov 8, 2023
bd14743
Merge pull request #861 from zeeke/ds-events
openshift-merge-bot[bot] Nov 27, 2023
8df90a6
Add support for ConnectX-7
vrindle Nov 27, 2023
f7ea1e3
Merge pull request #869 from vrindle/add_connect_x_seven
openshift-merge-bot[bot] Nov 27, 2023
aaf230d
Fix config daemon annotation override
cgoncalves Dec 13, 2023
16e5d7b
Merge pull request #873 from cgoncalves/OCPBUGS-24231
openshift-merge-bot[bot] Dec 14, 2023
599aaf8
pull
zeeke Dec 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .ci-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.17-openshift-4.10
tag: rhel-9-release-golang-1.20-openshift-4.15
5 changes: 5 additions & 0 deletions .github/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "1"
rules: # Array of rules
- base: master # Required. Target branch
upstream: k8snetworkplumbingwg:master # Required. Must be in the same fork network.
mergeMethod: merge # Optional, one of [none, merge, squash, rebase, hardreset], Default: none.
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "48 5 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ go ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
44 changes: 0 additions & 44 deletions .github/workflows/go.yml

This file was deleted.

162 changes: 162 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
name: Test SR-IOV Operator

on: [push, pull_request]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:

build:
name: build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: fmt
run: IS_CONTAINER=yes make fmt

- name: Build
run: make all

test:
name: test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.20
uses: actions/setup-go@v2
with:
go-version: 1.20.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: test pkg
run: make test-pkg

- name: test controllers on opensfhit
run: CLUSTER_TYPE=openshift make test-controllers

- name: test bindata/scripts
run: make test-bindata-scripts

golangci:
name: Golangci-lint
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.51.0

test-coverage:
name: test-coverage
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.20
uses: actions/setup-go@v2
with:
go-version: 1.20.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: test pkg
run: make test-pkg

- name: test controllers on opensfhit
run: CLUSTER_TYPE=openshift make test-controllers

- name: merge test coverage
run: make merge-test-coverage

- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.out

virtual-k8s-cluster:
name: k8s
needs: [
build,
test,
golangci,
]
runs-on: [ sriov ]
env:
TEST_REPORT_PATH: k8s-artifacts
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20.x

- name: run test
run: make test-e2e-conformance-virtual-k8s-cluster-ci

- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ env.TEST_REPORT_PATH }}
path: ./${{ env.TEST_REPORT_PATH }}

- name: remove virtual cluster
if: always()
run: |
kcli delete cluster $CLUSTER_NAME -y
kcli delete network $CLUSTER_NAME -y

virtual-ocp:
name: ocp
needs: [
build,
test,
golangci,
]
runs-on: [ ocp ]
env:
TEST_REPORT_PATH: ocp-artifacts
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20.x

- name: run test
run: make test-e2e-conformance-virtual-ocp-cluster-ci

- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ env.TEST_REPORT_PATH }}
path: ./${{ env.TEST_REPORT_PATH }}

- name: remove virtual cluster
if: always()
run: |
kcli delete cluster $CLUSTER_NAME -y
kcli delete network $CLUSTER_NAME -y
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ bin/
testbin/
env
.env
.cache
# Created by https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
### Emacs ###
# -*- mode: gitignore; -*-
Expand Down
121 changes: 121 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Tested with golangci-lint ver. 1.37
run:
timeout: 10m
skip-dirs:
- vendor/
- .github/
- deployment/
- doc/
- bindata/
- pkg/client
linters-settings:
depguard:
list-type: blacklist
packages:
# logging is allowed only by logutils.Log, logrus
# is allowed to use only in logutils package
- github.com/sirupsen/logrus
packages-with-error-message:
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
dupl:
threshold: 100
funlen:
lines: 100
statements: 50
goconst:
min-len: 2
min-occurrences: 2
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport # https://github.com/go-critic/go-critic/issues/845
- ifElseChain
- octalLiteral
- whyNoLint
- wrapperFunc
- unnamedResult
settings:
hugeParam:
sizeThreshold: 512
rangeValCopy:
sizeThreshold: 512
gocyclo:
min-complexity: 15
goimports:
local-prefixes: github.com/k8snetworkplumbingwg/sriov-network-operator
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks: argument,case,condition,return
lll:
line-length: 140
misspell:
locale: US
prealloc:
# Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# True by default.
simple: true
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: false # Report preallocation suggestions on for loops, false by default
stylecheck:
dot-import-whitelist:
- github.com/onsi/ginkgo/v2
- github.com/onsi/gomega
- github.com/onsi/gomega/gstruct

linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
- bodyclose
- depguard
- dogsled
# TODO fix issues- dupl
# TODO fix issues- errcheck
- exportloopref
- exhaustive
# TODO fix issues- funlen
#- gochecknoinits
- goconst
# TODO fix issues- gocritic
# TODO fix issues- gocyclo
- gofmt
- goimports
# TODO fix issues- gomnd
- goprintffuncname
# TODO fix issues- gosec
- gosimple
#- govet
- ineffassign
# TODO fix issues- lll
- misspell
# TODO fix issues- nakedret
# TODO fix issues- prealloc
#- scopelint
# TODO fix issues- staticcheck
- stylecheck
- typecheck
- unconvert
# TODO fix issues- unparam
- unused
- whitespace

issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: _test\.go
linters:
- gomnd
- gosec
- dupl
- lll
- stylecheck
- goconst

Loading
Loading