Commit Graph

1024 Commits

Author SHA1 Message Date
sharmapulkit04 9106582a9e Merge branch 'master' of github.com:jenkinsci/kubernetes-operator into security-validator
- Refactored code in webhook and main
- Merged changes from master
2021-08-10 15:27:37 +05:30
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
sharmapulkit04 1d2651d43f 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
2021-08-06 19:12:09 +05:30
github-actions[bot] b400a420e5
Auto-updated docs (#617)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-08-06 13:06:12 +02:00
github-actions[bot] b82fc7c764
Auto-updated docs (#616)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-08-06 10:03:57 +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 8453b3e9fe
Add an issue template for documentation (#613) 2021-08-05 17:27:19 +02:00
sharmapulkit04 37d0eac4e3 Reimplemented the validation logic with caching the security warnings
- Reimplemented the validator interface
- Updated manifests to allocate more resources
2021-08-05 04:39:27 +05:30
github-actions[bot] 17dba087b8
Auto-updated docs (#610)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-08-02 16:22:29 +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
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
github-actions[bot] bd32624fe1
Auto-updated docs (#602)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-07-21 09:54:59 +02:00
Szymon Fugas 463cad3b07
Docs: clarification of description of get latest command in backup (#601) 2021-07-20 14:58:04 +02:00
github-actions[bot] 7ce9d1f077
Auto-updated docs (#600)
Co-authored-by: prryb <prryb@users.noreply.github.com>
2021-07-20 14:56:36 +02:00
Piotr Ryba 35dfd47ec7
Docs: explanation what is backed up and why (#599)
* Explanation what's backed up and why
2021-07-20 12:06:25 +02:00
Szymon Fugas 800c1a7d5d
Configure bot for managing stale issues (#598) 2021-07-19 16:04:45 +02:00
Szymon Fugas db0978c4d4
Configure bot for labelling new issues as needing triage (#597) 2021-07-16 11:45:43 +02:00
sharmapulkit04 52fe5fe95e 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.
2021-07-15 02:53:49 +05:30
Szymon Fugas b407e51bba
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
2021-07-07 13:18:18 +02:00
sharmapulkit04 e87c7cac5f 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-06-30 20:34:51 +05:30
github-actions[bot] 63370a55cc
Auto-updated docs (#583) 2021-06-16 14:20:45 +02:00
Szymon Fugas eb256fec76
Update Minikube and Kubernetes versions in Minikube env config (#582)
* Update minikube and kubernetes version in minikube env config

* Update minikube version in docs' developer's guide
2021-06-16 14:01:25 +02:00
Michael Schmid 222af51cb9
Update Kubernetes to 1.30.0 (#579) 2021-06-16 11:23:04 +02:00
Szymon Fugas 6cc53704e8
Makefile goal to run docs locally (#578)
* Add makefile goal to run docs locally
2021-06-15 16:32:43 +02:00
Szymon Fugas ec6e288673
Regerate docs (#577)
Co-authored-by: Sig00rd <sfugas@virtuslab.com>
2021-06-11 15:44:14 +02:00
Szymon Fugas 040fbbfea5
Separate instructions on YAML vs Helm installation in docs (#576)
* Fix link to Installation on Getting started index

* Separate instructions on installing via YAML and Helm more clearly

* Link deploy jenkins section in instructions on installing via YAML

Co-authored-by: Sig00rd <sfugas@virtuslab.com>
2021-06-11 15:34:02 +02:00
Tomasz Sęk b9059bc26b
Release 0.5.1 Helm Chart 2021-06-11 13:53:13 +02:00
Mateusz Korus 27213fdc48 Regenerate docs 2021-06-10 16:26:11 +02:00
Mateusz Korus 985517b04f
Copy sample cr to docs with new required values && fix urls (#575) 2021-06-10 16:21:49 +02:00
Mateusz Korus 485abaad8d Release 0.5.0 Helm Chart 2021-06-10 11:29:09 +02:00
Mateusz Korus 46ee392a7c Generate website - 0.5.0 history 2021-06-10 10:53:40 +02:00
Mateusz Korus 20b1bb7169 Generate website - 0.6.0 release 2021-06-10 10:49:11 +02:00
Mateusz Korus cd3dbeb0a5 Update website - 0.6.0 release 2021-06-10 10:39:12 +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
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
Mateusz Korus 30723cf6f8 Remove preview of installation from generated docs 2021-05-17 13:21:22 +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
Mateusz Korus 81374d0857 Bump backup PVC version to v0.1.1 2021-05-06 11:17:51 +02:00
Piotr Ryba a7fb199f98
Regenerate docs (#558) 2021-05-05 12:08:01 +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
Tomasz Sęk 332c08ccf2
Update README.md 2021-05-01 17:44:09 +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 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 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
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 6595462398
Merge pull request #549 from jenkinsci/fix/#545-tmp-dir-clearing
#548 Fix clearing /tmp dir in backup script
2021-04-26 20:31:06 +02:00
Sylwia Brant 84b5499755 #548 Fix clearing /tmp dir in backup script 2021-04-26 15:57:13 +02:00