Commit Graph

2151 Commits

Author SHA1 Message Date
Jossemar Cordero
466a7f4535
Update CentOS 8 smoke vm's with vault repositories (#5092)
Update CentOS 8 smoke vm's with vault repositories

Problem: CentOS 8 reached its EOL alongside its public mirrors, making
all the smoke test fail at provisioning time.

Solution: Point all the CentOS repositories to vault.

Signed-off-by: Jonnatan Jossemar Cordero <jonnatan.cordero@suse.com>
2022-02-08 10:03:19 -06:00
Manuel Buil
773c2a4184
Merge pull request #5079 from manuelbuil/michalsPR
netpol: Use kube-router as a library
2022-02-07 19:18:15 +01:00
Michal Rostecki
4fed9f4052 netpol: Use kube-router as a library
Before this change, we were copying a part of kube-router code to
pkg/agent/netpol directory with modifications, from which the biggest
one was consumption of k3s node config instead of kube-router config.

However, that approach made it hard to follow new upstream versions.
It's possible to use kube-router as a library, so it seems like a better
way to do that.

Instead of modifying kube-router network policy controller to comsume
k3s configuration, this change just converts k3s node config into
kube-router config. All the functionality of kube-router except netpol
is still disabled.

Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Signed-off-by: Manuel Buil <mbuil@suse.com>
2022-02-07 10:54:08 +01:00
Derek Nola
4f36c82ff7
Check for --kubeconfig flag with embedded kubectl (#5064)
* Check for kubeconfig flag

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-02-03 09:00:24 -08:00
Ankur Gupta
df4147cd57
Update legacy-unknown-cert and legacy-unknown-key (#5057)
Signed-off-by: Ankur Gupta <ankur.gupta130887@gmail.com>
2022-02-02 09:15:41 -08:00
Manuel Buil
db5e5d3585
Merge pull request #5035 from manuelbuil/update_versions
Update versions of K3S root, flannel and cni_plugins
2022-02-01 11:28:01 +01:00
Derek Nola
6fe36be691
Bump K3s stable to v1.22.6 (#5050)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-31 13:30:45 -08:00
Manuel Buil
3fffef18fa Update versions:
* K3S_ROOT
* FLANNEL
* CNI_PLUGINS

Signed-off-by: Manuel Buil <mbuil@suse.com>
2022-01-31 20:19:37 +01:00
Derek Nola
444a7cb0ad
Fixes to Drone CI Stability (#4897)
* Do serial only first

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Add test-post-hook for extremely flaky tests, enable parallel

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Add flaky test post hook to etcd

* Add concurrent parallel, fix flaky tests checks

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-31 10:57:23 -08:00
Derek Nola
d583a99f62
Add server flag to access nonlocal/nondefault k3s server (#5016)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-27 10:53:38 -08:00
Derek Nola
5fb370e53e
Update to v1.23.3 (#5027)
* Update to v1.23.3

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Update tags to k3s-io for v1.23.3

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-26 12:47:56 -08:00
Aaron Ogle
c71bd31ae6
Add Rocket.Chat to list of adopters (#5017)
Signed-off-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
Signed-off-by: Aaron Ogle <aaron.ogle@rocket.chat>
2022-01-26 12:55:44 -05:00
Brad Davidson
bc7635f01f Move containerd wait into exported function
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-25 13:09:30 -08:00
Derek Nola
fc8309a46c
Update to v1.23.2 (#4997)
* Update to v1.23.2

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Update tags to k3s-io for v1.23.2

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-20 11:06:38 -08:00
Derek Nola
9bd101c120
Add new upgradecluster E2E test (#4900)
* validatecluster fixes

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-19 18:48:59 -08:00
Manuel Buil
01388fee2d
Merge pull request #4973 from manuelbuil/delete-ip6tables
Remove ip6table rules when cleaning up k3s
2022-01-19 09:11:56 +01:00
Roberto Bonafiglia
bb856c67dc
Merge pull request #4952 from rbrtbnfgl/ipv6-nat
Add IPv6 NAT
2022-01-19 08:44:57 +01:00
Brad Davidson
a094dee7dd Update packaged components
Update images and manifests/charts for coredns, local-path-provisioner, traefik, and pause

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-18 16:40:00 -08:00
Brad Davidson
27fe2c3c1b go generate
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-18 11:01:49 -08:00
Farukh Khan
c4eb273641 Upgrade: metrics server version bump from v0.5.0 to v0.5.2
Kubernetes Metrics Server version upgrade with the following changes:

Remove elevated permissions cap_net_bind_service from metrics-server

Fix bad architecture metadata

Fix reporting inconsistent number of nodes, caused by using invalid Kubelet node start time metric

Fix reporting partial container metrics for pod

Signed-off-by: Farukh Khan <farukhkhan21@gmail.com>
2022-01-18 11:01:49 -08:00
Manuel Buil
66780cc665 Remove ip6table rules when cleaning up k3s
Signed-off-by: Manuel Buil <mbuil@suse.com>
2022-01-18 08:36:00 +01:00
Roberto Bonafiglia
8eded2749a Added debug log for IPv6 Masquerading rule
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@gmail.com>
2022-01-17 10:20:12 +01:00
Brad Davidson
c08d394994 Bump etcd and containerd to track upstream
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-14 13:33:43 -08:00
Brad Davidson
b1e0f4c8fc Skip CGroup v2 evac when agent is disabled
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-14 13:24:44 -08:00
Roberto Bonafiglia
111c1669fc Added flannel-ipv6-masq flag to enable IPv6 nat
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@gmail.com>
2022-01-14 18:35:37 +01:00
Roberto Bonafiglia
2253f64b2a Added iptables masquerade rules for ipv6 on flannel
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@gmail.com>
2022-01-14 18:35:37 +01:00
Brian Downs
effcb15adb
Adds the ability to compress etcd snapshots (#4866) 2022-01-14 10:31:22 -07:00
Derek Nola
48ffed3852
Enable logging on all subcommands (#4921)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-12 14:00:40 -08:00
Brad Davidson
a0cadcd343 Move ClusterResetRestore handling ControlConfig setup
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-12 10:46:10 -08:00
Jossemar Cordero
a3190bd146
Update building documentation for macOS (#4850)
Update building documentation for macOS

Problem: The k3s build scripts rely on GNU utils, like sed, so when
these scripts are run on a macOS environment they don't work as
expected.

Solution: Update the documentation to point out this scenario and
suggest the reader to spin up the Linux virtual machine defined on
the Vagrantfile within this project.

Signed-off-by: Jonnatan Jossemar Cordero <jonnatan.cordero@suse.com>
2022-01-10 10:46:18 -06:00
Brad Davidson
0144d23bb2 Add basic etcd join test
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-07 09:56:37 -08:00
Brad Davidson
5ca206ad3b Fix handling of agent-token fallback to token
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-07 09:56:37 -08:00
Brad Davidson
e7464a17f7 Fix use of agent creds for secrets-encrypt and config validate
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-06 12:55:18 -08:00
Brad Davidson
8d8c8b0c6b Don't skip the dev image when skipping airgap
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-01-06 12:55:18 -08:00
Lordran
31f1a00b6f
Fix a typo: advertise-up -> advertise-ip (#4827)
Signed-off-by: 胥朝阳 <xuzhaoyang@91cyt.com>
2022-01-06 08:52:07 -08:00
Derek Nola
2ac8df3602
Integration tests utilities improvements (#4832)
* Remove sudo commands from integration tests

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Added cleanup fucntion

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Implement better int cleanup

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Rename test utils

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Enable K3sCmd to be a single string

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Removed parsePod function

Signed-off-by: Derek Nola <derek.nola@suse.com>

* codespell

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Revert startup timeout

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Reorder sonobuoy tests, drop concurrent tests to 3

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Disable etcd

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Skip parallel testing for etcd

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-06 08:05:56 -08:00
Luther Monson
644c30c8a6
Merge pull request #4849 from luthermonson/fix-windows-linter
[master] Fix small windows lint issues
2022-01-05 08:43:16 -07:00
Derek Nola
612a9412fd
Enable make generate to use dapper and standardize go and gzip versions (#4861)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-04 11:12:25 -08:00
Luther Monson
66eeabbdfc linter doesn't actually run on windows, found these while getting it running on a windows machine
Signed-off-by: Luther Monson <luther.monson@gmail.com>
2021-12-28 20:44:21 -07:00
Brad Davidson
142b1d96f4 Update channel.yaml for 1.23
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-12-23 14:38:17 -08:00
Derek Nola
ff49dcf71e Export default parser
Signed-off-by: Derek Nola <derek.nola@suse.com>
(cherry picked from commit 9cc930e4a3)
2021-12-22 16:06:55 -08:00
Derek Nola
d0f7e23328
Require integration test to be run as sudo/root (#4824)
* Remove internal sudo commands from integration tests
* Run integration CI as sudo

Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-12-22 14:48:21 -08:00
Derek Nola
a02db0f2fa
Fix cgroup smoke test (#4823)
* Fixed control group vagrantfile so running vagrant up doesn't fail locally

Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-12-22 12:16:43 -08:00
Brad Davidson
08d538fb3a Update golang
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-12-22 10:47:38 -08:00
Brad Davidson
87395e32d6 Update modules for Kubernetes v1.23
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-12-22 10:47:38 -08:00
ShylajaDevadiga
6656d48415
Add tests to use vagrantfile (#4722)
* Add tests to use vagrantfile

Signed-off-by: Shylaja Devadiga <shylaja.devadiga@suse.com>

* Removed outdated e2e tests.
* Removed Terraform

Signed-off-by: Derek Nola <derek.nola@suse.com>

Co-authored-by: Shylaja Devadiga <shylaja.devadiga@suse.com>
Co-authored-by: Derek Nola <derek.nola@suse.com>
2021-12-22 09:51:48 -08:00
Luther Monson
2390620117
Merge pull request #4817 from luthermonson/backout-package 2021-12-22 08:45:53 -07:00
Hussein Galal
70902209b9
Bump stable to v1.22.5+k3s1 (#4821)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2021-12-22 15:45:19 +02:00
Manuel Buil
30c701f5de
Merge pull request #4796 from manuelbuil/flannel-logrus
Move flannel logs to logrus
2021-12-22 10:33:43 +01:00
Luther Monson
3ee3ecb3ac package rename wasnt approved yet, backing out cruft that snuck into last pr
Signed-off-by: Luther Monson <luther.monson@gmail.com>
2021-12-22 00:58:48 -07:00