Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First release of helm chart in new location #1

Merged
merged 16 commits into from
Aug 31, 2020
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint Code Base

# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions

on: pull_request

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Lint Code Base
uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_YAML: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code of Conduct

Jenkins Code of Conduct can be found [here](https://www.jenkins.io/project/conduct/).
60 changes: 60 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Contributing Guidelines

Contributions are welcome via GitHub pull requests. This document outlines the process to help get your contribution accepted.

## Sign off Your Work

The Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the [DCO](http://developercertificate.org/). Contributors must sign-off that they adhere to these requirements by adding a `Signed-off-by` line to commit messages.

```text
This is my commit message

Signed-off-by: Random J Developer <[email protected]>
```

See `git help commit`:

```text
-s, --signoff
Add Signed-off-by line by the committer at the end of the commit log
message. The meaning of a signoff depends on the project, but it typically
certifies that committer has the rights to submit this work under the same
license and agrees to a Developer Certificate of Origin (see
http://developercertificate.org/ for more information).
```

## How to Contribute

1. Fork this repository, develop, and test your changes
1. Remember to sign off your commits as described above
1. Submit a pull request

***NOTE***: In order to make testing and merging of PRs easier, please submit changes to multiple charts in separate PRs.

### Technical Requirements

* Must pass [DCO check](#sign-off-your-work)
* Must follow [Charts best practices](https://helm.sh/docs/topics/chart_best_practices/)
* Must pass CI jobs for linting and installing changed charts with the [chart-testing](https://github.com/helm/chart-testing) tool
* Any change to a chart requires a version bump following [semver](https://semver.org/) principles. See [Immutability](#immutability) and [Versioning](#versioning) below

Once changes have been merged, the release job will automatically run to package and release changed charts.

### Immutability

Chart releases must be immutable. Any change to a chart warrants a chart version bump even if it is only changed to the documentation.

### Versioning

The chart `version` should follow [semver](https://semver.org/).

Charts should start at `1.0.0`. Any breaking (backwards incompatible) changes to a chart should:

1. Bump the MAJOR version
2. In the README, under a section called "Upgrading", describe the manual steps necessary to upgrade to the new (specified) MAJOR version

### Community Requirements

This project is released with a [Contributor Covenant](https://www.contributor-covenant.org).
By participating in this project you agree to abide by its terms.
See [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Jenkins Community Kubernetes Helm Charts

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

This functionality is in beta and is subject to change. The code is provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

## Usage

[Helm](https://helm.sh) must be installed to use the charts.
Please refer to Helm's [documentation](https://helm.sh/docs/) to get started.

Once Helm is set up properly, add the repo as follows:

```console
helm repo add jenkinsci https://charts.jenkins.io
```

You can then run `helm search repo jenkinsci` to see the charts.

## Contributing

We'd love to have you contribute! Please refer to our [contribution guidelines](CONTRIBUTING.md) for details.

## License

[Apache 2.0 License](./LICENSE).
84 changes: 21 additions & 63 deletions charts/jenkins/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ numbering uses [semantic versioning](http://semver.org).

NOTE: The change log until version 1.5.7 is auto generated based on git commits. Those include a reference to the git commit to be able to get more details.

## 2.6.0 First release in jenkinsci GitHub org
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file get migrated to the repository root? if not, it might make sense to reference it from README

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It\s now referenced from the chart README.


Updated README for new location

## 2.5.2

Fix as per JENKINS-47112
Expand Down Expand Up @@ -49,7 +53,7 @@ Add an option to specify pod based on labels that can connect to master if Netwo
## 2.2.0 increase retry for config auto reload

Configure `REQ_RETRY_CONNECT` to `10` to give Jenkins more time to start up.
https://github.com/kiwigrid/k8s-sidecar
<https://github.com/kiwigrid/k8s-sidecar>

Value can be configured via `master.sidecars.configAutoReload.reqRetryConnect`

Expand Down Expand Up @@ -127,13 +131,13 @@ Add support for overriding Ingress paths via `master.ingress.paths`

## 1.20.0

Add the following options for configuring the Kubernetes plugin.
Add the following options for configuring the Kubernetes plugin.

- master.slaveDefaultsProviderTemplate
- master.slaveJenkinsUrl
- master.slaveJenkinsTunnel
- master.slaveConnectTimeout
- master.slaveReadTimeout
- master.slaveDefaultsProviderTemplate
- master.slaveJenkinsUrl
- master.slaveJenkinsTunnel
- master.slaveConnectTimeout
- master.slaveReadTimeout

## 1.19.0

Expand Down Expand Up @@ -265,7 +269,7 @@ Update docs for Helm 3

Make `jenkins-home` attachable to Azure Disks without pvc

```
```yaml
volumes:
- name: jenkins-home
azureDisk:
Expand Down Expand Up @@ -313,7 +317,7 @@ configuration-as-code | 1.27 | 1.32

## 1.9.6

Enables jenkins to use keystore inorder to have native ssl support [#17790](https: https://wiki.jenkins.io/pages/viewpage.action?pageId=135468777)
Enables jenkins to use keystore inorder to have native ssl support #17790 <https://wiki.jenkins.io/pages/viewpage.action?pageId=135468777>

## 1.9.5 Enable remoting security

Expand All @@ -323,7 +327,7 @@ Enables jenkins to use keystore inorder to have native ssl support [#17790](http

Google application credentials are kept in a file, which has to be mounted to a pod. You can set `gcpcredentials` in `existingSecret` as follows:

```
```yaml
existingSecret:
jenkins-service-account:
gcpcredentials: application_default_credentials.json
Expand Down Expand Up @@ -472,7 +476,7 @@ JCasC default configuration includes:

Example `values.yaml` which enables JCasC, it's default config and configAutoReload:

```
```yaml
master:
JCasC:
enabled: true
Expand Down Expand Up @@ -742,24 +746,24 @@ commit: 48c58a430
helm chart best practices (#13136)
commit: b02ae3f48

### Breaking changes:
### Breaking changes

- values have been renamed to follow helm chart best practices for naming conventions so
that all variables start with a lowercase letter and words are separated with camelcase
https://helm.sh/docs/chart_best_practices/#naming-conventions
<https://helm.sh/docs/chart_best_practices/#naming-conventions>
- all resources are now using recommended standard labels
https://helm.sh/docs/chart_best_practices/#standard-labels
<https://helm.sh/docs/chart_best_practices/#standard-labels>

As a result of the label changes also the selectors of the deployment have been updated.
Those are immutable so trying an updated will cause an error like:

```
```text
Error: Deployment.apps "jenkins" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"jenkins-master", "app.kubernetes.io/instance":"jenkins"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
```

In order to upgrade, delete the Jenkins Deployment before upgrading:

```
```console
kubectl delete deploy jenkins
```

Expand Down Expand Up @@ -1328,12 +1332,6 @@ commit: e3e617a0b
Merge branch 'master' into jenkins-test-timeout
commit: 9a230a6b1

## 0.8.1

Double retry count for Jenkins test
commit: 129c8e824

## 0.10.1

Jenkins: Update README | Master.ServiceAnnotations (#2757)
commit: 6571810bc
Expand All @@ -1358,8 +1356,6 @@ commit: d044f99be
Review jenkins networkpolicy docs (#2618)
commit: 49911e458

## 0.9.2

Add image pull secrets to jenkins templates (#1389)
commit: 4dfae21fd

Expand All @@ -1368,23 +1364,19 @@ commit: 4dfae21fd
Added persistent volume claim annotations (#2619)
commit: ac9e5306e

## 0.9.1

Fix failing CI lint (#2758)
commit: 26f709f0e

## 0.9.0

#1785 namespace defined templates with chart name (#2140)
namespace defined templates with chart name (#2140)
commit: 408ae0b3f

## 0.8.9

added useSecurity and adminUser to params (#1903)
commit: 39d2a03cd

## 0.8.9

Use storageClassName for jenkins. (#1997)
commit: 802f6449b

Expand All @@ -1393,8 +1385,6 @@ commit: 802f6449b
Remove old plugin locks before installing plugins (#1746)
commit: 6cd7b8ff4

## 0.8.8

promote initContainrs to podspec (#1740)
commit: fecc804fc

Expand Down Expand Up @@ -1428,18 +1418,12 @@ commit: 0dc349b44
Remove path from ingress specification to allow other paths (#1599)
commit: e727f6b32

## 0.8.2

Update git plugin to 3.4.0 for CVE-2017-1000084 (#1505)
commit: 03482f995

## 0.8.1

Use consistent whitespace in template placeholders (#1437)
commit: 912f50c71

## 0.8.1

add configurable service annotations #1234 (#1244)
commit: 286861ca8

Expand Down Expand Up @@ -1558,8 +1542,6 @@ commit: 6fc0ff242
Changed default value of Kubernetes Cloud name to match one in kubernetes plugin (#404)
commit: 68351304a

## 0.1.10

Add support for overriding the Jenkins ConfigMap (#524)
commit: f97ca53b1

Expand All @@ -1573,18 +1555,12 @@ commit: d76a09588
Change description (#553)
commit: 91f5c24e1

## 0.1.8

Removed default Persistence.StorageClass: generic (#530)
commit: c87494c10

## 0.1.8

Update to the recommended pvc patterns. (#448)
commit: a7fc595aa

## 0.1.8

Remove helm.sh/created annotations (#505)
commit: f380da2fb

Expand All @@ -1593,13 +1569,9 @@ commit: f380da2fb
add support for explicit NodePort on jenkins chart (#342)
commit: f63c188da

## 0.1.7

Add configurable loadBalancerSourceRanges for jenkins chart (#360)
commit: 44007c50e

## 0.1.7

Update Jenkins version to current LTS (2.19.4) and Kubernetes Plugin to 0.10 (#341)
commit: 6c8678167

Expand All @@ -1618,18 +1590,12 @@ commit: 4aa9cf5b1
removed `*` from `jenkins/templates/NOTES.txt`
commit: 76212230b

## 0.1.4

apply standard metadata labels to PVC's
commit: 58b730836

## 0.1.4

specify namespace in `kubectl get svc` commands in NOTES.txt
commit: 7d3287e81

## 0.1.4

Update Jenkins version to current LTS (#194)
commit: 2c0404049

Expand All @@ -1638,23 +1604,15 @@ commit: 2c0404049
escape fixed
commit: 2026e1d15

## 0.1.1

.status.loadBalancer.ingress[0].ip is empty in AWS
commit: 1810e37f4

## 0.1.1

.status.loadBalancer.ingress[0].ip is empty in AWS
commit: 3cbd3ced6

## 0.1.1

Remove 'Getting Started:' from various NOTES.txt. (#181)
commit: 2f63fd524

## 0.1.1

docs(\*): update READMEs to reference chart repos (#119)
commit: c7d1bff05

Expand Down
2 changes: 1 addition & 1 deletion charts/jenkins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: jenkins
home: https://jenkins.io/
version: 2.5.2
version: 2.6.0
appVersion: lts
description: Open source continuous integration server. It supports multiple SCM tools
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
Expand Down
Loading