Bartosz Surma
bef796af8a
Update and use install-plugins.sh ( #756 )
...
* Download install-plugins.sh manually from remote
* Reformat
* Goimports
* Use install-plugins.sh bundled with the operator
* Fix compile error
* Update install-plugins.sh
* Remove redundant param to new install-plugins.sh
Co-authored-by: Piotr Ryba <pryba@virtuslab.com>
2022-06-28 19:14:31 +02:00
Piotr Ryba
a97f283fb9
Remove cron validation ( #748 )
...
* Remove cron validation
* Bump git plugin
2022-06-20 20:13:35 +02:00
Bastien HUBERT
56b65aed16
Allow to specify seed agent image ( #718 )
...
* Allow to specify seed agent image
* Fix formatting issue
* Add optional for documentation
* Add entry for helm chart
* Add default value for helm chart
Co-authored-by: bhubert <bhubert@expediagroup.com>
2022-06-14 11:39:24 +02:00
Andras Szerdahelyi
46f64fea6a
Seed job SCM may now be configured with github-branch-source/GitHubAppCredentials ( #719 )
...
* Now allowing seed jobs to be configured with GithubAppCredential
* fmt
* Validation for GithubAppCredentials type seed job SCM secret
* GithubAppCredentials validation error messages were not referring to actual GithubAppCredentials fields
* cleanup
2022-05-31 16:04:03 +02:00
thecooldrop
13f871b1e4
Remove the validation of plugin version against a regex ( #729 )
2022-04-04 11:52:13 +02:00
Mateusz Korus
4fde1df8d8
Fix nil reference panic when using non-http readiness probe ( #735 )
2022-04-04 11:51:34 +02:00
Guillaume Le Biller
17a5bfec3e
Build multi-arch images ( #693 )
...
* Build multi-arch images
* Reduce CPU requirements for jenkins instances in e2e tests
* Bump Jenkins LTS & plugins versions
2022-02-15 14:51:29 +01:00
Szymon Fugas
e8414c09a8
chore: enable manual run of nightly builds with possibility of skipping tests ( #712 )
...
* Add manual dispatch trigger for nightly build workflow, with an input parameter for optionally skipping the e2e and helm tests part of the workflow
* Bump how much memory to start minikube cluster with on e2e test workflows
* Log events from default namespace on tests failure, bump the limit of kubernetes events logged to 30
* Bump workflow-job plugin version used by default from 2.42 to 1145.v7f2433caa07f
2022-02-10 18:03:08 +01:00
João Valença
424ec3fbc2
Receive plugins' versions with underscores. ( #699 )
...
* Receive plugins versions with underscores.
New jenkins plugin versions have underscores in them (example: https://plugins.jenkins.io/credentials/ ). The operator refuses configuration for such plug-ins as they do not match the existing regex.
* Add tests to underscores in plugin versions
Adds a new test to check that versions with underscores are valid.
* Synchronise regexps character order to avoid range
Make two related regexps more evidently similar to each other and re-order the symbols so that the - is not interpreted.
2022-01-27 10:58:27 +01:00
Sylwia Brant
76078d5ff2
Bump version to v0.7.0
2021-12-08 10:26:46 +01:00
Manuel Traut
e03ca0674a
Upgrade Jenkins Master default docker image to latest LTS
...
Current plugin versions require at least Jenkins 2.289
Signed-off-by: Manuel Traut <manuel.traut@mt.com>
2021-10-20 14:31:06 +02:00
Manuel Traut
90d26f0548
Update jenkins base plugins to latest version ( #669 )
...
Signed-off-by: Manuel Traut <manuel.traut@mt.com>
2021-10-18 15:32:05 +02:00
Mateusz Korus
764a144c5a
Regenerate crds ( #659 )
2021-09-30 11:42:35 +02:00
Mateusz Korus
31c8368c55
Add HostAliases to schema ( #656 )
...
Add HostAliases to schema and propagate them to pods so the user can add entries to /etc/hosts
2021-09-24 15:00:14 +02:00
Cosnita Radu Viorel
935b60b6d8
Add GitLFS pull after checkout behaviour to SeedJob GroovyScript Template ( #483 )
...
Add GitLFS pull after checkout behaviour to support also repositories which are relying on Git LFS
Close #482
2021-07-29 11:44:51 +02:00
Szymon Fugas
9d5c525ace
Bump seedjobs agent image version to 4.9-1 ( #604 )
2021-07-23 10:29:04 +02:00
Michael Schmid
222af51cb9
Update Kubernetes to 1.30.0 ( #579 )
2021-06-16 11:23:04 +02:00
Mateusz Korus
fbea1ed790
Bump version to v0.6.0
2021-06-10 08:10:50 +02:00
SylwiaBrant
e762957cc1
Add security-validator branch to tests triggers
2021-06-08 09:38:47 +02:00
MKajzik
59d522c5d2
#554 Remove Deprecated JVM opts ( #569 )
...
* Upgrade base plugins
* Upgrade Jenkins image
* Remove deprecated JVM opts
2021-05-20 17:22:00 +02:00
MKajzik
8a42cdc1ee
#560 Fixed envFrom not propagating to master pod ( #564 )
...
* Fixed envFrom not propagate to master pod
2021-05-11 15:58:56 +02:00
Piotr Ryba
41dac85ea1
#552 Seed Jobs: Don't Validate "external" Credential Type ( #556 )
...
* Don't validate external credential type
The operator shouldn't try to fetch credentials that have their types
defined as `external` - that means that credentials are supplied
externally, without using k8s secrets.
* Docs: Add example of `external` credential type
2021-05-05 09:27:43 +02:00
Piotr Ryba
223119b62d
Skip kube-api-access Volume Comparison ( #550 )
...
* Skip kube-api-access volume comparison
This hotfixes the incompatibility between the Operator and Kubernetes
1.21.
Kubernetes 1.21 started adding a new volume named
"kube-api-access-<random-suffix>" and that broke the comparison
function and resulted in an infinite loop.
2021-04-28 14:23:00 +02:00
Piotr Ryba
07d2e5e129
Use ssh.ParseRawPrivateKey to validate ssh private key ( #546 )
...
This allows the user to use keys other than PEM encoded RSA. ed25519
is often recommended to be used if it's supported. Using this
algorithm implies the use of OpenSSH key format in ssh-keygen.
2021-04-27 07:21:58 +02:00
SylwiaBrant
652580c0a5
#507 Allow listing events ( #514 )
...
Added missing permissions for listing events by Jenkins
2021-02-12 15:38:23 +01:00
Sylwia Brant
77a79e8f97
Removed image CRD, updated plugins
2021-02-05 13:28:30 +01:00
SylwiaBrant
021ebb4745
Added TestPlugins, TestRestart and TestRestoreBackup ( #504 )
...
Co-authored-by: Tomasz Sęk
2021-02-05 13:17:06 +01:00
Tomasz Sęk
e03b3f25a5
Fix container-runtime-build Makefile goal
2021-01-27 14:29:05 +01:00
Tomasz Sęk
34ffdde054
Resolve some FIXME
2021-01-27 11:29:38 +01:00
Tomasz Sęk
524d0b861f
Refactor e2e tests to new ginkgo framework
2021-01-26 22:00:23 +01:00
Tomasz Sęk
cb26623f5f
Upgrade operator-sdk to 1.3.0 without e2e tests
2021-01-19 15:47:05 +01:00
Tomasz Sęk
fe81e5ab3d
Bump version to v0.5.0
2021-01-18 10:10:36 +01:00
Sylwia Brant
566ac9768f
Grand Christmas Patch
...
Fixed helm not creating role permissions #424
Added ability to use custom k8s cluster domain #461
Fixed propagation of JENKINS_OPTS to seed-job agent #462
Fixed updating last backup #421
2020-12-15 10:18:40 +01:00
Sylwia Brant
ea5ad56012
Fixed targetPort value
...
Made the targetPort in Jenkins pod a fixed value.
Previously users encountered issue with changing values.
Added test comparing expected and actual targetPort values.
2020-10-13 09:22:19 +02:00
Sylwia Brant
21f5444371
Updated links and versions of plugins.
...
Added Operator's restart commands to developer guide installation.
2020-10-01 15:39:40 +02:00
Tomasz Sęk
285718156c
Bump workflow-job plugin version to 2.39
2020-07-17 17:17:55 +02:00
jkhelil
14cd8b7724
fix route name
2020-07-10 10:02:29 +02:00
Vibhav Bobade
8dbb07b094
Revert "Remove unwanted schemes"
...
This reverts commit 445cf2eb8c .
2020-06-26 08:25:17 +05:30
Tomasz Sęk
445cf2eb8c
Remove unwanted schemes
...
https://github.com/operator-framework/operator-sdk/issues/2577
2020-06-07 19:17:39 +02:00
Mads Dam Jakobsen
d1aded8ef6
Implemented feedback from @jetersen
...
Much cleaner solution provided by @jetersen which is also backwards compatible
2020-06-04 22:48:28 +02:00
Mads Dam Jakobsen
2c79c128c5
Check casc version to match changes in YamlSource
...
Check for casc version 1.41 or to match the api changes to YamlSource
2020-06-02 23:05:44 +02:00
Akram Ben Aissi
ee01c4c028
JenkinsImage controller based on kaniko ( #394 )
2020-05-29 15:00:36 +02:00
Akram Ben Aissi
fc216263e8
Minor refactor of the jenkins reconcile
...
- Extract resources limits creation
- Start to extract the reconcilier structure into a separate file
2020-05-25 12:34:58 +02:00
jkhelil
5e1496cbc3
reorganise directories for better readbility
2020-05-19 10:26:18 +02:00
Tomasz Sęk
57ad3b6be8
Merge pull request #391 from jkhelil/inject_abstraction
...
Inject abstractions by using interfaces
2020-05-15 21:48:40 +02:00
Vibhav Bobade
b77592e9d1
Intermediate Commit for transition from Pod to Deployment based Jenkins Controller
...
Allows for using the annotation jenkins.io/use-deployment
and setting the value to true makes the operator use a
Deployment instead of Pod for serving Jenkins.
This is part of a temporary feature and has to be committed to avoid bigger PRs.
2020-05-15 12:44:54 +05:30
jkhelil
c42477d275
inject abstration not implementation
2020-05-15 08:57:20 +02:00
jkhelil
3747cce30f
rename caas.go to casc.go to fit the package name
2020-05-14 14:34:22 +02:00
Tomasz Sęk
2dea7124dd
Merge pull request #381 from jkhelil/refactor_logs
...
Refactor log handling
2020-05-14 09:25:01 +02:00
jkhelil
196d208b9f
Trigger ci
2020-05-14 08:46:32 +02:00
jkhelil
e05c2d7a97
refactor log handeling
2020-05-13 14:14:33 +02:00
Tomasz Sęk
0d58add55f
Remove configuration-as-code-support plugin from website
2020-05-13 09:36:24 +02:00
Vibhav Bobade
b0139762b1
Update agent image used in SeedJobs
...
jenkins/jnlp-slave:alpine is deprecated and replaced with
jenkins/inbound-agent:alpine.
2020-05-07 19:39:02 +05:30
jkhelil
128c97be6b
lint with golangci-lint
2020-05-06 16:22:52 +02:00
khelil
eb8b2e32e8
Refactoring for jenkins client ( #366 )
2020-05-06 11:31:16 +02:00
Akram Ben Aissi
ebfb38a9c4
fix
2020-05-05 15:13:36 +02:00
Akram Ben Aissi
b6144b5559
Add Route pointing to the HTTP Service when the Route API is present
2020-05-05 14:06:10 +02:00
Tomasz Sęk
6b96d2dd94
#273 Prevent make backup with the same number before pod deletion
2020-05-03 19:59:44 +02:00
Tomasz Sęk
2a0e2f90ba
#359 Add watch events for Jenkins(required by Kubernetes plugin)
2020-05-03 14:14:21 +02:00
Tomasz Sęk
7445915c8f
Merge pull request #356 from jkhelil/issue_351
...
Reconcile yaml user configuration before groovy one
2020-04-30 16:21:58 +02:00
jkhelil
ad6f9946cc
#351 Reconcile yaml user configuration before groovy one
2020-04-30 15:44:31 +02:00
Akram Ben Aissi
0a57ebb96e
Adding OpenShift doc
2020-04-29 14:47:28 +02:00
Akram Ben Aissi
83b3fa8cd0
Default rule policy now allows watching resources required by OpenShift ( #352 )
2020-04-28 16:45:30 +02:00
Jakub Al-Khalili
fe9cb921bc
#263 Execute user scripts before seed jobs ( #345 )
2020-04-27 14:22:49 +02:00
Mikolaj Karebski
85237e2da7
#328 Code review fixes
2020-04-24 13:33:02 +02:00
Mikolaj Karebski
fd1b5f2bd9
#328 Fix 65535 string length issue
2020-04-24 11:47:10 +02:00
Akram Ben Aissi
6e25b3fd3c
Split reconcile.go into several files
2020-04-15 21:59:27 +02:00
Tomasz Sęk
42ed7dbc6b
#291 Don't install configuration-as-code-support plugin by default
2020-04-13 14:02:26 +02:00
Tomasz Sęk
ea059eab76
Update base plugins versions
2020-04-13 13:59:22 +02:00
Oleksandr Kovalchuk
68ffc69d41
Add possibility to set Jenkins master pod's priority
...
Allow to set priorityClassName for master pod. This will make possible
for jenkins master to either not be preempted on other's pod low
resources or to preempt lesser priority pods on resources shortage.
Ref: https://github.com/jenkinsci/kubernetes-operator/issues/321
2020-04-09 11:06:56 +03:00
Mikolaj Karebski
32ae0c58f4
#318 Fix code review issues
2020-04-03 10:59:01 +02:00
Mikolaj Karebski
fe74f4074c
#318 Fix running Jenkins-Operator locally
2020-04-03 10:23:26 +02:00
salluvada
970449f04f
#296 Allow to specify custom plugins location in jenkins CR ( #309 )
2020-03-29 20:41:16 +02:00
Avni Sharma
110b750ab3
Mark Master as required and omitempty fields as +optional
2020-03-28 03:29:12 +05:30
Seshu Kumar Alluvada
7790ca6f0f
added cookie jar
2020-03-27 10:32:46 -04:00
Seshu Kumar Alluvada
5baee01ac5
Revert "refactor service name and service fqdn fuctions"
...
This reverts commit d71d105986 .
2020-03-24 09:42:25 -04:00
Seshu Kumar Alluvada
dd2560e2b2
fix service fqdn generation
2020-03-24 08:48:25 -04:00
Seshu Kumar Alluvada
d71d105986
refactor service name and service fqdn fuctions
2020-03-24 00:30:24 -04:00
Seshu Kumar Alluvada
0082392dbf
fix the seed job service names to use FQDN
2020-03-23 09:47:58 -04:00
Seshu Kumar Alluvada
959aa17c30
configure kubernetes with FQDNs for jenkins http and slave services
2020-03-22 23:39:39 -04:00
Tomasz Sęk
7356a5ec49
#190 Improve e2e tests for OpenShift
2020-03-22 12:24:05 +01:00
Tomasz Sęk
2cecbba8b2
#290 Pass script in body instead of URL parameter
2020-03-17 20:20:39 +01:00
Shoubhik Bose
852d729018
Upgrade operator-sdk to 0.15.1 ( #269 )
...
Upgrade operator-sdk to 0.15.1
2020-02-12 21:58:28 +01:00
Shoubhik Bose
11231b690c
Generate OpenAPI validation schema
2020-02-10 21:06:59 +01:00
Riccardo Biraghi
0f5cd0334d
Add Bitbucket trigger for seed job
2020-02-05 16:17:49 +00:00
Tomasz Sęk
be41ef44a8
#262 Allow configure Jenkins master pod labels
2020-01-30 23:14:06 +01:00
Tomasz Sęk
f50cf309cf
#257 Propagate NodeSelector,Tolerations and ImagePullSecrets to seed job agent from Jenkins pod
2020-01-30 23:14:00 +01:00
Tomasz Sęk
d6143de7b8
Don't set default security context
2020-01-26 19:44:19 +01:00
Tomasz Sęk
2c28755e90
Fix setting service account annotations
2020-01-23 13:11:50 +01:00
Tomasz Sęk
fc06cabac8
#252 Handle Jenkins CR replace gracefully
2020-01-21 11:19:51 +01:00
Tomasz Sęk
ba122db1f6
#249 Improve checking the NodeSelector
2020-01-20 22:02:38 +01:00
Tomasz Sęk
8941f746b8
#194 Allow unset resources.limits or resources.requests
2020-01-19 20:24:51 +01:00
Tomasz Sęk
bf07fa59ef
#199 Generalize Jenkins container command validation
2020-01-18 19:11:27 +01:00
Tomasz Sęk
bf3a4bc02f
Update base plugins
2020-01-15 21:46:44 +01:00
Tomasz Sęk
ff2e76c977
Fix set operator version in Jenkins CR status
2020-01-15 15:01:32 +01:00
Tomasz Sęk
9204964d69
Fix signal propagation to the Jenkins master
2020-01-15 14:51:32 +01:00
Tomasz Sęk
8e1d66de0f
#190 Allow set Jenkins API authorization strategy
2020-01-11 22:04:00 +01:00
Tomasz Sęk
6de21202e8
Fix get Jenkins plugins through Jenkins API
2020-01-11 16:01:25 +01:00
Tomasz Sęk
7ca7e58cc5
#190 Fix run seed job agent on top of OpenShift
2020-01-11 15:59:39 +01:00
Tomasz Sęk
7dd2ff1b1b
#190 Allow set Jenkins master service account annotations
2020-01-11 10:31:18 +01:00