Agent Plugin new API

8 views
Skip to first unread message

Joel Strasser (joestr)

unread,
May 8, 2023, 4:08:02 PM5/8/23
to go-cd
Hi there!

I'm a little bit confused on how to migrate the Azure plugin to the new Elastic Agent API.

In the sekeleton plugin it is mentioned, that I should use ClusterProfile.java for custom cluster properties.

But I checked the Docker plugin and the ECS plugin and the files there were unused.

I noticed that the PluginSettings.java is filled with the porperties?

What am I missing here?

Greetings,
Joel

Ketan Padegaonkar

unread,
May 9, 2023, 1:03:55 AM5/9/23
to go...@googlegroups.com
There is a lot of boilerplate in the skeleton. This is mostly to help with sending/receiving/validating the various configs(cluster config, agent config etc). Most of that should (hopefully) be self explanatory.

You might want to start with this class (https://github.com/gocd-contrib/elastic-agent-skeleton-plugin/blob/master/src/main/java/com/example/elasticagent/ExampleAgentInstances.java). This class contains all the code that deals with creating/terminating and state maintainance of agents and mapping any cloud specific resources to gocd angents.

This

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/947c80a9-6afa-41f3-8685-4f8bd4a58a1an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages