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

Update kube-vip to v0.6.4 #17

Merged
merged 478 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
478 commits
Select commit Hold shift + click to select a range
1d1a8bb
Merge pull request #503 from thebsdbox/api_failure
thebsdbox Jan 19, 2023
1b4bba0
New Release
thebsdbox Jan 19, 2023
7ad4e27
Fixes to negative waitgroup
thebsdbox Feb 2, 2023
9f72827
Fix service deletion not registering
Feb 2, 2023
3ff1eb2
Merge pull request #509 from thebsdbox/main
thebsdbox Feb 7, 2023
3a8a94f
Adds services testing and fixes missing context
thebsdbox Feb 8, 2023
aa296d8
Fixes to linting
thebsdbox Feb 8, 2023
b446a80
Merge pull request #511 from thebsdbox/context_fix
thebsdbox Feb 8, 2023
a66b84a
Update Makefile
thebsdbox Feb 8, 2023
4f0c163
Merge pull request #510 from spideyfusion/fix-service-delete
thebsdbox Feb 10, 2023
d93e0cd
Ensures a leadership will be restarted
thebsdbox Feb 10, 2023
9ab8b90
linter fix
thebsdbox Feb 10, 2023
b62b331
more linting
thebsdbox Feb 10, 2023
71b490d
stupid linter
thebsdbox Feb 10, 2023
285f4e5
this should be it
thebsdbox Feb 10, 2023
62d826f
Merge pull request #512 from thebsdbox/endpoint_leadership
thebsdbox Feb 10, 2023
c10b410
Fixes and testing for endpoints
thebsdbox Feb 15, 2023
a3644ba
Merge pull request #513 from thebsdbox/endpoint_fixes
thebsdbox Feb 15, 2023
9d15cbe
Merge pull request #494 from fimmicon/patch-1
thebsdbox Feb 17, 2023
acea12d
Bump golang.org/x/net from 0.2.0 to 0.7.0
dependabot[bot] Feb 17, 2023
98c885d
Adds e2e testing of services
thebsdbox Feb 19, 2023
90f6234
Merge pull request #516 from thebsdbox/e2eServices
thebsdbox Feb 19, 2023
606f3e3
Update ci.yaml
thebsdbox Feb 19, 2023
7802027
lint fixes
thebsdbox Feb 19, 2023
790d0b5
lint fix
thebsdbox Feb 19, 2023
aed43b2
final fix to makefile
thebsdbox Feb 19, 2023
23fda78
Update ci.yaml
thebsdbox Feb 20, 2023
3caa8fd
Merge pull request #517 from thebsdbox/2e2eLint
thebsdbox Feb 20, 2023
0c14497
Update anchore-syft.yml
thebsdbox Feb 20, 2023
3971c7d
Tidies actions.
thebsdbox Feb 20, 2023
18d11ea
Set correct labels.
thebsdbox Feb 20, 2023
bcaa8be
Merge pull request #518 from thebsdbox/actions_fixes
thebsdbox Feb 20, 2023
a31d9a6
Merge pull request #515 from kube-vip/dependabot/go_modules/golang.or…
thebsdbox Feb 20, 2023
53d33d7
Update Makefile
thebsdbox Feb 20, 2023
323f054
Merge pull request #519 from kube-vip/final-0.5.x-release
thebsdbox Feb 20, 2023
a92c536
Update main.yaml
thebsdbox Feb 21, 2023
a691b3f
check for new equinix ccm annotations
Feb 23, 2023
0320d25
replace packet with equinix metal in comments and logs
Feb 24, 2023
9c6b87c
Update README.md
thebsdbox Feb 27, 2023
49c871b
Merge pull request #521 from ocobleseqx/support_new_equinix_ccm_annot…
thebsdbox Feb 27, 2023
61d5deb
Readd VIP if address has dadfailed flag
tylerschultz Mar 1, 2023
c7536f1
Merge pull request #524 from tylerschultz/recreate-vip-on-dadfailed
thebsdbox Mar 2, 2023
798b9c4
go.mod: Bump dependencies
mrueg Mar 5, 2023
a422d24
Merge pull request #526 from mrueg/bump-deps
thebsdbox Mar 6, 2023
a9932ec
Deprecate loadbalancerIP
lubronzhan Mar 6, 2023
332546d
Update readme
lubronzhan Mar 7, 2023
fb66fe0
Merge pull request #529 from lubronzhan/topic/lubron/update_readme
thebsdbox Mar 7, 2023
cc63a13
Fix the doc link
lubronzhan Mar 9, 2023
e1bafbe
Merge branch 'kube-vip:main' into iptables-nft
dockerpac Mar 9, 2023
8af0391
Merge pull request #528 from lubronzhan/topic/lubron/deprecate_loadba…
thebsdbox Mar 16, 2023
ae25e6b
Adds ability to specifc iptables or nftables
thebsdbox Apr 3, 2023
8590fef
Merge branch 'main' into iptables
thebsdbox Apr 3, 2023
e604e4f
lint fixes
thebsdbox Apr 4, 2023
f4d193f
Merge branch 'iptables' of github.com:thebsdbox/kube-vip into iptables
thebsdbox Apr 4, 2023
9e88b00
Further linting fixes
thebsdbox Apr 4, 2023
9119597
final fixes
thebsdbox Apr 4, 2023
6037cc7
Merge pull request #531 from lubronzhan/topic/lubron/fix_doc_link
thebsdbox Apr 4, 2023
8febca0
Update ci.yaml
thebsdbox Apr 4, 2023
aeabe54
Merge pull request #536 from thebsdbox/iptables
thebsdbox Apr 4, 2023
aa7eabd
Update makefile to accept variable to update version
lubronzhan Apr 5, 2023
2b7c02c
Merge pull request #538 from lubronzhan/topic/lubron/kube-vip_update_…
cprivitere Apr 5, 2023
eac9d2b
Adds nftables as an option, and fixes a panic
thebsdbox Apr 14, 2023
7e4f596
Merge branch 'main' into iptables
thebsdbox Apr 14, 2023
e8319a6
dont lint old files
thebsdbox Apr 14, 2023
6c5b39b
Merge branch 'iptables' of github.com:thebsdbox/kube-vip into iptables
thebsdbox Apr 14, 2023
e4f42a3
Merge pull request #540 from thebsdbox/iptables
thebsdbox Apr 14, 2023
f1eef8f
Add support for lbClassName
W1zzardTPU Apr 23, 2023
27444b3
Merge pull request #546 from W1zzardTPU/main
thebsdbox Apr 26, 2023
b33da24
fix LB annotations
tuxtof Apr 29, 2023
7fcf0f1
Use correct address family for ipvs destinations
sykesm Apr 30, 2023
839011c
Merge pull request #554 from sykesm/ipvs-ipv6
thebsdbox May 3, 2023
e0a9e70
Merge pull request #553 from tuxtof/fix-lb-annotation
thebsdbox May 3, 2023
3736488
Ignore different family on IPVS delete
sykesm May 3, 2023
60957d6
Merge pull request #555 from sykesm/ipvs-ipv6
thebsdbox May 3, 2023
e6e4d1c
This ensures rule cleaning only happens in a NS
thebsdbox May 5, 2023
1474fcf
Support changing load balancer IP
yaocw2020 May 7, 2023
640743a
feat(bgp-server): add peer state change callback
jonasbadstuebner May 4, 2023
386d151
feat(metrics): add bgp_session_info
jonasbadstuebner May 4, 2023
68e6a94
feat(metrics): implement bgp_session_info
jonasbadstuebner May 8, 2023
4a2e72e
refactor(metrics): better memory efficiency
jonasbadstuebner May 8, 2023
834aa94
Merge pull request #558 from thebsdbox/egress_namespace_isolation
thebsdbox May 8, 2023
17eee86
Update main.yaml
thebsdbox May 8, 2023
f03917e
Merge pull request #561 from DrBu7cher/add_bgp_metrics_v1
thebsdbox May 10, 2023
f2f73c0
Set iptables rules to limit traffic ports
yaocw2020 May 7, 2023
ed59a13
Merge pull request #560 from yaocw2020/0502
thebsdbox May 11, 2023
cfbf9b0
Move helper from pkg/service and remove package
sykesm May 11, 2023
cc362f7
checks - fix things flagged by linting
sykesm May 4, 2023
2796185
Merge pull request #557 from sykesm/kill-pkg-service
thebsdbox May 11, 2023
9ec6b3e
Add annotation kube-vip.io/ignore-service-security
yaocw2020 May 12, 2023
8ea53f2
Merge pull request #562 from yaocw2020/ignoreServiceSecurity
thebsdbox May 15, 2023
b594d45
Update Makefile
thebsdbox May 15, 2023
2a21b87
Add BGP password support for Equinix Metal
enkelprifti98 May 19, 2023
731545c
Merge pull request #565 from enkelprifti98/main
thebsdbox May 19, 2023
d7f4aba
Add support for multiple BGP peers when using Equinix Metal annotations
enkelprifti98 May 19, 2023
24588d0
fix: formatting spaces on 217
cprivitere May 19, 2023
fa248cc
Merge pull request #567 from enkelprifti98/main
cprivitere May 19, 2023
0efed56
Merge pull request #502 from dockerpac/iptables-nft
cprivitere May 19, 2023
ef49958
Revert "adding iptables-wrappers script to entrypoint"
thebsdbox May 19, 2023
6e8b3a9
Merge pull request #569 from kube-vip/revert-502-iptables-nft
thebsdbox May 19, 2023
cd29e3d
Check activeServiceLoadBalancerCancel is nil or not before calling it
lubronzhan May 22, 2023
313c4c0
use config leasename instead of hardcoded
timosluis May 25, 2023
af86209
Merge pull request #571 from lubronzhan/topic/lubron/check_lb_cancel_…
thebsdbox May 25, 2023
6f2acf0
Increase client QPS to reduce clientside k8api throttling
megakid May 30, 2023
c3a700b
Merge pull request #573 from timosluis/main
thebsdbox Jun 2, 2023
09daa0c
Merge branch 'kube-vip:main' into patch-1
megakid Jun 2, 2023
c3ab677
PR Fixes
megakid Jun 2, 2023
2dcd9e5
enable leaderelection for bgp in CP mode
marc-cerebras Jun 19, 2023
f2f7d36
Fix makefile default target
runsisi Jun 20, 2023
2349251
Bump google.golang.org/grpc from 1.51.0 to 1.53.0
dependabot[bot] Jul 5, 2023
9667c77
add lease annotations
timosluis Jul 12, 2023
64f8ebd
fix formatting
timosluis Jul 12, 2023
ec80533
Merge pull request #578 from marc-cerebras/marc-cerebras/bgp-cp-leade…
thebsdbox Jul 18, 2023
8c0791d
Merge pull request #579 from runsisi/wip-fix-target
thebsdbox Jul 18, 2023
1ad0ae7
Merge pull request #583 from kube-vip/dependabot/go_modules/google.go…
thebsdbox Jul 18, 2023
bdb9b0e
Merge pull request #585 from timosluis/lease_annotations
thebsdbox Jul 18, 2023
0060d36
Update the DHCP workflows
rikatz Jul 21, 2023
702a27b
Add proper backoff and max errors on dhcp client
rikatz Jul 22, 2023
3d357a4
Fix linter error
rikatz Jul 27, 2023
ec5a513
Merge pull request #587 from rikatz/fix-dhcp-workflow-part1
thebsdbox Jul 27, 2023
f36b433
Update go dependencies
mrueg May 31, 2023
7b64893
Update golangci-lint
mrueg Jul 27, 2023
5a06a88
Merge pull request #576 from mrueg/update-deps-0623
thebsdbox Aug 12, 2023
9bfbb29
Fixes to e2e tests and re-enabling
thebsdbox Aug 13, 2023
1da54e6
lint fixes.
thebsdbox Aug 13, 2023
c54994e
Merge pull request #592 from thebsdbox/e2e_fixes
thebsdbox Aug 13, 2023
c2215e5
Fixes to ginko
thebsdbox Aug 13, 2023
bac763e
more tidying
thebsdbox Aug 13, 2023
ab7ceb8
more fixes
thebsdbox Aug 13, 2023
92e1376
MORE AND MORE FIXES
thebsdbox Aug 13, 2023
18fadf2
Merge pull request #593 from thebsdbox/ginko_bump
thebsdbox Aug 14, 2023
5f9dc0a
initial commit
Aug 14, 2023
7a5d80b
Merge branch 'kube-vip:main' into patch-1
megakid Aug 15, 2023
74f6785
Compilation fixes again
megakid Aug 15, 2023
aa9cb9a
Some BIG OLDE e2e tests!
thebsdbox Aug 15, 2023
6a71e26
This makes sure we check if a services is active
thebsdbox Aug 15, 2023
bc63ed2
lint fixes
thebsdbox Aug 15, 2023
a18e26d
more_lint
thebsdbox Aug 15, 2023
203de87
Merge pull request #596 from thebsdbox/e2e-2-death
thebsdbox Aug 15, 2023
778886e
Merge pull request #597 from thebsdbox/watch_fix
thebsdbox Aug 15, 2023
57c008b
Merge pull request #595 from jkossis/update-makefile-0.6.1
thebsdbox Aug 15, 2023
cfdd5d1
Merge pull request #575 from megakid/patch-1
thebsdbox Aug 15, 2023
baba79e
Fix to main
thebsdbox Aug 15, 2023
4e69ada
Merge pull request #598 from thebsdbox/fix_main
thebsdbox Aug 15, 2023
92338ae
action fix
thebsdbox Aug 15, 2023
9654138
Merge pull request #599 from thebsdbox/codeql
thebsdbox Aug 15, 2023
b4f5554
Fix dos through checking for remaining services before releasing ip. …
usiegl00 Aug 16, 2023
9c84c56
Fix formatting to pass lint.
usiegl00 Aug 17, 2023
a47e46c
Merge pull request #601 from usiegl00/main
thebsdbox Aug 18, 2023
f766606
Update Makefile for new release
thebsdbox Aug 24, 2023
55398e6
add routing table type environment variable
timosluis Sep 4, 2023
9fbe98c
gofmt
timosluis Sep 4, 2023
6d47329
added create rbac settings section for kind
hellt Sep 4, 2023
8afe5ca
add comment about valid values
timosluis Sep 7, 2023
724ec2a
specify different scope for local routes
timosluis Sep 8, 2023
89d883d
add routing table id as envvar
timosluis Sep 8, 2023
991587c
fix formatting + add route to link + remove route on shutdown
timosluis Sep 11, 2023
31b7aad
revert go.mod and go.sum
timosluis Sep 11, 2023
99e9579
Ignore kube-vip binary
mjtrangoni Sep 14, 2023
06e41ba
chore: Fix some misspellings found by codespell
mjtrangoni Sep 14, 2023
d8ed0e5
prometheus: Handle root path
mjtrangoni Sep 14, 2023
5ac633f
ARP: Add node labeling for ARP mode DaemonSet deployment.
mjtrangoni Sep 19, 2023
a826649
Merge pull request #617 from mjtrangoni/add-node-labeling
thebsdbox Sep 22, 2023
bad9381
Merge pull request #613 from mjtrangoni/handle-prom-root
thebsdbox Sep 22, 2023
cc96d65
Merge pull request #612 from mjtrangoni/chore
thebsdbox Sep 22, 2023
d69a92f
This bumps the base images for vulnerabilities
thebsdbox Sep 27, 2023
565e6dc
Merge pull request #619 from thebsdbox/alpine_bump
thebsdbox Sep 27, 2023
219bc19
Update ci.yaml
thebsdbox Sep 28, 2023
0ad1ccb
Adds logic and debugging around fqdn endpoints
thebsdbox Sep 28, 2023
0def3c0
Merge pull request #621 from thebsdbox/endpoint_fqdn
thebsdbox Sep 29, 2023
e41abf0
Allow svc lock name to be configurable in arp mode.
Willena Sep 30, 2023
bfa6a9a
Merge pull request #622 from Willena/feat/svc-lock-configurable-in-ar…
thebsdbox Oct 3, 2023
36bccb7
Call fatal when interface fails
thebsdbox Oct 3, 2023
72410cc
Enable unit and e2e tests in CI
g-gaston Oct 3, 2023
8d362d9
Merge pull request #624 from g-gaston/unit-tests
thebsdbox Oct 4, 2023
a09a1db
Merge pull request #623 from thebsdbox/fatal_interface
thebsdbox Oct 4, 2023
cbcc68e
Update Makefile
thebsdbox Oct 4, 2023
ae307f8
Add leader election using etcd as a backend
g-gaston Sep 30, 2023
fa26d77
Merge pull request #626 from g-gaston/etcd-vip
thebsdbox Oct 14, 2023
04bdc57
Bump golang.org/x/net from 0.12.0 to 0.17.0
dependabot[bot] Oct 14, 2023
b5bf507
Fix etcd e2e tests in GitHub actions
g-gaston Oct 16, 2023
29d7773
Merge pull request #629 from g-gaston/fix-etcd-e2e-test-action
thebsdbox Oct 17, 2023
888eff1
Merge pull request #628 from kube-vip/dependabot/go_modules/golang.or…
thebsdbox Oct 17, 2023
31955fe
.github: Add a dependabot config
mrueg Oct 23, 2023
5a0715d
Merge pull request #633 from mrueg/dependabot
thebsdbox Oct 23, 2023
a8914af
Bump golang from 1.20.8-alpine3.18 to 1.21.3-alpine3.18
dependabot[bot] Oct 23, 2023
70e94d2
Bump docker/setup-qemu-action from 1 to 3
dependabot[bot] Oct 23, 2023
f20fa9d
Bump github/codeql-action from 1 to 2
dependabot[bot] Oct 23, 2023
202274d
Bump anchore/sbom-action from 0.12.0 to 0.14.3
dependabot[bot] Oct 23, 2023
4e88e32
Bump docker/build-push-action from 2 to 5
dependabot[bot] Oct 23, 2023
52bacaa
Bump github.com/onsi/ginkgo/v2 from 2.12.1 to 2.13.0
dependabot[bot] Oct 23, 2023
1cde04e
Bump github.com/osrg/gobgp/v3 from 3.17.0 to 3.19.0
dependabot[bot] Oct 23, 2023
2a8e981
Bump go.uber.org/zap from 1.21.0 to 1.26.0
dependabot[bot] Oct 23, 2023
4d7409f
Merge pull request #634 from kube-vip/dependabot/docker/golang-1.21.3…
thebsdbox Oct 26, 2023
ed0281b
Merge pull request #635 from kube-vip/dependabot/github_actions/docke…
thebsdbox Oct 26, 2023
fb9d80a
Merge pull request #636 from kube-vip/dependabot/github_actions/githu…
thebsdbox Oct 26, 2023
3ea0b62
Bump actions/checkout from 2 to 4
dependabot[bot] Oct 26, 2023
ace7001
Merge pull request #638 from kube-vip/dependabot/github_actions/ancho…
thebsdbox Oct 26, 2023
1eb9bdd
Bump alpine from 3.18.3 to 3.18.4
dependabot[bot] Oct 26, 2023
b643453
Merge pull request #639 from kube-vip/dependabot/github_actions/docke…
thebsdbox Oct 26, 2023
f024f5e
Merge pull request #645 from kube-vip/dependabot/go_modules/go.uber.o…
thebsdbox Oct 26, 2023
b4593b2
Merge pull request #641 from kube-vip/dependabot/go_modules/github.co…
thebsdbox Oct 26, 2023
2567437
Merge pull request #644 from kube-vip/dependabot/go_modules/github.co…
thebsdbox Oct 26, 2023
08d7153
Bump google.golang.org/grpc from 1.57.0 to 1.57.1
dependabot[bot] Oct 26, 2023
a25cc92
Bump k8s.io/client-go from 0.27.4 to 0.28.3
dependabot[bot] Oct 26, 2023
9b7ef5d
Merge pull request #649 from kube-vip/dependabot/go_modules/google.go…
thebsdbox Oct 26, 2023
7ea481b
Merge pull request #637 from kube-vip/dependabot/docker/alpine-3.18.4
thebsdbox Oct 26, 2023
f5091a4
Merge pull request #640 from kube-vip/dependabot/github_actions/actio…
thebsdbox Oct 26, 2023
063cc2f
Merge pull request #643 from kube-vip/dependabot/go_modules/k8s.io/cl…
thebsdbox Oct 26, 2023
14c27ff
Add doc for static pods on k0s using k0sctl
aarnaud Oct 26, 2023
6e528fe
Bump sigs.k8s.io/yaml from 1.3.0 to 1.4.0
dependabot[bot] Oct 30, 2023
864bacf
Bump go.etcd.io/etcd/client/pkg/v3 from 3.5.9 to 3.5.10
dependabot[bot] Oct 30, 2023
f098742
Bump go.etcd.io/etcd/client/v3 from 3.5.9 to 3.5.10
dependabot[bot] Oct 30, 2023
334590b
Bump docker/login-action from 1 to 3
dependabot[bot] Oct 30, 2023
cf9fa5b
Bump docker/setup-buildx-action from 1 to 3
dependabot[bot] Oct 30, 2023
16c8deb
Bump golang from 1.21.3-alpine3.18 to 1.21.4-alpine3.18
dependabot[bot] Nov 13, 2023
259b31c
Bump github.com/onsi/gomega from 1.27.10 to 1.30.0
dependabot[bot] Nov 13, 2023
a295b44
[svc] Add annotation to specify DHCP lease host
shkuviak Nov 16, 2023
b42b782
Merge pull request #650 from aarnaud/doc/k0sctl
thebsdbox Nov 21, 2023
f0de676
lint
Nov 24, 2023
08abd38
Added trivy command in makefile
shkuviak Nov 25, 2023
e7b68cf
Add upgrade command in Dockerfile_iptables
shkuviak Nov 25, 2023
0f29b97
Bump anchore/sbom-action from 0.14.3 to 0.15.0
dependabot[bot] Nov 27, 2023
247cffb
Merge pull request #664 from shkuviak/feature/service-dhcp-hostname
thebsdbox Dec 2, 2023
de7a454
Merge pull request #653 from kube-vip/dependabot/go_modules/sigs.k8s.…
thebsdbox Dec 2, 2023
0626053
Merge pull request #654 from kube-vip/dependabot/go_modules/go.etcd.i…
thebsdbox Dec 2, 2023
8d90a80
Merge pull request #656 from kube-vip/dependabot/github_actions/docke…
thebsdbox Dec 2, 2023
b53b340
Merge pull request #668 from kube-vip/dependabot/github_actions/ancho…
thebsdbox Dec 2, 2023
99dcf88
Merge pull request #657 from kube-vip/dependabot/github_actions/docke…
thebsdbox Dec 2, 2023
0a4a1dc
Merge pull request #659 from kube-vip/dependabot/docker/golang-1.21.4…
thebsdbox Dec 2, 2023
cd86f70
Merge pull request #661 from kube-vip/dependabot/go_modules/github.co…
thebsdbox Dec 2, 2023
befe2b9
Merge branch 'main' into dependabot/go_modules/go.etcd.io/etcd/client…
thebsdbox Dec 2, 2023
c7abf75
Merge pull request #655 from kube-vip/dependabot/go_modules/go.etcd.i…
thebsdbox Dec 2, 2023
1f1c7fe
Tidies up logging messages and redundant logic
thebsdbox Dec 2, 2023
cfa2e93
Further cleaning
thebsdbox Dec 2, 2023
68c9e49
linting fixes.
thebsdbox Dec 2, 2023
f54595d
Merge pull request #669 from thebsdbox/cleanup
thebsdbox Dec 2, 2023
f33a0b7
Merge branch 'main' into main
thebsdbox Dec 3, 2023
2cee472
Merge pull request #606 from CopernicaMarketingSoftware/main
thebsdbox Dec 3, 2023
b0f7aa1
Fixes to linting for routing table
thebsdbox Dec 3, 2023
4792424
Merge pull request #607 from hellt/patch-1
thebsdbox Dec 3, 2023
6a642c7
Merge pull request #670 from thebsdbox/lint_fix_routing
thebsdbox Dec 3, 2023
68f7b3c
Spectro FIPS and CICD
zulfilee Jun 14, 2023
123166e
Fips changes for Static Linking
zulfilee Jun 27, 2023
f068f9f
PCP-2003: Update builder image, go version and spectro-release.yaml (…
jayesh-srivastava Oct 16, 2023
7cb31d6
Fixed G2T2 vulnerabilities
snehala27 Feb 15, 2024
a7849d3
send unicast with specific IP, otherwise it failed with trying to bin…
jzhoucliqr Jun 10, 2023
d233a2d
go mod tidy
snehala27 Feb 15, 2024
5f0dc3d
Fix logrus issue
snehala27 Feb 15, 2024
db5fdd1
Update kube-vip version in Makefile
snehala27 Feb 15, 2024
865e900
Merge branch 'spectro-master' into PCP-2370
snehala27 Feb 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Enable GitHub funding

github: [kube-vip]

14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
- package-ecosystem: docker
directory: /
schedule:
interval: weekly
31 changes: 31 additions & 0 deletions .github/workflows/anchore-syft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow checks out code, builds an image, performs a container image
# scan with Anchore's Syft tool, and uploads the results to the GitHub Dependency
# submission API.

# For more information on the Anchore sbom-action usage
# and parameters, see https://github.com/anchore/sbom-action. For more
# information about the Anchore SBOM tool, Syft, see
# https://github.com/anchore/syft
name: Anchore Syft SBOM scan

on:
release:
types: [published]

jobs:
sbom:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- name: Anchore SBOM Action
uses: anchore/sbom-action@v0.15.0
with:
format: cyclonedx-json
102 changes: 83 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,92 @@ name: For each commit and PR
on:
push:
pull_request:

env:
GO_VERSION: "1.20"
jobs:
validation:
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
name: Checks and linters
steps:
- name: Init
run: sudo apt-get update && sudo apt-get install -y build-essential golint
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: All checks
run: make check
unit-tests:
runs-on: ubuntu-latest
name: Unit tests
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Run tests
run: make unit-tests
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- name: Init
run: sudo apt-get update && sudo apt-get install -y build-essential golint
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
uses: actions/checkout@v4
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: '1.16'
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1
- name: checks
run: make check
- name: test docker build
run: make dockerx86Action
- name: Manifest generate
run: ./testing/testing.sh
- name: e2e tests
run: DOCKERTAG=action make e2e-tests
go-version: ${{ env.GO_VERSION }}
- name: Run tests
run: make integration-tests
e2e-tests:
runs-on: ubuntu-latest
name: E2E ARP tests
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Build image locally
run: make dockerx86Local
- name: Run tests
run: make e2e-tests
service-e2e-tests:
runs-on: ubuntu-latest
name: E2E service tests
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Build image with iptables
run: make dockerx86ActionIPTables
- name: Run tests
run: DOCKERTAG=action make service-tests
image-vul-check:
runs-on: ubuntu-latest
name: Image vulnerability scan
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build image with iptables
run: make dockerx86ActionIPTables
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'plndr/kube-vip:action'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '17 10 * * 6'

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

strategy:
fail-fast: false
matrix:
language: [ 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
61 changes: 35 additions & 26 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,52 @@
name: Publish the latest dev image
name: Build and publish main image regularly

on:
push:
branches:
- 'master'
schedule:
- cron: '25 0 * * *'
workflow_dispatch:


jobs:
docker:
nightly_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prepare Names
id: prep
run: |
DOCKER_IMAGE=plndr/kube-vip
VERSION=$(echo ${GITHUB_SHA} | cut -c1-8)
TAGS="${DOCKER_IMAGE}:${VERSION}"
TAGS="$TAGS,${DOCKER_IMAGE}:nightly"
echo ::set-output name=tags::${TAGS}

uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push main branch
uses: docker/build-push-action@v2
- name: Login to Github Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build standard version
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}

tags: >-
plndr/kube-vip:${{ github.ref_name }},
ghcr.io/kube-vip/kube-vip:${{ github.ref_name }}
- name: Build iptables version
id: docker_build_iptables
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile_iptables
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: >-
plndr/kube-vip-iptables:${{ github.ref_name }},
ghcr.io/kube-vip/kube-vip-iptables:${{ github.ref_name }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}
52 changes: 30 additions & 22 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,56 @@
name: Publish Releases to Docker Hub
name: Publish Releases to Docker Hub and GitHub Container Registry

on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prepare Names
id: prep
run: |
DOCKER_IMAGE=plndr/kube-vip
VERSION=${GITHUB_REF#refs/tags/}
TAGS="${DOCKER_IMAGE}:${VERSION},ghcr.io/kube-vip/kube-vip:${VERSION}"
TAGS="$TAGS,${DOCKER_IMAGE}:latest,ghcr.io/kube-vip/kube-vip:latest"
echo ::set-output name=tags::${TAGS}

uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Github Packages
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push main branch
uses: docker/build-push-action@v2
- name: Build and push main branch
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}

tags: >-
plndr/kube-vip:${{ github.ref_name }},
plndr/kube-vip:latest,
ghcr.io/kube-vip/kube-vip:${{ github.ref_name }},
ghcr.io/kube-vip/kube-vip:latest
- name: Build iptables version and push main branch
id: docker_build_iptables
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile_iptables
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: >-
plndr/kube-vip-iptables:${{ github.ref_name }},
plndr/kube-vip-iptables:latest,
ghcr.io/kube-vip/kube-vip-iptables:${{ github.ref_name }},
ghcr.io/kube-vip/kube-vip-iptables:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Loading
Loading