-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helm: allow configuration of zap flags via helm values (#385)
* pass zap flags via helm values Signed-off-by: Lukas Hoehl <[email protected]> * bump chart Signed-off-by: Lukas Hoehl <[email protected]> * generate helm-docs Signed-off-by: Lukas Hoehl <[email protected]> * update helm docs Signed-off-by: Lukas Hoehl <[email protected]> --------- Signed-off-by: Lukas Hoehl <[email protected]>
- Loading branch information
Showing
6 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# yawol-controller | ||
|
||
![Version: 0.12.0](https://img.shields.io/badge/Version-0.12.0-informational?style=flat-square) ![AppVersion: v0.12.0](https://img.shields.io/badge/AppVersion-v0.12.0-informational?style=flat-square) | ||
![Version: 0.23.1-1](https://img.shields.io/badge/Version-0.23.1--1-informational?style=flat-square) ![AppVersion: v0.23.1](https://img.shields.io/badge/AppVersion-v0.23.1-informational?style=flat-square) | ||
|
||
Helm chart for yawol-controller | ||
|
||
|
@@ -13,6 +13,10 @@ Helm chart for yawol-controller | |
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| featureGates | object | `{}` | | | ||
| logging | object | `{"encoding":"console","level":"info","stacktraceLevel":"error"}` | values are passed as zap-flags to the containers. See https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/log/zap#Options.BindFlags for more information | | ||
| logging.encoding | string | `"console"` | log encoding (one of 'json' or 'console') | | ||
| logging.level | string | `"info"` | Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error' or any integer value > 0 which corresponds to custom debug levels of increasing verbosity | | ||
| logging.stacktraceLevel | string | `"error"` | level at and above which stacktraces are captured (one of 'info', 'error' or 'panic') | | ||
| namespace | string | `"kube-system"` | | | ||
| podAnnotations | object | `{}` | | | ||
| podLabels | object | `{}` | | | ||
|
@@ -39,18 +43,26 @@ Helm chart for yawol-controller | |
| vpa.yawolController.mode | string | `"Auto"` | | | ||
| yawolAPIHost | string | `nil` | | | ||
| yawolAvailabilityZone | string | `""` | | | ||
| yawolCloudController.additionalEnv | object | `{}` | | | ||
| yawolCloudController.clusterRoleEnabled | bool | `true` | | | ||
| yawolCloudController.enabled | bool | `true` | | | ||
| yawolCloudController.gardenerMonitoringEnabled | bool | `false` | | | ||
| yawolCloudController.image.repository | string | `"ghcr.io/stackitcloud/yawol/yawol-cloud-controller"` | | | ||
| yawolCloudController.image.tag | string | `""` | Allows you to override the yawol version in this chart. Use at your own risk. | | ||
| yawolCloudController.service.annotations | object | `{}` | | | ||
| yawolCloudController.service.labels | object | `{}` | | | ||
| yawolCloudController.serviceAccount | object | `{}` | | | ||
| yawolController.errorBackoffBaseDelay | string | `"5ms"` | | | ||
| yawolController.errorBackoffMaxDelay | string | `"1000s"` | | | ||
| yawolController.gardenerMonitoringEnabled | bool | `false` | | | ||
| yawolController.image.repository | string | `"ghcr.io/stackitcloud/yawol/yawol-controller"` | | | ||
| yawolController.image.tag | string | `""` | Allows you to override the yawol version in this chart. Use at your own risk. | | ||
| yawolController.service.annotations | object | `{}` | | | ||
| yawolController.service.labels | object | `{}` | | | ||
| yawolFlavorID | string | `nil` | | | ||
| yawolFloatingID | string | `nil` | | | ||
| yawolImageID | string | `nil` | | | ||
| yawolNetworkID | string | `nil` | | | ||
| yawolSubnetID | string | `nil` | | | ||
| yawolOSSecretName | string | `nil` | | | ||
| yawolSubnetID | string | `nil` | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{{- define "deploymentversion" -}} | ||
apps/v1 | ||
{{- end -}} | ||
|
||
{{- define "logFlags" }} | ||
- -zap-stacktrace-level={{ .Values.logging.stacktraceLevel }} | ||
- -zap-log-level={{ .Values.logging.level }} | ||
- -zap-encoder={{ .Values.logging.encoding }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,16 @@ yawolCloudController: | |
serviceAccount: {} | ||
#imagePullSecret: "registry-credentials" | ||
|
||
# -- values are passed as zap-flags to the containers. See https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/log/zap#Options.BindFlags for more information | ||
logging: | ||
# -- Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error' or any integer value > 0 which corresponds to custom debug levels of increasing verbosity | ||
level: info | ||
# -- log encoding (one of 'json' or 'console') | ||
encoding: console | ||
# -- level at and above which stacktraces are captured (one of 'info', 'error' or 'panic') | ||
stacktraceLevel: error | ||
|
||
|
||
yawolController: | ||
gardenerMonitoringEnabled: false | ||
errorBackoffBaseDelay: 5ms | ||
|