[stable/kube-state-metrics] Allows deploying ServiceAccount without RBAC (#13495)

Useful for imagePullSecrets

Signed-off-by: Marcos Estevez <marcos.stvz@gmail.com>
This commit is contained in:
Marcos Estévez Martínez
2019-05-09 13:36:47 -07:00
committed by Kubernetes Prow Robot
parent 1b337ca5af
commit 10bed0a007
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ keywords:
- metric
- monitoring
- prometheus
version: 1.3.0
version: 1.4.0
appVersion: 1.6.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
+2 -2
View File
@@ -22,7 +22,7 @@ $ helm install stable/kube-state-metrics
| `hostNetwork` | Whether or not to use the host network | false |
| `prometheusScrape` | Whether or not enable prom scrape | true |
| `rbac.create` | If true, create & use RBAC resources | true |
| `serviceAccount.create` | If true, and rbac true, create & use serviceAccount | true |
| `serviceAccount.create` | If true, create & use serviceAccount | true |
| `serviceAccount.name` | If not set & create is true, use template fullname | |
| `serviceAccount.imagePullSecrets` | Specify image pull secrets field | `[]` |
| `podSecurityPolicy.enabled` | If true, create & use PodSecurityPolicy resources | false |
@@ -32,7 +32,7 @@ $ helm install stable/kube-state-metrics
| `securityContext.runAsUser` | User ID for the container | `65534` |
| `priorityClassName` | Name of Priority Class to assign pods | `nil` |
| `nodeSelector` | Node labels for pod assignment | {} |
| `tolerations` | Tolerations for pod assignment | [] |
| `tolerations` | Tolerations for pod assignment | [] |
| `podAnnotations` | Annotations to be added to the pod | {} |
| `resources` | kube-state-metrics resource requests and limits | {} |
| `collectors.certificatesigningrequests` | Enable the certificatesigningrequests collector. | true |
@@ -1,4 +1,3 @@
{{- if .Values.rbac.create -}}
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
@@ -12,4 +11,3 @@ metadata:
imagePullSecrets:
{{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
{{- end -}}
{{- end -}}