Comments (15)
@ewelinawilkosz @ndeloof I think this a good one to start with. I'll start working on this tomorrow.
For the simple version, let's support URI's that can either be a file (locally), or some statically served file (I.E a gist). That should support most usecases i can re-use much from the implementation on Praqma's fork.
from configuration-as-code-plugin.
@ndeloof and @daniel-beck Ok. Let's do this then.
- We scrap http and https support.
- We instead take a path, it can either be a single file or a folder.
- In case of a folder we scan for all .yml|.yaml files in folder and return those to be configured. In case of a file just return that.
Sounds ok?
from configuration-as-code-plugin.
I think it makes perfect sense.
from configuration-as-code-plugin.
there are two options then - merge changes from praqma/dev or reimplement manually
for now we want to support with env variable:
- location on disk
- location in git repository - raw file, or different solution, we can discuss it
in the future we can extend possible locations
from configuration-as-code-plugin.
Could we please get this right from the start and at least reject plain HTTP URLs?
from configuration-as-code-plugin.
@daniel-beck Sure no problem :)
from configuration-as-code-plugin.
I'm not a big fan enforcing https. This would make test/demo environment harder to setup, and for internal use I would expect many user will use plain old http.
from configuration-as-code-plugin.
If we focus on security, I would expect configuration to be stored as a k8s ConfigMap / docker Config / some comparable "injected" content. This "pull" approach is just for basic usage
from configuration-as-code-plugin.
@daniel-beck and @ndeloof Would a better approach to write some warning if you do use HTTP? Like a statement about that this should not be used in production?
I reckon im mostly gonna be use the path part of this feature, to start c-as-c with a configuration file outside my dev environment.
from configuration-as-code-plugin.
Then maybe we just don't need http* support and should avoid introducing it here.
Also, if we consider the other feature request to have multiple yaml files, better for this variable to point to a configuration folder.
from configuration-as-code-plugin.
see #34
from configuration-as-code-plugin.
Right i added my stuff for this to work with a very simple test. The big picture case in #34 is a superset of this task. I'll need to look up how k8 config maps etc work before i start comming up with suggestions on how this can be handled in a more generic and extensible way. But for now, it should be outside scope of this case :)
from configuration-as-code-plugin.
docker config = a tmpfs folder mounted inside container:
docker run --config source=jenkins-config,target=/config/jenkins.yml ...
container can then read configuration from /config/jenkins.yaml
k8s config has more option, simplest for us is a volume mount (same as docker)
containers:
- name: jenkins
volumeMounts:
- name: jenkins-config
mountPath: /config
volumes:
- name: jenkins-config
configMap:
name: jenkins-config
from configuration-as-code-plugin.
Thanks @ndeloof and @MadsNielsen !
from configuration-as-code-plugin.
Closing this issue PR merged and accepted
from configuration-as-code-plugin.
Related Issues (20)
- No configurator for the following root elements services HOT 8
- Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : queueItemAuthenticator HOT 4
- JCasC - configure a hudson.security.SecurityRealm HOT 3
- Typo / Name Change in Configuration as Code for gitscm demo HOT 6
- warning popup about master migration HOT 2
- SSH private key credential is corrupted by export + import HOT 2
- Add JUnit5 Annotation support for Test Cases
- Missing information how to generate/create yaml file HOT 1
- JCASC not able export create yaml with "list view swithin nested view" HOT 1
- Configuration As Code Plugin compatible with Scriptler HOT 1
- Jenkins Configuration Reload issue - ERROR 401 Unauthorized
- java.lang.IllegalArgumentException: No hudson.tools.ToolInstaller implementation found for jdkInstaller on Jenkins 2.440.1
- decodeBase64 it not working in casc secrets HOT 1
- Nonnull dependency issue on startup
- Artifact Manager on S3 - issue with loading links to the S3 artifacts HOT 3
- Working with different environments, load files specific to environment HOT 3
- Error while serving <JENKINS_URL>/configuration-as-code/viewExport
- Plugin based credentials HOT 4
- Jobs: "file" is undocumented HOT 2
- Jenkins is not starting in installation phase - bitbucket rate limiting error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from configuration-as-code-plugin.