Ragin-LundF / k8s-jcasc-management-go

Jenkins management in Go for Kubernetes, Jenkins Configuration as Code (JCasC) and Jenkins JobDSL.
https://ragin-lundf.github.io/k8s-jcasc-management-go/
MIT License
17 stars 4 forks source link

Support multiple clouds #24

Open marinkobabic opened 4 years ago

marinkobabic commented 4 years ago

When specifying the following

pipeline { agent { kubernetes { label 'parent-pod' Or

pipeline { agent { mycloud { label 'parent-pod' I can run agents on whatever cloud was configured in jenkins. This is the clean way to support multiple clouds according to the Jenkins Kubernetes plugin. This way some of the staging environments can be installed on different clusters. Of course therefore the agent will be executed on the target cluster. All the required information to connect to the target cluster are part of the standard kubernetes plugin.

Ragin-LundF commented 4 years ago

This is in planning, but not documented yet. Basically it is also possible with the current solution because you can use your own templates with the "TEMPLATES_BASE_DIRECTORY" configuration. There you can add or copy and change the configuration templates you want and add as many clouds as you want.

But for better usability the solution should work like the cloud-templates with the possibility to select the cloud environments for special instances.