Can plugins be added to GoCD running on K8S?

37 views
Skip to first unread message

Melting Turret

unread,
Aug 10, 2022, 6:32:26 AM8/10/22
to go-cd

Up and running on k8s and all building now I would like to add some plugins to my server cant see obvious way to do that any ideas please?

Chad Wilson

unread,
Aug 10, 2022, 6:54:24 AM8/10/22
to go...@googlegroups.com
If you have installed via the Helm chart and you are OK for the container to download the plugin dynamically at startup you could look at https://github.com/gocd/helm-chart/tree/master/gocd#adding-plugins. The same capability is available if running directly via Docker, and there are suggestions of how to do it via custom entrypoint script if you don't want to allow dynamic download, see https://hub.docker.com/r/gocd/gocd-server

-Chad

On Wed, Aug 10, 2022 at 6:32 PM Melting Turret <meltin...@gmail.com> wrote:

Up and running on k8s and all building now I would like to add some plugins to my server cant see obvious way to do that any ideas please?

--
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/425acb59-28ee-4acd-a3e7-b156b1a2df72n%40googlegroups.com.

Melting Turret

unread,
Aug 10, 2022, 6:57:00 AM8/10/22
to go-cd
I tried:

---
server:
  ingress:
    enabled: false
  service:
    type: LoadBalancer

env:
  extraEnvVars:
    - name: GOCD_PLUGIN_INSTALL_email-notifier
      value: https://github.com/gocd-contrib/email-notifier/releases/download/v0.3-68-exp/email-notifier-0.3-68.jar

No joy.. probably not quiet the correct values :)

Chad Wilson

unread,
Aug 10, 2022, 8:14:24 AM8/10/22
to go...@googlegroups.com
Perhaps check your indents - the chart includes both server: and agent: blocks, and your plugin env vars need to be under the server: block, as per https://github.com/gocd/helm-chart/blob/master/gocd/values.yaml - not at the top level as it looks like in your email.

Also note that because of how lists are handled in Helm/go-template if you don't want to remove either of the two "default" plugins with the chart, you will need to include these too: https://github.com/gocd/helm-chart/blob/master/gocd/values.yaml#L139-L143

Melting Turret

unread,
Aug 10, 2022, 10:21:59 AM8/10/22
to go-cd
Perfect Chad! thanks for the help I was close :)
Reply all
Reply to author
Forward
0 new messages