-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote Agent Part2: add remote-agent provider to support SR and upgrade #624
base: remote-agent
Are you sure you want to change the base?
Remote Agent Part2: add remote-agent provider to support SR and upgrade #624
Conversation
@@ -29,6 +29,7 @@ type ActivationsCleanupManager struct { | |||
} | |||
|
|||
func (s *ActivationsCleanupManager) Init(ctx *vendorCtx.VendorContext, config managers.ManagerConfig, providers map[string]providers.IProvider) error { | |||
s.ActivationsManager = ActivationsManager{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is redundant since we keep object other than reference. It will be initialized automatically.
clientset := fake.NewSimpleClientset() | ||
os.Setenv("AGENT_VERSION", "0.0.0.1") | ||
|
||
cert := []byte(`-----BEGIN CERTIFICATE----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plain text secret may raise alert in ADO.
@@ -16,7 +16,6 @@ import ( | |||
"os" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not change this file. The script target provider is not for adhoc execution. It is for target script.
Please review part 1 before 2
After bootstrap is done, we added SR and upgrade in the remote agent provider
We also changed the script provider a bit to allow it to run script like script stage provider (makes more sense to run custom script on remote side)