diff --git a/chart/operator/README.md b/chart/operator/README.md index fd7ec4b2..2b645d5f 100644 --- a/chart/operator/README.md +++ b/chart/operator/README.md @@ -12,6 +12,10 @@ The following table lists the configurable parameters of the K8sgpt-operator cha | Parameter | Description | Default | | ------------------------ | ----------------------- | -------------- | +| `interplex.enabled` | | `false` | +| `serviceAccount.create` | | `true` | +| `serviceAccount.name` | | `"k8sgpt"` | +| `serviceAccount.annotations` | | `{}` | | `serviceMonitor.enabled` | | `false` | | `serviceMonitor.additionalLabels` | | `{}` | | `grafanaDashboard.enabled` | | `false` | @@ -40,7 +44,6 @@ The following table lists the configurable parameters of the K8sgpt-operator cha | `kubernetesClusterDomain` | | `"cluster.local"` | | `metricsService.ports` | | `[{"name": "https", "port": 8443, "protocol": "TCP", "targetPort": "https"}]` | | `metricsService.type` | | `"ClusterIP"` | - --- diff --git a/chart/operator/templates/k8sgpt-cluster-role-binding.yaml b/chart/operator/templates/k8sgpt-cluster-role-binding.yaml index a911be8f..e59b6b65 100644 --- a/chart/operator/templates/k8sgpt-cluster-role-binding.yaml +++ b/chart/operator/templates/k8sgpt-cluster-role-binding.yaml @@ -1,3 +1,4 @@ +{{- if .Values.serviceAccount.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: @@ -12,3 +13,4 @@ subjects: - kind: ServiceAccount name: "k8sgpt" namespace: {{ .Release.Namespace }} +{{- end }} diff --git a/chart/operator/templates/k8sgpt-cluster-role.yaml b/chart/operator/templates/k8sgpt-cluster-role.yaml index dec9e729..45dd1181 100644 --- a/chart/operator/templates/k8sgpt-cluster-role.yaml +++ b/chart/operator/templates/k8sgpt-cluster-role.yaml @@ -1,3 +1,4 @@ +{{- if .Values.serviceAccount.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: @@ -21,3 +22,4 @@ rules: - '*' verbs: - '*' +{{- end }} diff --git a/chart/operator/templates/k8sgpt-sa.yaml b/chart/operator/templates/k8sgpt-sa.yaml index 105a4a93..0634c6a9 100644 --- a/chart/operator/templates/k8sgpt-sa.yaml +++ b/chart/operator/templates/k8sgpt-sa.yaml @@ -1,4 +1,4 @@ -{{- if or .Values.serviceAccount.create -}} +{{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: