Commit Graph

731 Commits

Author SHA1 Message Date
Joshua Moody
8a84fdbe38 Add .venv to gitignore
This is to ignore local python virtual envs setup for dev scripts

Signed-off-by: Joshua Moody <joshua.moody@suse.com>
2022-05-12 22:04:24 +08:00
Joshua Moody
b2c5f30d16 Update im image to v1_20220512 (non tls cli fix)
Longhorn 3966

Signed-off-by: Joshua Moody <joshua.moody@suse.com>
2022-05-12 22:04:24 +08:00
Chin-Ya Huang
90f9c7ba23 lep: add note to storage network through gRPC proxy
Longhorn-2285
Longhorn-3546

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-05-10 16:30:54 +08:00
Yang Chiu
355f86ccc8 Fix incorrect indent and missing double-quote in questions.yaml
Signed-off-by: Yang Chiu <yang.chiu@suse.com>
2022-05-10 14:19:22 +08:00
Chin-Ya Huang
96afafb1ed lep: storage network through gRPC proxy
Longhorn-2285
Longhorn-3546

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-05-10 08:52:24 +08:00
Max Hooton
b4fd827436 added arch support
Signed-off-by: Keloran <keloran@chewedfeed.com>
2022-05-08 12:07:19 +08:00
David Ko
f29d1da373 Release 1.3.0-preview1
Signed-off-by: David Ko <dko@suse.com>
2022-05-06 21:21:11 +08:00
David Ko
5092cfee63 Update independent longhorn components
Signed-off-by: David Ko <dko@suse.com>
2022-05-06 18:46:25 +08:00
Joshua Moody
f28692e0ce Add optional mtls secret mount for manager
The MTLS secret is currently hardcoded to longhorn-grpc-tls we can improve
this further in the future when necessary to also enable auto cert generation

Longhorn #3839

Signed-off-by: Joshua Moody <joshua.moody@suse.com>
2022-05-06 11:05:02 +08:00
Joshua Moody
4e5a8338b7 Update im image to v1_20220505 (mtls)
This image includes MTLS support for the GRPC server and im client
refactorings to enable persistent connection support.

Longhorn #3839

Signed-off-by: Joshua Moody <joshua.moody@suse.com>
2022-05-06 11:05:02 +08:00
David Ko
f898dec142 Fix wrong type of parameters in the storage class
Longhorn #3880

Signed-off-by: David Ko <dko@suse.com>
2022-05-05 16:31:22 +08:00
David Ko
119677db04 Update chart/questions.yaml 2022-04-28 22:49:48 +08:00
Derek Su
d2168251d3 orphaned data cleanup: update deploy YAML
Longhorn 685

Signed-off-by: Derek Su <derek.su@suse.com>
2022-04-28 22:49:48 +08:00
Chin-Ya Huang
107029b180 cluster-autoscaler: update deploy YAML
Longhorn-2203

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-04-22 13:06:46 +08:00
Chin-Ya Huang
9cb380eef5 cluster-autoscaler: update chart
Longhorn-2203

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-04-22 13:06:46 +08:00
Gaurav Mehta
b5c05972dc minor tweak to remove quotes
Signed-off-by: Gaurav Mehta <gaurav@rancher.com>
2022-04-21 14:48:38 +08:00
Gaurav Mehta
1c5145c47d Exposed storage class parameter migratable in the helm chart
Signed-off-by: Gaurav Mehta <gaurav@rancher.com>
2022-04-21 14:48:38 +08:00
Chin-Ya Huang
1478f30841 Add LEP - Support K8s CA
Longhorn-2203

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-04-15 10:26:18 +08:00
Siye Wang
045f94086d Make Longhorn UI Listen Binding configurable
Longhorn 3829

Signed-off-by: Siye Wang <siye@rancher.com>
2022-04-12 14:06:15 +08:00
Derek Su
8512678932 Remove minimum and maximum markers from CRD
Fix the helm upgrade failure on kuberenetes v1.18.
Root cause: https://github.com/kubernetes/kubernetes/issues/87675

Longhorn 3631

Signed-off-by: Derek Su <derek.su@suse.com>
2022-04-01 17:14:07 +08:00
Derek Su
342ed8d932 Add LEP for orphaned data cleanup
The LEP describes the design of the orphaned data cleanup in longhorn ndoes.

Longhorn 685

Signed-off-by: Derek Su <derek.su@suse.com>
2022-04-01 09:01:16 +08:00
Chin-Ya Huang
bd3655b122 Add missing webhook RBAC rule for uninstaller
Longhorn-2034

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-03-29 11:08:50 +08:00
Chin-Ya Huang
19719de0c5 Fix data migration YAML command args
Longhorn-3787

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-03-25 14:01:20 +08:00
Derek Su
dba0d38ff1 Update install.yaml
Longhorn 3772

Signed-off-by: Derek Su <derek.su@suse.com>
2022-03-23 16:10:59 +08:00
Shuo Wu
931a692eb9 Update LEP 'Snapshot Prune'
Longhorn 3613

Signed-off-by: Shuo Wu <shuo.wu@suse.com>
2022-03-22 11:00:12 +08:00
Shuo Wu
ff617ac1fd Add LEP 'Snapshot Prune'
Longhorn 3613

