|
| 1 | +apiVersion: v1 |
| 2 | +data: |
| 3 | + _example: | |
| 4 | + ################################ |
| 5 | + # # |
| 6 | + # EXAMPLE CONFIGURATION # |
| 7 | + # # |
| 8 | + ################################ |
| 9 | +
|
| 10 | + # This block is not actually functional configuration, |
| 11 | + # but serves to illustrate the available configuration |
| 12 | + # options and document them in a way that is accessible |
| 13 | + # to users that `kubectl edit` this config map. |
| 14 | + # |
| 15 | + # These sample configuration options may be copied out of |
| 16 | + # this example block and unindented to be in the data block |
| 17 | + # to actually change the configuration. |
| 18 | +
|
| 19 | + # Common configuration for all Knative codebase |
| 20 | + zap-logger-config: | |
| 21 | + { |
| 22 | + "level": "info", |
| 23 | + "development": false, |
| 24 | + "outputPaths": ["stdout"], |
| 25 | + "errorOutputPaths": ["stderr"], |
| 26 | + "encoding": "json", |
| 27 | + "encoderConfig": { |
| 28 | + "timeKey": "ts", |
| 29 | + "levelKey": "level", |
| 30 | + "nameKey": "logger", |
| 31 | + "callerKey": "caller", |
| 32 | + "messageKey": "msg", |
| 33 | + "stacktraceKey": "stacktrace", |
| 34 | + "lineEnding": "", |
| 35 | + "levelEncoder": "", |
| 36 | + "timeEncoder": "iso8601", |
| 37 | + "durationEncoder": "", |
| 38 | + "callerEncoder": "" |
| 39 | + } |
| 40 | + } |
| 41 | + loglevel.tekton-operator-cluster-operations: info |
| 42 | + loglevel.tekton-operator-lifecycle: info |
| 43 | + loglevel.tekton-operator-webhook: info |
| 44 | + zap-logger-config: | |
| 45 | + { |
| 46 | + "level": "info", |
| 47 | + "development": false, |
| 48 | + "sampling": { |
| 49 | + "initial": 100, |
| 50 | + "thereafter": 100 |
| 51 | + }, |
| 52 | + "outputPaths": ["stdout"], |
| 53 | + "errorOutputPaths": ["stderr"], |
| 54 | + "encoding": "json", |
| 55 | + "encoderConfig": { |
| 56 | + "timeKey": "timestamp", |
| 57 | + "levelKey": "level", |
| 58 | + "nameKey": "logger", |
| 59 | + "callerKey": "caller", |
| 60 | + "messageKey": "msg", |
| 61 | + "stacktraceKey": "stacktrace", |
| 62 | + "lineEnding": "", |
| 63 | + "levelEncoder": "", |
| 64 | + "timeEncoder": "iso8601", |
| 65 | + "durationEncoder": "", |
| 66 | + "callerEncoder": "" |
| 67 | + } |
| 68 | + } |
| 69 | +kind: ConfigMap |
| 70 | +metadata: |
| 71 | + labels: |
| 72 | + operator.tekton.dev/release: devel |
| 73 | + name: config-logging |
0 commit comments