Commit Graph

146 Commits

Author SHA1 Message Date
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
Sylwia Brant 225448b965 Revert accidental rebase 2021-09-01 14:26:27 +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
Mateusz Korus 4aa34157c3 Merge master (#620)
* 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

* 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>

* 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>

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

Also bump Helm Chart version to v0.5.2

* Fix bad identation in chart/index.yaml (#619)

Co-authored-by: Szymon Fugas <sz.fugas@gmail.com>
Co-authored-by: Piotr Ryba <55996264+prryb@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: prryb <prryb@users.noreply.github.com>
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
Co-authored-by: Cosnita Radu Viorel <radu.cosnita@gmail.com>
Co-authored-by: Morten Birkelund <mbi@salecto.com>
Co-authored-by: Ernestas <ernetas@gmail.com>
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 38e46a13dd
Fix Helm package URL in Makefile & Index entry for 0.5.3 (#631)
* Fix url pointing to 0.5.3 Helm chart package in index

* Fix url used for indexing latest chart version in Makefile target releasing chart
2021-08-16 15:01:24 +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
Ernestas 2d1a67afb9
Fix bad identation in chart/index.yaml (#619) 2021-08-09 18:40:59 +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
SylwiaBrant 5f1b28f539
#503 Added JenkinsImage crd to Helm Chart (#508) 2021-02-04 08:28:38 +01:00
Emil Kostadinov 545c7b99b3 Pass getLatestAction helm value to the Jenkins instance 2021-02-01 06:00:48 +02:00
Tomasz Sęk 5f45777554
Release 0.4.1 Helm Chart 2021-01-23 14:12:06 +01:00
Mitsufumi KIkyotani 73db2e0fc9
Make livenessProbe and readinessProbe configurable in Helm chart (#499) 2021-01-23 14:00:27 +01:00
Tomasz Sęk aa45c79c56
Release 0.4.0 Helm Chart 2021-01-18 16:18:04 +01:00
Tomasz Sęk ae0fe371ba
Update Helm Chart - 0.5.0 release 2021-01-18 16:13:27 +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 7c823a763c Added labels and annotations to Helm Chart
Added configuration option for the user to specify annotations and labels for Jenkins pod via helm. Updated installation guide with information about this feature.
2020-09-28 12:47:23 +02:00
Sylwia Brant 7a7564f76b Added labels and annotations to Helm Chart
Added configuration option for a user to specify annotations and labels for Jenkins CR and pod.
2020-09-23 15:25:45 +02:00
Tomasz Sęk ac91e5f19b
Release 0.3.4 Helm chart 2020-07-19 17:29:08 +02:00
Tomasz Sęk 5beff3b59a
Bump workflow-job plugin version to 2.39 2020-07-19 17:25:57 +02:00
Tomasz Sęk 285718156c
Bump workflow-job plugin version to 2.39 2020-07-17 17:17:55 +02:00
Jakub Al-Khalili d531146937 Add support in helm chart for Jenkins pod volume mounts 2020-06-18 11:49:38 +02:00
Tomasz Sęk 08d9c40fb6
Release 0.3.2 Helm chart 2020-06-07 15:20:44 +02:00
Tomasz Sęk 8c62b6909d
#349 Fix Helm upgrade issue with PVC 2020-06-07 14:56:22 +02:00
Tomasz Sęk 87ee491a74
#349 Fix Helm upgrade issue with PVC 2020-06-07 12:10:03 +02:00
Jakub Al-Khalili 5d0c6524d9 Bump version to 0.3.1 2020-05-29 13:02:14 +02:00
Jakub Al-Khalili afe2d41dcc Improve secret management in helm chart 2020-05-29 11:46:43 +02:00
Frederik Nordahl Jul Sabroe 0bb9fa8c1f
Change helm chart to helm 3 apiVersion
The chart is already in the format of a Helm 3 chart, however the `apiVersion` of the chart is set to `v1`, which is used for Helm 2 charts. Helm 3 charts should use `apiVersion: v2`.

This makes tools such as ArgoCD mistake the chart for a Helm 2 chart, and therefore template the chart using the wrong helm version. In ArgoCDs case, that means that the CRDs aren't deployed.

reference: https://helm.sh/docs/faq/#chartyaml-apiversion-bump
2020-05-19 17:05:25 +02:00
Tomasz Sęk 0d58add55f
Remove configuration-as-code-support plugin from website 2020-05-13 09:36:24 +02:00
Jakub Al-Khalili 78948440f4 Improve helm chart labels 2020-05-12 11:41:18 +02:00
Jakub Al-Khalili a027d4683b
Update index.yaml 2020-05-11 10:37:00 +02:00
Jakub Al-Khalili 7aa7e0ab2a Add jenkins container envs to helm chart 2020-05-08 15:20:58 +02:00
Tomasz Sęk 94517c1886
Release 0.2.2 Helm chart 2020-05-07 21:31:08 +02:00
Tomasz Sęk 923c766996
Merge pull request #373 from jkhelil/fix_operator_role
add serviceaccounts update verb to opertor role in helm
2020-05-07 16:10:27 +02:00
Jakub Al-Khalili 24235a5fa6
Allow configure Jenkins labels in Helm chart (#372) 2020-05-07 15:03:53 +02:00
jkhelil f33014d892 add serviceaccounts update verb to opertor role 2020-05-07 15:03:29 +02:00
Jakub Al-Khalili 9baa2c6680 Fix index.yaml 2020-04-30 09:57:55 +02:00
Jakub Al-Khalili 116cb49857 #355 Add priorityClassName and bump to 0.2.0 2020-04-30 09:53:21 +02:00
Jakub Al-Khalili 6b72b319df Fix helm chart 2020-04-29 16:52:37 +02:00
Jakub Al-Khalili 10d3f9b68c Improve helm chart configuration as code and groovy script section 2020-04-29 14:28:54 +02:00
Tomasz Sęk 9715217f1d
#344 Fix operator notifications in Helm Chart 2020-04-22 20:41:43 +02:00
Jakub Al-Khalili e4b168dbe3
Bump helm chart to 0.1.2 (#343)
Release 0.1.2 Helm Chart
2020-04-22 15:49:13 +02:00
Jakub Al-Khalili e73f6de424
Fix securityContext for jenkins (#342) 2020-04-22 14:38:14 +02:00
Jakub Al-Khalili 6a6fc7a094
Update jenkins.yaml 2020-04-22 13:24:19 +02:00
Tomasz Sęk 3bfeae1cb1
#329 Fix Helm Chart index.yaml file 2020-04-15 08:20:33 +02:00
Tomasz Sęk 8ed737ffa1
Release Helm Chart 2020-04-14 09:36:02 +02:00
Tomasz Sęk 0b625033a4
Update Helm Chart - 0.4.0 release 2020-04-14 09:35:41 +02:00
Tomasz Sęk 307847dbc8
#327 Fix create configuration config maps 2020-04-14 09:30:18 +02:00
Tomasz Sęk 5ab1984be9
#324 Allow set services in Helm Chart 2020-04-14 09:28:33 +02:00
Jakub Al-Khalili 05bf964083 Release 0.1.0 version of helm chart 2020-04-07 14:37:10 +02:00
Jakub Al-Khalili 52fd4f7f7b
Refactor the Helm chart (#300) 2020-04-01 18:54:27 +02: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 544fef8d1c
#279 Fix helm chart package 2020-03-03 16:33:16 +01:00
Riccardo Biraghi c16ca15521
Move Jenkins CRD to crds dir (#266)
* Move Jenkins CRD to crds dir

* Update helm chart version + package

* Update helm repo index

* Revert "Update helm repo index"

This reverts commit 1fffe74e42.

* Run make helm-deploy
2020-02-05 13:33:41 +01:00
Tomasz Sęk 3c69c31213
Release Helm chart with v0.3.3 version 2020-01-30 23:19:09 +01:00
Tomasz Sęk ef96b5564d
Release Helm chart with v0.3.2 version 2020-01-22 13:35:46 +01:00
Tomasz Sęk b2d3902c63
Release Helm chart with v0.3.1 version 2019-12-31 13:08:23 +01:00
Tomasz Sęk 56baf75d85
Release Helm chart with v0.3.0 version 2019-12-20 14:15:06 +01:00
Tomasz Sęk 347ac0b06d
Fix helm chart index paths 2019-11-19 08:52:42 +01:00
Tomasz Sęk 1558043028
Add icon to the helm chart 2019-11-18 09:40:56 +01:00
Tomasz Sęk dbe8c1ae2e
#147 Release 0.0.3 version of Helm Chart 2019-10-21 14:41:04 +02:00
Endre Karlson eeb8b5cf89 helm: Make namespace configurable and CR opt out 2019-10-20 20:46:19 +02:00
Tomasz Sęk d1f04b4c03
Bump version to v0.2.2 2019-09-19 14:23:49 +02:00
Jakub Al-Khalili c7ceab8b90 Fix helm Makefile goals 2019-09-18 14:01:12 +02:00
Jakub Al-Khalili 4c18d315a4 Improve helm CR, add helm goals to Makefile 2019-09-18 12:09:25 +02:00
Jakub Al-Khalili f8b502f393 Regenerate index.yaml, add namespace to NOTES, fix Jenkins CR 2019-09-18 11:29:42 +02:00
Jakub Al-Khalili 9b2f44187a Package jenkins-operator chart, reorganize chart directory 2019-09-18 10:05:13 +02:00
Jakub Al-Khalili dc59674cd4 Add helm chart 2019-09-18 09:47:17 +02:00