Skip to content
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

Open
wants to merge 6 commits into
base: remote-agent
Choose a base branch
from

Conversation

iwangjintian
Copy link
Contributor

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)

@@ -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{}
Copy link
Contributor

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-----
Copy link
Contributor

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"
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants