refactor: merge osd into machined

This merges `osd` API into `machined`. API was copied from `osd` into
`machined`, and `osd` API was deprecated.

For backwards compatibility, `machined` still implements `osd` API, so
older Talos API clients can still talk to the node without changes.

Docs were updated. No functional changes.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov
2020-07-13 20:56:47 +03:00
committed by talos-bot
parent 19343e5f1a
commit cbb7ca8390
37 changed files with 3093 additions and 3083 deletions

View File

@@ -26,7 +26,7 @@ func (suite *ServicesSuite) SuiteName() string {
func (suite *ServicesSuite) TestList() {
suite.RunCLI([]string{"services"},
base.StdoutShouldMatch(regexp.MustCompile(`STATE`)),
base.StdoutShouldMatch(regexp.MustCompile(`osd`)),
base.StdoutShouldMatch(regexp.MustCompile(`routerd`)),
base.StdoutShouldMatch(regexp.MustCompile(`apid`)),
)
}
@@ -39,9 +39,9 @@ func (suite *ServicesSuite) TestStatus() {
base.StdoutShouldMatch(regexp.MustCompile(`\[Running\]`)),
)
suite.RunCLI([]string{"service", "osd", "status"},
suite.RunCLI([]string{"service", "routerd", "status"},
base.StdoutShouldMatch(regexp.MustCompile(`STATE`)),
base.StdoutShouldMatch(regexp.MustCompile(`osd`)),
base.StdoutShouldMatch(regexp.MustCompile(`routerd`)),
base.StdoutShouldMatch(regexp.MustCompile(`\[Running\]`)),
)
}