-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v2] Calculate the expected runtime components from policy (#550)
* Upgrade elastic-agent-client. * Calculate the expected running components and units from the v2 specification and the current policy. * Update NOTICE.txt. * Fix lint from servicable main.go. * Update GRPC for the agent CLI control protocol. Fix name collision issue. * Run go mod tidy. * Fix more lint issues. * Fix fmt. * Update logic to always compute model, with err set on each component. Check runtime preventions at model generation time. * Fix items from code review, and issue on windows test runner. * Try to cleanup duplication in tests. * Try 2 of fixing duplicate lint failure, that is not really a duplicate. * Re-run mage fmt. * Lint fixes for linux, why different? * Fix nolint comment. * Add comment.
- Loading branch information
1 parent
7b2ec07
commit 7bb4acd
Showing
30 changed files
with
2,215 additions
and
734 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -828,11 +828,11 @@ Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-a | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/elastic/elastic-agent-client/v7 | ||
Version: v7.0.0-20210727140539-f0905d9377f6 | ||
Version: v7.0.0-20220524131921-43bacbeec516 | ||
Licence type (autodetected): Elastic | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-client/[email protected]20210727140539-f0905d9377f6/LICENSE.txt: | ||
Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-client/[email protected]20220524131921-43bacbeec516/LICENSE.txt: | ||
|
||
ELASTIC LICENSE AGREEMENT | ||
|
||
|
@@ -2183,44 +2183,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/golang/protobuf | ||
Version: v1.5.2 | ||
Licence type (autodetected): BSD-3-Clause | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/golang/[email protected]/LICENSE: | ||
|
||
Copyright 2010 The Go Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/google/go-cmp | ||
Version: v0.5.6 | ||
|
@@ -5274,11 +5236,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : golang.org/x/sys | ||
Version: v0.0.0-20220405052023-b1e9470b6e64 | ||
Version: v0.0.0-20220422013727-9388b58f7150 | ||
Licence type (autodetected): BSD-3-Clause | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/golang.org/x/[email protected]20220405052023-b1e9470b6e64/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/golang.org/x/[email protected]20220422013727-9388b58f7150/LICENSE: | ||
|
||
Copyright (c) 2009 The Go Authors. All rights reserved. | ||
|
||
|
@@ -5348,11 +5310,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : google.golang.org/grpc | ||
Version: v1.42.0 | ||
Version: v1.46.0 | ||
Licence type (autodetected): Apache-2.0 | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/google.golang.org/grpc@v1.42.0/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/google.golang.org/grpc@v1.46.0/LICENSE: | ||
|
||
|
||
Apache License | ||
|
@@ -5560,11 +5522,11 @@ Contents of probable licence file $GOMODCACHE/google.golang.org/[email protected]/LIC | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : google.golang.org/protobuf | ||
Version: v1.27.1 | ||
Version: v1.28.0 | ||
Licence type (autodetected): BSD-3-Clause | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/google.golang.org/protobuf@v1.27.1/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/google.golang.org/protobuf@v1.28.0/LICENSE: | ||
|
||
Copyright (c) 2018 The Go Authors. All rights reserved. | ||
|
||
|
@@ -9588,6 +9550,44 @@ third-party archives. | |
limitations under the License. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/golang/protobuf | ||
Version: v1.5.2 | ||
Licence type (autodetected): BSD-3-Clause | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/golang/[email protected]/LICENSE: | ||
|
||
Copyright 2010 The Go Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/google/gofuzz | ||
Version: v1.1.0 | ||
|
@@ -15217,11 +15217,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : golang.org/x/net | ||
Version: v0.0.0-20220225172249-27dd8689420f | ||
Version: v0.0.0-20220425223048-2871e0cb64e4 | ||
Licence type (autodetected): BSD-3-Clause | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/golang.org/x/[email protected]20220225172249-27dd8689420f/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/golang.org/x/[email protected]20220425223048-2871e0cb64e4/LICENSE: | ||
|
||
Copyright (c) 2009 The Go Authors. All rights reserved. | ||
|
||
|
@@ -15651,11 +15651,11 @@ Contents of probable licence file $GOMODCACHE/google.golang.org/[email protected] | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : google.golang.org/genproto | ||
Version: v0.0.0-20211208223120-3a66f561d7aa | ||
Version: v0.0.0-20220426171045-31bebdecfb46 | ||
Licence type (autodetected): Apache-2.0 | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/google.golang.org/[email protected]20211208223120-3a66f561d7aa/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/google.golang.org/[email protected]20220426171045-31bebdecfb46/LICENSE: | ||
|
||
|
||
Apache License | ||
|
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
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
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
Oops, something went wrong.