diff --git a/charts/kubelet-csr-approver/templates/deployment.yaml b/charts/kubelet-csr-approver/templates/deployment.yaml index e817cc4..9860d84 100644 --- a/charts/kubelet-csr-approver/templates/deployment.yaml +++ b/charts/kubelet-csr-approver/templates/deployment.yaml @@ -39,6 +39,10 @@ spec: - ":{{ .Values.metrics.port }}" - -health-probe-bind-address - ":8081" + {{- if .Values.loggingLevel }} + - -level + - {{ .Values.loggingLevel | quote }} + {{- end }} env: {{- if .Values.providerRegex }} - name: PROVIDER_REGEX diff --git a/charts/kubelet-csr-approver/values.yaml b/charts/kubelet-csr-approver/values.yaml index f9e45f7..0e0a79e 100644 --- a/charts/kubelet-csr-approver/values.yaml +++ b/charts/kubelet-csr-approver/values.yaml @@ -9,6 +9,9 @@ providerIpPrefixes: [] # - 192.168.8.0/22 # - fc00::/7 +# logging level ranges from -5 (Fatal) to 10 (Verbose). default level is 0 +loggingLevel: 0 + namespace: "" image: