Commit Graph

1174 Commits

Author SHA1 Message Date
github-actions[bot] 768d1ac617
Auto-updated docs (#655)
Co-authored-by: SylwiaBrant <SylwiaBrant@users.noreply.github.com>
2021-10-01 10:44:14 +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
SylwiaBrant dfae860ca8
Security validator - Pulkit Sharma's GSoC project 2021-09-02 10:28:40 +02:00
SylwiaBrant b4aed5c154
Merge pull request #654 from sharmapulkit04/security-validator
Updated docs
2021-09-01 15:46:28 +02:00
sharmapulkit04 c8d640cc8c Updated docs 2021-09-01 18:17:43 +05:30
Sylwia Brant 225448b965 Revert accidental rebase 2021-09-01 14:26:27 +02:00
SylwiaBrant 2e8fed4e59
Merge pull request #651 from sharmapulkit04/security-validator-manifests
Added kubectl manifests to deploy webhook
2021-09-01 11:43:38 +02:00
sharmapulkit04 78d33977a7 Fixed docs and Makefile 2021-08-31 18:55:46 +05:30
sharmapulkit04 7ae767ac84 Merge branch 'security-validator' into security-validator-manifests 2021-08-30 18:25:05 +05:30
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
sharmapulkit04 b8f5157906 Added kubectl manifests to deploy webhook
- Updatedd Makefile
- Added yaml manifests in deploy/
- Removed webhook/
2021-08-27 03:44:02 +05:30
sharmapulkit04 55c3e88037 Merge branch 'master' of github.com:jenkinsci/kubernetes-operator into security-validator-docs 2021-08-27 02:58:20 +05:30
sharmapulkit04 d4917b46dd Completed Documentation 2021-08-27 02:57:32 +05:30
Sig00rd 126b02aaab
Fix broken links in README (#648) 2021-08-23 16:38:42 +02:00
sharmapulkit04 5423173340 Merge branch 'security-validator' of github.com:jenkinsci/kubernetes-operator into security-validator-docs 2021-08-23 19:14:30 +05:30
sharmapulkit04 586515b212 Updated Documentation 2021-08-23 18:57:26 +05:30
sharmapulkit04 34c9ee3cd5
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-23 15:18:31 +02:00
sharmapulkit04 ba66ba4c4d code cleanup and optimization 2021-08-23 17:24:13 +05:30
sharmapulkit04 95c29d4994 Modified helm tests 2021-08-22 05:16:14 +05:30
sharmapulkit04 9594c8e7cd Code optimization and cleanup 2021-08-22 03:51:50 +05:30
github-actions[bot] de02559c68
Auto-updated docs (#641)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-08-20 16:24:01 +02:00
Sig00rd 9761d6a576
Fix broken links in 0.6 docs (#640) 2021-08-20 16:08:16 +02:00
sharmapulkit04 f527a8c5cb 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
2021-08-20 12:37:55 +05:30
github-actions[bot] 2c240538e0
Auto-updated docs (#639)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-08-19 18:15:16 +02:00
Sig00rd a1d98a73e7
Regenerate docs (#638)
* Update last modified dates

* Regenerate docs
2021-08-19 18:09:37 +02:00
Sig00rd b84617b1ba
Fix docs autogen workflow case where markdown files were deleted (#637) 2021-08-19 17:46:12 +02:00
Sig00rd 03cfa758f5
Docs: information architecture and security guide update (#634)
* Add FAQ section

* Add Troubleshooting section

* Use Jenkins Operator as project name instead of jenkins-operator

* Move installation and security pages to section on version they are for

* Fix order of versions in getting started in section menu

* Configure side bar menu to be compact

* Rename getting started subpages

* Update Security docs for 0.6 (#611)

* Fix ordering of main sections in docs section menu

* Add more descriptive names for customization and configuration sections

* Update Getting Started index to link to latest version installation
2021-08-19 17:14:34 +02:00
github-actions[bot] f8621fcb81
Auto-updated docs (#635)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-08-18 18:47:23 +02:00
github-actions[bot] 4657ed6d65
Auto-updated docs (#633)
Co-authored-by: Sig00rd <Sig00rd@users.noreply.github.com>
2021-08-18 18:36:30 +02:00
Sig00rd e88d63fdf7
Docs: minor fixes (#632)
* Fix descriptions of major releases

* Update meta links 'create documentation issue' link to use new docs issue template

* Update meta links 'create project issue' link to open issue template list instead of blank issue from meta links

* Fix typo in markdown in docs issue template

* Add Jenkins Discourse section in index, revisit index and about pages

* Fix favicon not showing by generating more favicon sizes with icongen
2021-08-18 17:53:19 +02:00
sharmapulkit04 e2ec2ea329 Updated unit tests, helm charts and validation logic 2021-08-18 05:57:28 +05:30
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
github-actions[bot] 39ec91da29
Auto-updated docs (#630)
Co-authored-by: prryb <prryb@users.noreply.github.com>
2021-08-16 10:56:48 +02:00
Sig00rd 4e046280a3
Workflow: Release Helm chart (#626)
* Add Makefile target to release latest version of Helm chart

* Add workflow that packages Helm chart release and creates PR with it

* Remove old Helm targets
2021-08-16 10:54:12 +02:00
Piotr Ryba 16b4723b79
Fix links on Installation page (#629) 2021-08-16 10:51:11 +02:00
sharmapulkit04 5ca4e0a90c Updated Helm Charts
- Optimized the charts
- Made the webhook optional
- Added cert manager as dependency to be installed while running webhook
2021-08-16 04:24:24 +05:30
Sig00rd ff6e03539c
Add step to update 'last modified' date in docs autogen workflow (#627) 2021-08-13 16:55:58 +02:00
sharmapulkit04 b11ca32d1a Added unit test cases for webhook 2021-08-13 02:33:23 +05:30
Sig00rd 058ea61d70
Update project and repo documents (#621)
* Removed Contributor Covenant version from Code of Conduct doc

* Added a note on PRs with changes to Helm Chart to CONTRIBUTING doc

* Mentioned Discourse as current main channel of communication in README

* Updated ROADMAP
2021-08-12 10:58:54 +02:00
sharmapulkit04 90b685db9b Merge branch 'security-validator' of github.com:jenkinsci/kubernetes-operator into security-validator 2021-08-12 13:13:39 +05:30
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
Sig00rd ba78896ea6
Stale bot: configure time to close to 30 days after stale (#622) 2021-08-10 12:15:46 +02:00
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
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
Mateusz Korus 3e5d80269d
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-10 09:58:24 +02:00
Ernestas 2d1a67afb9
Fix bad identation in chart/index.yaml (#619) 2021-08-09 18:40:59 +02:00