mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Make AuthorizationStrategy configurable (#9567)
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
This commit is contained in:
committed by
k8s-ci-robot
parent
4f1bedfae9
commit
06545b2266
@@ -1,6 +1,6 @@
|
||||
name: jenkins
|
||||
home: https://jenkins.io/
|
||||
version: 0.23.0
|
||||
version: 0.24.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
|
||||
|
||||
@@ -38,6 +38,7 @@ The following tables list the configurable parameters of the Jenkins chart and t
|
||||
| `Master.Component` | k8s selector key | `jenkins-master` |
|
||||
| `Master.UseSecurity` | Use basic security | `true` |
|
||||
| `Master.SecurityRealm` | Custom Security Realm | Not set |
|
||||
| `Master.AuthorizationStrategy` | Jenkins XML job config for AuthorizationStrategy | Not set |
|
||||
| `Master.ServiceLabels` | Custom Service labels | Not set |
|
||||
| `Master.AdminUser` | Admin username (and password) created as a secret if useSecurity is true | `admin` |
|
||||
| `Master.AdminPassword` | Admin password (and user) created as a secret if useSecurity is true | Random value |
|
||||
|
||||
@@ -13,9 +13,13 @@ data:
|
||||
<numExecutors>0</numExecutors>
|
||||
<mode>NORMAL</mode>
|
||||
<useSecurity>{{ .Values.Master.UseSecurity }}</useSecurity>
|
||||
{{- if not (empty .Values.Master.AuthorizationStrategy ) }}
|
||||
{{ .Values.Master.AuthorizationStrategy | indent 6 }}
|
||||
{{- else }}
|
||||
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
|
||||
<denyAnonymousReadAccess>true</denyAnonymousReadAccess>
|
||||
</authorizationStrategy>
|
||||
{{- end }}
|
||||
{{- if .Values.Master.SecurityRealm }}
|
||||
{{ .Values.Master.SecurityRealm | indent 6 }}
|
||||
{{- else }}
|
||||
|
||||
@@ -16,7 +16,12 @@ Master:
|
||||
# ImagePullSecret: jenkins
|
||||
Component: "jenkins-master"
|
||||
UseSecurity: true
|
||||
# SecurityRealm
|
||||
# SecurityRealm:
|
||||
# Optionally configure a different AuthorizationStrategy using Jenkins XML
|
||||
# AuthorizationStrategy: |-
|
||||
# <authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
|
||||
# <denyAnonymousReadAccess>true</denyAnonymousReadAccess>
|
||||
# </authorizationStrategy>
|
||||
HostNetworking: false
|
||||
AdminUser: admin
|
||||
# AdminPassword: <defaults to random>
|
||||
|
||||
Reference in New Issue
Block a user