Skip to content

Commit 0d9e75d

Browse files
authored
Feat/harness ccm autostopping/logging (#3)
* autostopping: add log levels for troubleshooting * bump controller and chart version
1 parent d3b6609 commit 0d9e75d

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Makefile

charts/harness-ccm-autostopping/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.2
18+
version: 0.1.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.1.9"
24+
appVersion: "1.2.1"

charts/harness-ccm-autostopping/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ helm upgrade -i harness-autostopping --namespace harness-autostopping --create-n
2828
- connectorId: the ID for the CCM K8s connector for this cluster
2929
- apiToken: a Harness API key with at least ccm:admin for all account level resources
3030

31+
## troubleshooting
32+
33+
to turn on debug logging, you can set the following values:
34+
```yaml
35+
router.logLevel: debug
36+
```
37+
3138
## development notes
3239
3340
things that must be hard-coded:

charts/harness-ccm-autostopping/templates/router-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ spec:
3636
args:
3737
- -c
3838
- /etc/envoy.yaml
39+
- --log-level
40+
- {{ .Values.router.logLevel }}
3941
ports:
4042
- containerPort: 10000
4143
protocol: TCP

charts/harness-ccm-autostopping/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ router:
6464
pullPolicy: IfNotPresent
6565
tag: v1.18-latest
6666

67+
# set log via ENVOY_LOG_LEVEL: trace, debug, info, warning/warn, error, critical, off
68+
logLevel: warning
69+
6770
podAnnotations: {}
6871

6972
podSecurityContext: {}

0 commit comments

Comments
 (0)