Commit Graph

105 Commits

Author SHA1 Message Date
github-actions[bot] f97badca9c
Release v0.8.0-beta Helm Chart (#825)
Co-authored-by: brokenpip3 <brokenpip3@users.noreply.github.com>
2023-04-18 00:12:09 +02:00
Luigi Operoso 38eaa0fc55
chore: bump version to v0.8.0-beta (#814)
- add dependabot
- add codespell
- update operator version in helm chart
2023-04-18 00:01:07 +02:00
Luigi Operoso 00fc29e772
chore: update to 2.387.2-lts and base plugins (#811) 2023-04-13 23:22:22 +02:00
Luigi Operoso 901100a759
chore(doc): Add the new chat references (#809) 2023-03-23 22:21:11 +01:00
Luigi Operoso 9fd053b784
feat(operator): several updates (#806)
- prepare to switch from `master` to `main`
- avoid to run workflow in case is not needed
- add a way to bump the lts via make
- use latest jenkins lts 2.387.1
- add the docker labels
- update base plugins
- fix #797 
- Add more tests with bats
- Update base plugin to latest version
- Temporary revert #807 
- Better nightly job
2023-03-23 00:04:57 +01:00
Tomas Hulata e36441a4a2
Add tolerations for jenkis pod (#807)
Signed-off-by: tombokombo <tombo@sysart.tech>
2023-03-17 18:56:29 +01:00
Luigi Operoso 2f90db9dc9
fix(quay.io): start using quay.io and fix backup push (#805) 2023-03-12 18:29:39 +01:00
Luigi Operoso e9fbe575a6
chore(update): use latest jenkins lts: 2.375.3 (#796) 2023-03-07 00:09:23 +01:00
Luigi Operoso fc3fe04581
chore(operator): update operator version in master (#791) 2023-01-19 13:50:56 +01:00
Luigi Operoso 60b8ee56de
fix(operator): Attempt to fix all the major issues present atm against the newest jenkins lts version (#784)
* fix(seed): fix #742, workaround #698
Original fix proposal: https://github.com/jenkinsci/kubernetes-operator/issues/742#issuecomment-1304398590

* fix(install-plugin.sh): fix #758, #739
* the fix was original attempted here:
  https://github.com/jenkinsci/kubernetes-operator/pull/764 but was not
  working correctly due to 2-3 additional changes which needed to be
  done
* removed the openshift check because the env is not mention anywhere
  and also the new jenkins-plugin-cli does not a specific command for
  openshift. Finally this does not make any sense in general, the only
  problem in ocp will be the user id that will be mapped to a random uid
  but that's another story. The command to install the plugins should
  remain the same across different k8s flavours.

* fix(doc/test): fix /usr/bin/tini in any doc and validation

* fix(jenkins): remove AdminWhitelistRule to avoid jvm stack trace, see: https://www.jenkins.io/doc/book/security/controller-isolation/jep-235/#api-compatibility

* fix(seed): fix seed img built on a previous jvm, fix #761

* fix(plugin): update the base plugin to work with the newest version of
jenkins:lts

* fix(run): fix #778

* fix(backup): add a trap to remove the tmp dir if the tar fail, also fix: #770

* test(chart): update chart values for testing, will revert before merge

* fix(configmap): leftover

* fix(tests): fix seed job test

* fix(e2e)

* fix(e2e): helm

* fix(operator): update the temporary img to reflect latests changes

* Fix Helm e2e tests

* add trap in case of unwanted exit and make shellcheck happy

* chore(plugin): update git ver to 5.0.0

* fix(backup): always force delete the backup directory

* chore(operator): update the temporary img to reflect latest changes

* chore(jenkins): upgrade jenkins latest lts
2023-01-12 17:29:30 +01:00
Peter Becich fbe70f11ca
update image tag for `virtuslab/jenkins-operator-backup-pvc` (#781)
https://hub.docker.com/r/virtuslab/jenkins-operator-backup-pvc/tags
2023-01-08 19:45:01 +01:00
twildber a8065cc038
adding seedjobagentimage to jenkins chart (#771)
Co-authored-by: Thorsten Wildberger <thorsten.wildberger@capgemini.com>
2023-01-08 19:34:56 +01:00
github-actions[bot] 4c2671c1a3
Release Helm chart 0.6.2 (#753)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2022-06-22 17:55:00 +02:00
Szymon Fugas e1b1e9cb3c
Bump to 0.7.1 (#752) 2022-06-22 17:46:49 +02:00
github-actions[bot] 4079d4e93e
Release Helm chart 0.6.1 (#751)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2022-06-22 13:31:26 +02:00
ywang-psee b734b6d74f
Customize jenkins-operator helmchart with adding 'nodeSelector' (#723)
* Customize jenkins-operator helmchart with adding 'nodeSelector'

* Fix nindent in chart template

* Fix nodeSelector position in helm jenkins template
2022-06-20 21:25:37 +02:00
Tomas Hulata 3362aae2a3
helmchart: hostAliases support (#720)
Signed-off-by: tombokombo <tombo@sysart.tech>
2022-06-20 21:22:17 +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
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
thecooldrop 0f507409cc
Fixes #687 (#688)
This is necessary in order to be able to provide the annotations attached to the
service account associated with the Jenkins master instance.

Co-authored-by: Vanio Begic <vanio.begic@capgemini.com>
2021-12-23 13:37:08 +01:00
Andre 2724ec2f70
#685 Do not strip leading whitespace from priorityClassName in helm template (#686) 2021-12-22 08:16:11 +01:00
Andre 7fb4add0b2
#689 ignore packaged helm charts (#690) 2021-12-21 09:20:00 +01:00
Sylwia Brant dd6e48c8d5 Release 0.6.0 Helm Chart 2021-12-08 14:22:11 +01:00
Sylwia Brant 2b158d5bda Update Operator image in Helm Chart 2021-12-08 14:03:52 +01:00
maslakov e2f19454b1
#674 move imagePullSecrets in template (#675)
* Update jenkins.yaml

fix https://github.com/jenkinsci/kubernetes-operator/issues/674

* Fix nindent to be 4
2021-12-07 11:59:54 +01:00
SylwiaBrant 7e94bc623f
Prepare for Security Validator release (#680)
* Tidy up k8s events logging
* Increase memory and decrease CPU in resources
* Standarize API fields
* Refactor tests
* Change image and resources for e2e tests
* Increase readability
2021-12-07 08:23:58 +01:00
James Flowers 907be3a214
Update broken documentation links
Update seed-job-creation-tutorial link referenced in values.yaml
2021-11-10 16:35:46 -05: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
sharmapulkit04 51f7ec8248 Implemented validation logic for the webhook (#593)
* Fix workflow for autogenerating docs (#592)

* Use grep -c flag in check for changes step to fix case when more than 1 website file was modified

* Implemented validation logic for the webhook
- Created a single Validate() function to validate both updating and creating Jenkins CR.
- Implemented the Validate function to fetch warnings from the API and do security check if
  being enabled.
- Updated the helm charts and helm-e2e target to run the helm tests.

* Configure bot for labelling new issues as needing triage (#597)

* Configure bot for managing stale issues (#598)

* Docs: explanation what is backed up and why (#599)

* Explanation what's backed up and why

* Auto-updated docs (#600)

Co-authored-by: prryb <prryb@users.noreply.github.com>

* Docs: clarification of description of get latest command in backup (#601)

* Auto-updated docs (#602)

Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>

* Bump seedjobs agent image version to 4.9-1 (#604)

* 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

* Docs: minor fixes (#608)

* Link to project's DockerHub in README's section on nightly builds, add paragraph about nightly builds in installation docs

* Fix repositoryURL in sample seedJob configuration with SSH auth

* Slightly expand on #348

* Fix formatting in docs on Jenkins' customization, update plugin versions

* Add notes on Jenkins home Volume in Helm chart values.yaml and docs (#589)

* Auto-updated docs (#610)

Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>

* Reimplemented the validation logic with caching the security warnings
- Reimplemented the validator interface
- Updated manifests to allocate more resources

* Add an issue template for documentation (#613)

* Docs: add info on restricted volumeMounts other than jenkins-home(#612)

* Update note in installation docs

* Update Helm chart default values.yaml

* Update schema

* Auto-updated docs (#616)

Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>

* Auto-updated docs (#617)

Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>

* Updated Validation logic
- Defined a security manager struct to cache all the plugin data
- Added flag to make validating security warnings optional while deploying the operator

* Helm Chart: Remove empty priorityClassName from Jenkins template (#618)

Also bump Helm Chart version to v0.5.2

* Added unit test cases for webhook

* Updated Helm Charts
- Optimized the charts
- Made the webhook optional
- Added cert manager as dependency to be installed while running webhook

* Updated unit tests, helm charts and validation logic

* Completed helm e2e tests and updated helm charts
- Completed helm tests for various scenarios
- Disabled startupapi check for cert manager webhook, defined a secret and updated templates
- Made the webhook completely optional

* Code optimization and cleanup

* Modified helm tests

* code cleanup and optimization
2021-08-30 08:21:52 +02:00
sharmapulkit04 626246ac4d Added validation webhook,cert-manager,and updated Makefile.
- Scaffolded a new validation webhook using operator-sdk
- Added manifests for webhook.
- Added manifests for self signed issuer and certificates
- Added a new spec named ValidateSecurityWarnings to the Jenkins custom resource definition to enable/disable security check.
- Updated Makefile to deploy the operator locally.
- Updated helm template and default values.yaml
2021-08-27 14:29:50 +02:00
Sig00rd 851fb0d3e9
Release 0.5.3 Helm Chart 2021-08-11 16:57:24 +02:00
Sig00rd 65bc574cb8
Helm chart: Fix role and rb templates for case with jenkins ns being empty string (#624) 2021-08-11 14:49:53 +02:00
Oleksandr Kovalchuk aedc2aff59
Add handling of empty WATCH_NAMESPACE value of jenkins.namespace (#609)
* Add note that jenkins.namespace also affects jenkins-operator resources

* Add handling of empty WATCH_NAMESPACE value of jenkins.namespace

If jenkins.namespace is set to "", it leads to WATCH_NAMESPACE
environment value of Jenkins Operator itself to be set to "", which
leads that operator watches all namespaces (see
https://github.com/jenkinsci/kubernetes-operator/issues/77#issuecomment-523727092).
This case requires custom handling: instead of creating role and
role_binding we need to create clusterrole and clusterrolebinding with
the required permissions.

* Bump chart version

* Fix grammar as suggested by @Sig00rd

Co-authored-by: Sig00rd <sz.fugas@gmail.com>
2021-08-10 11:36:53 +02:00
Morten Birkelund 853f485746
Helm Chart: Remove empty priorityClassName from Jenkins template (#618)
Also bump Helm Chart version to v0.5.2
2021-08-09 14:57:00 +02:00
Szymon Fugas 858f0f4c72
Docs: add info on restricted volumeMounts other than jenkins-home(#612)
* Update note in installation docs

* Update Helm chart default values.yaml

* Update schema
2021-08-05 17:28:01 +02:00
Szymon Fugas dfd25e822c
Docs: minor fixes (#608)
* Link to project's DockerHub in README's section on nightly builds, add paragraph about nightly builds in installation docs

* Fix repositoryURL in sample seedJob configuration with SSH auth

* Slightly expand on #348

* Fix formatting in docs on Jenkins' customization, update plugin versions

* Add notes on Jenkins home Volume in Helm chart values.yaml and docs (#589)
2021-08-02 15:52:10 +02:00
Tomasz Sęk b9059bc26b
Release 0.5.1 Helm Chart 2021-06-11 13:53:13 +02:00
Mateusz Korus 485abaad8d Release 0.5.0 Helm Chart 2021-06-10 11:29:09 +02:00
Mateusz Korus fbea1ed790 Bump version to v0.6.0 2021-06-10 08:10:50 +02:00
SylwiaBrant 38fcdf5d37
#555 Add nightly release of a snapshot (#566)
* #555 Add nightly release of a snapshot

* Update README

* Bump image and plugins

* Bump image and plugins in Helm Chart
2021-05-24 12:13:27 +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
SylwiaBrant c74606a2ee
Migrate Helm Chart to OSDK v1.3.0 (#551)
Migrate Helm Chart to OSDK v1.3.0
2021-04-29 13:50:06 +02:00
Piotr Ryba 0d118bf046
Fix WATCH_NAMESPACE in helm chart (#547)
* Fix WATCH_NAMESPACE in helm chart

When applying the chart, the operator will now watch the correct
namespace. This required changes in roles and role bindings so that
the operator has access to both namespaces.

* Use Role instead of ClusterRole

Mitigates the risk of restrictions in creating ClusterRole in
multitenant k8s clusters.

* Update configuration-as-code version to 1.47
2021-04-27 15:36:09 +02:00
Sylwia Brant 84b5499755 #548 Fix clearing /tmp dir in backup script 2021-04-26 15:57:13 +02:00
Sylwia Brant 892b2c8dd9 Release 0.4.3 Helm Chart 2021-02-19 12:44:08 +01:00
SylwiaBrant bf4bf4ecdd
Merge pull request #506 from emilkostadinov/feature/helm-backuprestore-last-action
Pass getLatestAction Helm value to the Jenkins instance
2021-02-19 11:28:11 +01: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 5bbd1585af Release 0.4.2 Helm Chart 2021-02-04 08:37:33 +01:00