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

expose kubeconfig flag to run the agent binary on a host #94

Closed
wants to merge 2 commits into from

Conversation

skeeey
Copy link
Contributor

@skeeey skeeey commented May 21, 2024

No description provided.

Signed-off-by: Wei Liu <liuweixa@redhat.com>
@skeeey
Copy link
Contributor Author

skeeey commented May 21, 2024

/cc @clyang82

Signed-off-by: Wei Liu <liuweixa@redhat.com>
glog.Fatalf("error running command: %v", err)
workOptions.WorkloadSourceDriver = "mqtt"
// use manifest as the default codec
workOptions.CloudEventsClientCodecs = []string{"manifest"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update to support manifest and manifestbundle by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, we should enable both codecs at the same time, for maestro, it should only handle the manifest, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let us handle it in separate issue #96

func NewAgentOptions() *AgentOptions {
workOptions := spoke.NewWorkloadAgentOptions()
// use 1M as the default limit for state feedback
workOptions.MaxJSONRawLength = 1024 * 1024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remembered it was set in agent options. Do you need to reset it again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but the default value is small for maestro case, we need increase it here

o.WorkOptions.WorkloadSourceDriver, "Message broker type")
fs.StringVar(&o.WorkOptions.CloudEventsClientID, "agent-client-id",
o.WorkOptions.CloudEventsClientID, "The ID of the agent client, by default it is <consumer-id>-work-agent")
fs.StringSliceVar(&o.WorkOptions.CloudEventsClientCodecs, "agent-client-codecs",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skeeey
Copy link
Contributor Author

skeeey commented May 30, 2024

/hold

@skeeey
Copy link
Contributor Author

skeeey commented Jun 6, 2024

we need to use library-go to implement this to support lease election

@skeeey skeeey closed this Jun 6, 2024
@skeeey skeeey deleted the ra branch June 7, 2024 08:04
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.

None yet

3 participants