Commit Graph

41 Commits

Author SHA1 Message Date
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
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
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
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
Mitsufumi KIkyotani 73db2e0fc9
Make livenessProbe and readinessProbe configurable in Helm chart (#499) 2021-01-23 14:00:27 +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 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 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 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
Tomasz Sęk 0d58add55f
Remove configuration-as-code-support plugin from website 2020-05-13 09:36:24 +02:00
Jakub Al-Khalili 7aa7e0ab2a Add jenkins container envs to helm chart 2020-05-08 15:20:58 +02:00
Jakub Al-Khalili 24235a5fa6
Allow configure Jenkins labels in Helm chart (#372) 2020-05-07 15:03:53 +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
Jakub Al-Khalili e73f6de424
Fix securityContext for jenkins (#342) 2020-04-22 14:38:14 +02:00
Tomasz Sęk 0b625033a4
Update Helm Chart - 0.4.0 release 2020-04-14 09:35:41 +02:00
Tomasz Sęk 5ab1984be9
#324 Allow set services in Helm Chart 2020-04-14 09:28:33 +02:00
Jakub Al-Khalili 52fd4f7f7b
Refactor the Helm chart (#300) 2020-04-01 18:54:27 +02: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
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 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 dc59674cd4 Add helm chart 2019-09-18 09:47:17 +02:00