Signed-off-by: Shuo Wu <shuo.wu@suse.com>
2022-03-21 16:43:06 +08:00
JenTing Hsiao
aa2f9576a8 Bump backing-image-manager image to v3_20220318
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
2022-03-19 14:52:46 +08:00
wilson1999112
049a4ea974
Allow using an existing private registry secret (#3673)
Co-authored-by: David Ko <dko@suse.com>
Co-authored-by: JenTing Hsiao <jenting.hsiao@suse.com>
2022-03-18 13:50:45 +08:00
David Ko
ae4df55ae4
Update the latest stable release 1.2.4 2022-03-17 19:54:24 +08:00
Derek Su
37dc053972 chart: update webhook and crd manifests
longhorn 3562

Signed-off-by: Derek Su <derek.su@suse.com>
2022-03-15 14:27:38 +08:00
David Ko
86688525a1 Add hostNetowrk back to pre-install manifests
Signed-off-by: David Ko <dko@suse.com>
2022-03-09 15:07:46 +08:00
David Ko
2fcba12f67 Generate longhorn.yaml based on chart
longhorn #3716

Signed-off-by: David Ko <dko@suse.com>
2022-03-09 15:07:46 +08:00
Derek Su
1b8111495a webhook: set securityContext
To follow the least privilege principle, the conversion and admission webhooks
are run with a non-root user (uid = 2000).

Longhorn 3701

Signed-off-by: Derek Su <derek.su@suse.com>
2022-03-09 13:41:33 +08:00
David Ko
9a36732ebd Change imagePullPolicy of uninstall job to IfNotPresent
Signed-off-by: David Ko <dko@suse.com>
2022-03-08 13:31:28 +08:00
David Ko
7be7109e65 Update dev versions to components and chart for the master branch
Signed-off-by: David Ko <dko@suse.com>
2022-03-08 13:31:28 +08:00
Derek Su
00d0dd396e charts: add conversion to crds
Longhorn #3631

Signed-off-by: Derek Su <derek.su@suse.com>
2022-03-05 09:38:31 +08:00
Jan Esser
14c5434335 adding persistence.defaultDataLocality to questions.yaml
Signed-off-by: Jan Esser <jesser@gmx.de>
2022-03-04 02:50:56 +08:00
Jan Esser
18e294ebb5 Introducing storage class locality.
Signed-off-by: Jan Esser <jesser@gmx.de>
2022-03-04 02:50:56 +08:00
Keith Lucas
451d299c87 Update the instance message in the chart
Signed-off-by: Keith Lucas <keith.lucas@suse.com>
2022-03-04 02:31:00 +08:00
Keith Lucas
ffc75805f0 Update instance manager
Use an instance manager version with the tgt 100% CPU usage fix.

Signed-off-by: Keith Lucas <keith.lucas@suse.com>
2022-03-04 02:31:00 +08:00
David Ko
17947a7e8d Give a note about the master for development
Signed-off-by: David Ko <dko@suse.com>
2022-03-02 16:29:27 +08:00
JenTing Hsiao
9169d735fe Remove hostNetwork:true from iscsi/nfs installation
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
(cherry picked from commit 0ee31f0d778c1dd6d8b3603b320f25f28a5af671)
2022-03-02 13:17:33 +08:00
Derek Su
be7e7055e2 chart: add conversion and admission webhook services
Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit c5159e1774c42d47a9a1ba3500accd11c05420b7)
2022-03-02 13:17:33 +08:00
Derek Su
b4015b98e6 example: add longhorn admission and conversion webhook servers network policy yaml manifests
Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit 0dd86841f2a2b68f4cccd8f7acfd5e8329630d12)
2022-03-02 13:17:33 +08:00
Derek Su
8d2511bbed Add //+nullable to engine status fields
Longhorn 3538

Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit 638d27563869aa65189b30e27ee8c13a7c235483)
2022-03-02 13:17:33 +08:00
JenTing Hsiao
246bfdb85c example: add longhorn webhook server network policy yaml manifest
The traffic from/to the longhorn webhook server is the kube-apiserver.
The only way we could add restriction is to add the network policy of
the ingress port because we can't know each Kubernetes distro default
kube-apiserver Pod's label. Therefore, we can't add the label selector
in the network policy rule to restrict the traffic that comes from the
kube-apiserver is able to access to the longhorn webhook server.

Longhorn 3513

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
(cherry picked from commit 769e85bc80b6351a081a79ddf83ab181cf956e23)
2022-03-02 13:17:33 +08:00
JenTing Hsiao
29b2011779 Do not generate schema for longhorn.io/v1beta1 CRD
Because we should not do any change in the previous version
longhorn.io/v1beta1. We should add the CRD structural schema from
longhorn.io/v1beta2.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
(cherry picked from commit 1221c29cef8dd8af2388e0baaa5a530c19a1a232)
2022-03-02 13:17:33 +08:00
Phan Le
ab53d4f98c Fix bug volume cloning feature is broken
The field DataSource should be a string with full
information about the source of volume. For example,
snap://vol-name/snapshot-name

Longhorn-3508

Signed-off-by: Phan Le <phan.le@suse.com>
(cherry picked from commit be27eeacfd094e5148e1044ba14e73cc287ee792)
2022-03-02 13:17:33 +08:00
JenTing Hsiao
78edfff1f5 crd: add recurring job retain count max check
Longhorn 3493

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

(cherry picked from commit dafeafd4f63450db29fa3ca6b824456938c14c8e)
2022-03-02 13:17:33 +08:00
Matthew Mattox
fa6ec17cfb Removing runAsUser and securityContext, as the image will run as Longhorn instead of root
Signed-off-by: Matthew Mattox <Matt.Mattox@suse.com>
2022-03-01 00:06:43 +08:00