Skip to content

Commit

Permalink
rename SA and Role from rebooter ot node-configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
Uburro committed Feb 5, 2025
1 parent 3e761f4 commit 1ef329e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ help: ## Display this help.
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) crd webhook paths=$(GENPATH) output:crd:artifacts:config=config/crd/bases
$(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/controller/clustercontroller/..." output:artifacts:config=config/rbac/clustercontroller/
$(CONTROLLER_GEN) rbac:roleName=rebooter-role paths="./internal/rebooter/..." output:artifacts:config=config/rbac/rebooter/
$(CONTROLLER_GEN) rbac:roleName=node-configurator-role paths="./internal/rebooter/..." output:artifacts:config=config/rbac/node-configurator/
.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object paths=$(GENPATH)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: rebooter-role
name: node-configurator-role
rules:
- apiGroups:
- ""
Expand Down
8 changes: 4 additions & 4 deletions config/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: clusterrolebinding
app.kubernetes.io/instance: rebooter-rolebinding
app.kubernetes.io/instance: node-configurator-rolebinding
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: slurm-operator
app.kubernetes.io/part-of: slurm-operator
app.kubernetes.io/managed-by: kustomize
name: rebooter-rolebinding
name: node-configurator-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: rebooter-role
name: node-configurator-role
subjects:
- kind: ServiceAccount
name: rebooter
name: node-configurator
namespace: system
2 changes: 1 addition & 1 deletion config/rbac/soperator-helm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resources:
- ../clustercontroller/role.yaml
- ../rebooter/role.yaml
- ../node-configurator/role.yaml
4 changes: 2 additions & 2 deletions helm/soperator/templates/binding-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: '{{ include "soperator.fullname" . }}-rebooter-role'
name: '{{ include "soperator.fullname" . }}-node-configurator-role'
subjects:
- kind: ServiceAccount
name: '{{ include "soperator.fullname" . }}-controller-rebooter'
name: '{{ include "soperator.fullname" . }}-controller-node-configurator'
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "soperator.fullname" . }}-rebooter-role
name: {{ include "soperator.fullname" . }}-node-configurator-role
labels:
{{- include "soperator.labels" . | nindent 4 }}
rules:
Expand Down
2 changes: 1 addition & 1 deletion helm/soperator/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "soperator.fullname" . }}-controller-rebooter
name: {{ include "soperator.fullname" . }}-controller-node-configurator
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: slurm-operator
Expand Down

0 comments on commit 1ef329e

Please sign in to comment.