Skip to content

Commit

Permalink
remove manually managed rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
cjc7373 committed Nov 29, 2024
1 parent 17a4490 commit fc22eaf
Show file tree
Hide file tree
Showing 42 changed files with 1 addition and 165 deletions.
1 change: 0 additions & 1 deletion addons-cluster/apecloud-mysql/templates/rbac.yaml

This file was deleted.

1 change: 0 additions & 1 deletion addons-cluster/apecloud-mysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ proxy:
## customized default values to override kblib chart's values
extra:
disableExporter: true
rbacEnabled: true
terminationPolicy: Delete


Expand Down
1 change: 0 additions & 1 deletion addons-cluster/apecloud-postgresql/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ spec:
serviceVersion: {{ .Values.version }}
{{- include "kblib.componentMonitor" . | indent 6 }}
replicas: {{ include "apecloud-postgresql-cluster.replicas" . }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
1 change: 0 additions & 1 deletion addons-cluster/apecloud-postgresql/templates/rbac.yaml

This file was deleted.

1 change: 0 additions & 1 deletion addons-cluster/clickhouse/templates/rbac.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions addons-cluster/clickhouse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,3 @@ extra:
## Define Cluster termination policy.
## Options: DoNotTerminate, Halt, Delete, WipeOut.
terminationPolicy: DoNotTerminate

## If true, RBAC resources will be created
rbacEnabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ spec:
- name: mdit
componentDef: elasticsearch-{{ include "elasticsearch.majorVersion" . }}
serviceVersion: {{ include "elasticsearch.version" . }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "elasticsearch-cluster.schedulingPolicy" . | indent 6 }}
{{- include "elasticsearch-cluster.replicaCount" . | indent 6 }}
{{- include "kblib.componentMonitor" . | indent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ spec:
- name: mdit
componentDef: elasticsearch-{{ include "elasticsearch.majorVersion" . }}
serviceVersion: {{ include "elasticsearch.version" . }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "elasticsearch-cluster.schedulingPolicy" . | indent 6 }}
{{- include "elasticsearch-cluster.replicaCount" . | indent 6 }}
{{- include "kblib.componentMonitor" . | indent 6 }}
Expand Down
1 change: 0 additions & 1 deletion addons-cluster/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ fullnameOverride: ""
## customized default values to override kblib chart's values
extra:
terminationPolicy: Delete
rbacEnabled: false
disableExporter: false
3 changes: 0 additions & 3 deletions addons-cluster/kafka/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ spec:
name: KubeBlocks
{{- end }}
replicas: {{ $.Values.replicas }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
services:
- name: advertised-listener
{{- if $.Values.nodePortEnabled }}
Expand Down Expand Up @@ -83,7 +82,6 @@ spec:
name: KubeBlocks
{{- end }}
replicas: {{ $.Values.brokerReplicas }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
services:
- name: advertised-listener
{{- if $.Values.nodePortEnabled }}
Expand Down Expand Up @@ -129,7 +127,6 @@ spec:
name: KubeBlocks
{{- end }}
replicas: {{ $.Values.controllerReplicas }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentResources" . | indent 6 }}
{{- if $.Values.storageEnable }}
volumeClaimTemplates:
Expand Down
1 change: 0 additions & 1 deletion addons-cluster/kafka/templates/rbac.yaml

This file was deleted.

71 changes: 0 additions & 71 deletions addons-cluster/kblib/templates/_rbac.tpl

This file was deleted.

6 changes: 0 additions & 6 deletions addons-cluster/kblib/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
"Delete",
"WipeOut"
]
},
"rbacEnabled": {
"title": "RBAC Enabled",
"description": "Specify whether rbac resources will be created by client, otherwise KubeBlocks server will try to create rbac resources.",
"type": "boolean",
"default": false
}
}
}
5 changes: 0 additions & 5 deletions addons-cluster/kblib/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ disableExporter: true

## @param terminationPolicy
terminationPolicy: Delete

