Skip to content

Commit

Permalink
enable leader election and manifest & manifestbundle codec for agent.
Browse files Browse the repository at this point in the history
Signed-off-by: morvencao <[email protected]>
  • Loading branch information
morvencao committed Jun 6, 2024
1 parent be8dc75 commit 309e8e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/maestro/agent/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func runAgent(cmd *cobra.Command, args []string) {
cfg := spoke.NewWorkAgentConfig(commonOptions, agentOption)
cmdConfig := commonOptions.CommoOpts.
NewControllerCommandConfig("maestro-agent", version.Get(), cfg.RunWorkloadAgent)
cmdConfig.DisableLeaderElection = true

if err := cmdConfig.StartController(ctx); err != nil {
glog.Fatalf("error running command: %v", err)
Expand All @@ -94,6 +93,6 @@ func addFlags(fs *pflag.FlagSet) {
fs.StringVar(&agentOption.CloudEventsClientID, "agent-client-id",
agentOption.CloudEventsClientID, "The ID of the agent client, by default it is <consumer-id>-work-agent")
fs.StringSliceVar(&agentOption.CloudEventsClientCodecs, "agent-client-codecs",
[]string{"manifest"}, "The codecs of the agent client. The valid codecs are manifest and manifestbundle")
[]string{"manifest", "manifestbundle"}, "The codecs of the agent client. The valid codecs are manifest and manifestbundle")

}

0 comments on commit 309e8e7

Please sign in to comment.