Skip to content

Commit

Permalink
Change log-level to string-style instead of v-style
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranmeduri committed Feb 18, 2020
1 parent 75dca0f commit 1a329c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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
6 changes: 4 additions & 2 deletions stable/appmesh-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ spec:
{{- if .Values.region }}
- --aws-region={{ .Values.region }}
{{- end }}
{{- if .Values.logging.verbosity }}
- --v={{ .Values.logging.verbosity }}
{{- if eq .Values.log.level "debug" }}
- --v=4
{{- else if eq .Values.log.level "info" }}
- --v=0
{{- end }}
livenessProbe:
exec:
Expand Down
6 changes: 3 additions & 3 deletions stable/appmesh-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ rbac:
# rbac.pspEnabled: `true` if PodSecurityPolicy resources should be created
pspEnabled: false

logging:
#logging.verbosity: <=3 (INFO), >=4 (DEBUG)
verbosity: 0
log:
#log.level: info (default), debug
level: "info"

0 comments on commit 1a329c7

Please sign in to comment.