-
Notifications
You must be signed in to change notification settings - Fork 236
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
Feature Request: Support config as code options in the crd #28
Comments
yes, the CaC is either CasC plugin yaml configs or Groovy scripts, so they are basically files embedded in a yaml, so according with k8s best practices, that's what ConfigMap is for to go a step further with the operator way, it would require to create two types e.g. the problem with that is would not provide useful schema anyway and would require a lot of work for not much gain please remember that we don't have a lot of resources, so we need to be laser focused on what we implement and what we left out to have a lean codebase today you can have a single file with just basic a multi-document yaml is created by separating the document with
|
as for configuration improvements, I would personally see a list of references to config maps in the
@tomaszsek if I'm not mistaken this should remove the requirement for "magic labels":
|
The best option is to add explicit source to CR:
But this requires new approach in how run groovy scripts in Jenkins. We want to get rid of configuration jobs and apply groovy code via Jenkins API. |
#28 Enable groovy scripts secret loader
Merge upstream
Thanks for working on the jenkins operator... I'd like the option to put configuration as code in the jenkins custom resource, instead of having to create a file in a configmap first:
I think this follows the philosophy of operator a bit closer and does not need to be mutually exclusive with existing approach.
The text was updated successfully, but these errors were encountered: