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

Allow to create non-configurable instances programmatically. #191

Merged
merged 1 commit into from Aug 14, 2017

Conversation

Projects
None yet
5 participants
@Vlatombe
Member

Vlatombe commented Aug 9, 2017

The idea behind this change is to manage configuration of Kubernetes Cloud through other means than the UI, in the context of multiple Jenkins instance infrastructure, and prevent the configuration from being modified when accessing the Manage Jenkins/Configure system page.

@iocanel

This comment has been minimized.

Show comment
Hide comment
@iocanel

iocanel Aug 9, 2017

Can you please add a few words on the motivation behind this?

iocanel commented Aug 9, 2017

Can you please add a few words on the motivation behind this?

@carlossg carlossg merged commit 75a1b57 into jenkinsci:master Aug 14, 2017

1 check passed

continuous-integration/jenkins/pr-merge This commit looks good
Details
@marvinthepa

This comment has been minimized.

Show comment
Hide comment
@marvinthepa

marvinthepa Aug 16, 2017

Is there any documentation on how to use this?

My guess is that you use it by writing to config.xml directly, i.e. when creating a Jenkins docker image (which by coincidence, is exactly what we do here)..

marvinthepa commented Aug 16, 2017

Is there any documentation on how to use this?

My guess is that you use it by writing to config.xml directly, i.e. when creating a Jenkins docker image (which by coincidence, is exactly what we do here)..

@carlossg

This comment has been minimized.

Show comment
Hide comment
@carlossg

carlossg Aug 16, 2017

you can also use the API or a groovy script on startup to create it

carlossg commented Aug 16, 2017

you can also use the API or a groovy script on startup to create it

@colemickens

This comment has been minimized.

Show comment
Hide comment
@colemickens

colemickens Mar 1, 2018

How does one find the API to use from a groovy script that will allow me to programmatically add an instance of NonConfigurableKubernetesCloud?

colemickens commented Mar 1, 2018

How does one find the API to use from a groovy script that will allow me to programmatically add an instance of NonConfigurableKubernetesCloud?

@Vlatombe Vlatombe deleted the Vlatombe:non-configurable-cloud branch Mar 1, 2018

@colemickens

This comment has been minimized.

Show comment
Hide comment
@colemickens

colemickens Mar 14, 2018

In case anyone else winds up here with a similar question, you do this, roughly: Jenkins.getInstance().clouds.add(new NonConfigurableKubernetesCloud(...)).

colemickens commented Mar 14, 2018

In case anyone else winds up here with a similar question, you do this, roughly: Jenkins.getInstance().clouds.add(new NonConfigurableKubernetesCloud(...)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment