forked from canonical/microk8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move dqlite in its own systemd process (canonical#2542)
- Loading branch information
1 parent
b399de3
commit 9f7f8e5
Showing
26 changed files
with
249 additions
and
613,881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
306,580 changes: 0 additions & 306,580 deletions
306,580
build-scripts/patches/0000-Dqlite-integration.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
build-scripts/patches/0001-Unix-socket-skip-validation-in-component-status.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From dd1db952eab13912a55207c81a2ac267909677ac Mon Sep 17 00:00:00 2001 | ||
From: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com> | ||
Date: Tue, 24 Aug 2021 11:17:19 +0300 | ||
Subject: [PATCH] Unix socket skip validation in component status | ||
|
||
--- | ||
pkg/registry/core/rest/storage_core.go | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/pkg/registry/core/rest/storage_core.go b/pkg/registry/core/rest/storage_core.go | ||
index 1f915c32d4b..0bb7f1a9bf9 100644 | ||
--- a/pkg/registry/core/rest/storage_core.go | ||
+++ b/pkg/registry/core/rest/storage_core.go | ||
@@ -350,6 +350,12 @@ func (s componentStatusStorage) serversToValidate() map[string]*componentstatus. | ||
klog.Errorf("Failed to parse etcd url for validation: %v", err) | ||
continue | ||
} | ||
+ | ||
+ if etcdUrl.Scheme == "unix" { | ||
+ klog.Infof("Socket etcd endpoint detected. Will not validate") | ||
+ continue | ||
+ } | ||
+ | ||
var port int | ||
var addr string | ||
if strings.Contains(etcdUrl.Host, ":") { | ||
-- | ||
2.25.1 | ||
|
327 changes: 0 additions & 327 deletions
327
build-scripts/patches/0002-Handle-disconnected-leader-in-three-node-cluster.patch
This file was deleted.
Oops, something went wrong.
306,580 changes: 0 additions & 306,580 deletions
306,580
build-scripts/pre-patches/0000-Dqlite-integration.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
build-scripts/pre-patches/0001-Unix-socket-skip-validation-in-component-status.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From dd1db952eab13912a55207c81a2ac267909677ac Mon Sep 17 00:00:00 2001 | ||
From: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com> | ||
Date: Tue, 24 Aug 2021 11:17:19 +0300 | ||
Subject: [PATCH] Unix socket skip validation in component status | ||
|
||
--- | ||
pkg/registry/core/rest/storage_core.go | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/pkg/registry/core/rest/storage_core.go b/pkg/registry/core/rest/storage_core.go | ||
index 1f915c32d4b..0bb7f1a9bf9 100644 | ||
--- a/pkg/registry/core/rest/storage_core.go | ||
+++ b/pkg/registry/core/rest/storage_core.go | ||
@@ -350,6 +350,12 @@ func (s componentStatusStorage) serversToValidate() map[string]*componentstatus. | ||
klog.Errorf("Failed to parse etcd url for validation: %v", err) | ||
continue | ||
} | ||
+ | ||
+ if etcdUrl.Scheme == "unix" { | ||
+ klog.Infof("Socket etcd endpoint detected. Will not validate") | ||
+ continue | ||
+ } | ||
+ | ||
var port int | ||
var addr string | ||
if strings.Contains(etcdUrl.Host, ":") { | ||
-- | ||
2.25.1 | ||
|
Oops, something went wrong.