Skip to content

Commit

Permalink
Support LogLevel in chart (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored and the-redback committed Oct 3, 2018
1 parent 5257d0c commit 907a0bf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions chart/kubedb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The following table lists the configurable parameters of the KubeDB chart and th
| `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
| `imagePullPolicy` | Image pull policy | `IfNotPresent` |
| `criticalAddon` | If true, installs KubeDB operator as critical addon | `false` |
| `logLevel` | Log level for operator | `3` |
| `affinity` | Affinity rules for pod assignment | `{}` |
| `annotations` | Annotations applied to operator pod(s) | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion chart/kubedb/templates/apiregistration.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $ca := genCA "svc-cat-ca" 3650 }}
{{- $ca := genCA "ca" 3650 }}
{{- $cn := include "kubedb.fullname" . -}}
{{- $altName1 := printf "%s.%s" $cn .Release.Namespace }}
{{- $altName2 := printf "%s.%s.svc" $cn .Release.Namespace }}
Expand Down
2 changes: 1 addition & 1 deletion chart/kubedb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- run
- --v=3
- --v={{ .Values.logLevel }}
- --governing-service=kubedb
- --rbac={{ .Values.rbac.create }}
- --secure-port=8443
Expand Down
3 changes: 3 additions & 0 deletions chart/kubedb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ imagePullPolicy: IfNotPresent
## https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
criticalAddon: false

## Log level for operator
logLevel: 3

## Annotations passed to operator pod(s).
##
annotations: {}
Expand Down

0 comments on commit 907a0bf

Please sign in to comment.