## @param rbacEnabled
## Specify whether rbac resources will be created by client,
## otherwise KubeBlocks server will try to create rbac resources.
rbacEnabled: false
1 change: 0 additions & 1 deletion addons-cluster/mariadb/templates/rbac.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions addons-cluster/milvus/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
{{- include "milvus.serviceRef.meta" . | indent 8 }}
{{- include "milvus.serviceRef.log" . | indent 8 }}
{{- include "milvus.serviceRef.object" . | indent 8 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
{{- end }}
- name: mixcoord
Expand All @@ -28,7 +27,6 @@ spec:
{{- include "milvus.serviceRef.meta" . | indent 8 }}
{{- include "milvus.serviceRef.log" . | indent 8 }}
{{- include "milvus.serviceRef.object" . | indent 8 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
- name: datanode
replicas: {{ .Values.datanode.replicas}}
Expand All @@ -38,7 +36,6 @@ spec:
{{- include "milvus.serviceRef.meta" . | indent 8 }}
{{- include "milvus.serviceRef.log" . | indent 8 }}
{{- include "milvus.serviceRef.object" . | indent 8 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
- name: indexnode
replicas: {{ .Values.indexnode.replicas}}
Expand All @@ -48,7 +45,6 @@ spec:
{{- include "milvus.serviceRef.meta" . | indent 8 }}
{{- include "milvus.serviceRef.log" . | indent 8 }}
{{- include "milvus.serviceRef.object" . | indent 8 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
- name: querynode
replicas: {{ .Values.querynode.replicas}}
Expand All @@ -58,6 +54,5 @@ spec:
{{- include "milvus.serviceRef.meta" . | indent 8 }}
{{- include "milvus.serviceRef.log" . | indent 8 }}
{{- include "milvus.serviceRef.object" . | indent 8 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
{{- end }}
3 changes: 0 additions & 3 deletions addons-cluster/milvus/templates/standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
volumeClaimTemplates:
{{- include "milvus.vct.data" . | indent 8 }}
{{- end }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
- name: minio
replicas: {{ .Values.replicas | default 1 }}
Expand All @@ -26,7 +25,6 @@ spec:
volumeClaimTemplates:
{{- include "milvus.vct.data" . | indent 8 }}
{{- end }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
- name: milvus
replicas: {{ .Values.replicas | default 1 }}
Expand All @@ -35,6 +33,5 @@ spec:
volumeClaimTemplates:
{{- include "milvus.vct.data" . | indent 8 }}
{{- end }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
{{- end }}
1 change: 0 additions & 1 deletion addons-cluster/minio/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ spec:
env:
- name: MINIO_BUCKETS
value: {{ .Values.buckets }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
{{- include "kblib.componentResources" . | indent 6 }}
{{- include "kblib.componentStorages" . | indent 6 }}
1 change: 0 additions & 1 deletion addons-cluster/mogdb/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ spec:
serviceVersion: {{ .Values.version | quote}}
{{- include "kblib.componentMonitor" . | indent 6 }}
{{- include "mogdb-cluster.replicaCount" . | indent 6 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentResources" . | indent 6 }}
{{- include "kblib.componentStorages" . | indent 6 }}
29 changes: 0 additions & 29 deletions addons-cluster/mogdb/templates/rbac.yaml

This file was deleted.

1 change: 0 additions & 1 deletion addons-cluster/mongodb/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ spec:
- name: mongodb
serviceVersion: {{ .Values.version }}
{{- include "mongodb-cluster.replicaCount" . | indent 6 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentResources" . | indent 6 }}
{{- include "kblib.componentStorages" . | indent 6 }}
1 change: 0 additions & 1 deletion addons-cluster/mongodb/templates/rbac.yaml

This file was deleted.

4 changes: 1 addition & 3 deletions addons-cluster/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@ storage: 20

hostnetwork: "enabled"

## @param extra.rbacEnabled if true, create rbac
extra:
rbacEnabled: false
terminationPolicy: Delete
terminationPolicy: Delete
2 changes: 0 additions & 2 deletions addons-cluster/mysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ proxysql:
cpu: 1
memory: 1

## @param extra.rbacEnabled if true, create rbac
extra:
rbacEnabled: false
terminationPolicy: Delete

orchestrator:
Expand Down
1 change: 0 additions & 1 deletion addons-cluster/orioledb/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
namespace: {{ .Values.etcd.namespace | default "default" }}
{{- include "kblib.componentMonitor" . | indent 6 }}
{{- include "orioledb-cluster.replicaCount" . | indent 6 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentResources" . | indent 6 }}
{{- include "kblib.componentStorages" . | indent 6 }}
1 change: 0 additions & 1 deletion addons-cluster/orioledb/templates/rbac.yaml

This file was deleted.

1 change: 0 additions & 1 deletion addons-cluster/qdrant/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ spec:
- name: qdrant
componentDef: qdrant
serviceVersion: {{ include "qdrant.version" . }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentMonitor" . | indent 6 }}
replicas: {{ .Values.replicas | default 1 }}
{{- include "kblib.componentResources" . | indent 6 }}
Expand Down
1 change: 0 additions & 1 deletion addons-cluster/qdrant/templates/rbac.yaml

This file was deleted.

1 change: 0 additions & 1 deletion addons-cluster/qdrant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ storage: 20
## customized default values to override kblib chart's values
extra:
terminationPolicy: Delete
rbacEnabled: false
1 change: 0 additions & 1 deletion addons-cluster/rabbitmq/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ spec:
componentDef: rabbitmq
serviceVersion: {{ .Values.version }}
{{- include "rabbitmq-cluster.replicaCount" . | indent 6 }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentResources" . | indent 6 }}
{{- include "kblib.componentStorages" . | indent 6 }}
1 change: 0 additions & 1 deletion addons-cluster/rabbitmq/templates/rbac.yaml

This file was deleted.

1 change: 0 additions & 1 deletion addons-cluster/rabbitmq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ requests:
storage: 20

extra:
rbacEnabled: false
terminationPolicy: Delete
3 changes: 0 additions & 3 deletions addons-cluster/redis/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Define redis ComponentSpec with ComponentDefinition.
env:
- name: CUSTOM_SENTINEL_MASTER_NAME
value: {{ .Values.sentinel.customMasterName | default "" }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
{{- include "kblib.componentResources" . | indent 2 }}
{{- include "kblib.componentStorages" . | indent 2 }}
{{- end }}
Expand All @@ -73,7 +72,6 @@ Define redis sentinel ComponentSpec with ComponentDefinition.
serviceType: NodePort
podService: true
{{- end }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
resources:
limits:
cpu: {{ .Values.sentinel.cpu | quote }}
Expand All @@ -96,7 +94,6 @@ Define redis twemproxy ComponentSpec with ComponentDefinition.
*/}}
{{- define "redis-cluster.twemproxyComponentSpec" }}
- name: redis-twemproxy
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
replicas: {{ .Values.twemproxy.replicas }}
resources:
limits:
Expand Down
1 change: 0 additions & 1 deletion addons-cluster/redis/templates/rbac.yaml

This file was deleted.

1 change: 0 additions & 1 deletion addons-cluster/redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ redisCluster:
shardCount: 3

extra:
rbacEnabled: false

prometheus:
enabled: false
Loading

0 comments on commit fc22eaf

Please sign in to comment.