-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NVIDIA GPU Integration Test and Security Checking for binaries (#579
) * Change to ec2 linux avance and simple * Add basic NVIDIA GPU for Linux * Add basic check file control for windows * Add basic nvidia check * Finish security check for linux and macos * Finish basic nvidia_gpu for security checking * Add support for linux al2 * Separeate function between windows and linux * Separeate function between windows and linux--amend * Add basic windows util * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add basic function for windows--amend * Add support for linux al2 * Change to user data * Basic OPENSSH * Basic OPENSSH * Return to test integration test on github * Return to test integration test on github--amend * Return to test integration test on github--amend * Return to test integration test on github--amend * Return to test integration test on github--amend * Basic OPENSSH * Basic OPENSSH * Finish NVIDIA GPU--amend * Finish NVIDIA GPU--amend * Finish NVIDIA GPU--amend * Finish NVIDIA GPU--amend * Finish NVIDIA GPU--amend * Finish NVIDIA GPU--amend * Finish NVIDIA GPU * revert some gpg * Finish security checking and nvida gpu Co-authored-by: Ameen <[email protected]>
- Loading branch information
Showing
34 changed files
with
1,028 additions
and
191 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
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
20 changes: 20 additions & 0 deletions
20
cmd/amazon-cloudwatch-agent/internal/check_plugins_unix.go
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,20 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
//go:build !windows | ||
// +build !windows | ||
|
||
package internal | ||
|
||
import ( | ||
"github.com/aws/amazon-cloudwatch-agent/internal/util/security" | ||
"github.com/aws/amazon-cloudwatch-agent/translator/translate/metrics/util" | ||
) | ||
|
||
|
||
func CheckNvidiaSMIBinaryRights() error { | ||
if err := security.CheckFileRights(util.Default_Unix_Smi_Path); err != nil{ | ||
return err | ||
} | ||
return nil | ||
} |
19 changes: 19 additions & 0 deletions
19
cmd/amazon-cloudwatch-agent/internal/check_plugins_windows.go
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,19 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
//go:build windows | ||
// +build windows | ||
|
||
package internal | ||
|
||
import ( | ||
"github.com/aws/amazon-cloudwatch-agent/internal/util/security" | ||
"github.com/aws/amazon-cloudwatch-agent/translator/translate/metrics/util" | ||
) | ||
|
||
func CheckNvidiaSMIBinaryRights() error { | ||
if err := security.CheckFileRights(util.Default_Windows_Smi_Path); err != nil{ | ||
return err | ||
} | ||
return nil | ||
} |
Oops, something went wrong.