Skip to content

Commit

Permalink
Merge pull request #69 from kiranmeduri/ctrl_log_level
Browse files Browse the repository at this point in the history
Allow users to set log verbosity (level) for appmesh-controller
  • Loading branch information
nckturner committed Feb 25, 2020
2 parents 2b53f1c + 1a329c7 commit 3515065
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/appmesh-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Parameter | Description | Default
`image.repository` | image repository | ` 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/app-mesh-controller`
`image.tag` | image tag | `<VERSION>`
`image.pullPolicy` | image pull policy | `IfNotPresent`
`log.level` | controller log level, possible values are `info` and `debug` | `info`
`resources.requests/cpu` | pod CPU request | `100m`
`resources.requests/memory` | pod memory request | `64Mi`
`resources.limits/cpu` | pod CPU limit | `2000m`
Expand Down
5 changes: 5 additions & 0 deletions stable/appmesh-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ spec:
{{- if .Values.region }}
- --aws-region={{ .Values.region }}
{{- end }}
{{- if eq .Values.log.level "debug" }}
- --v=4
{{- else if eq .Values.log.level "info" }}
- --v=0
{{- end }}
livenessProbe:
exec:
command:
Expand Down
4 changes: 4 additions & 0 deletions stable/appmesh-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ rbac:
create: true
# rbac.pspEnabled: `true` if PodSecurityPolicy resources should be created
pspEnabled: false

log:
#log.level: info (default), debug
level: "info"

0 comments on commit 3515065

Please sign in to comment.