Skip to content

Commit

Permalink
NOTIC: Add rights to manage daemonsets
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjjke committed Dec 16, 2024
1 parent dc1be9d commit bf4fc2d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ rules:
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- statefulsets
verbs:
Expand Down
1 change: 1 addition & 0 deletions helm/soperator/templates/manager-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ rules:
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- statefulsets
verbs:
Expand Down
1 change: 1 addition & 0 deletions internal/controller/clustercontroller/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import (
//+kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;list;watch;update;patch;delete;create
//+kubebuilder:rbac:groups=k8s.mariadb.com,resources=mariadbs,verbs=get;list;watch;update;patch;delete;create
//+kubebuilder:rbac:groups=k8s.mariadb.com,resources=grants,verbs=get;list;watch;update;patch;delete;create
//+kubebuilder:rbac:groups=apps,resources=daemonsets,verbs=get;list;watch;update;patch;delete;create

// SlurmClusterReconciler reconciles a SlurmCluster object
type SlurmClusterReconciler struct {
Expand Down
1 change: 0 additions & 1 deletion internal/render/common/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ func RenderConfigMapSecurityLimits(componentType consts.ComponentType, cluster *

func generateUnlimitedSecurityLimitsConfig() renderutils.ConfigFile {
res := &renderutils.MultilineStringConfig{}
res.AddLine("#Empty security limits file")
res.AddLine("# Set core file size to unlimited (-c)")
res.AddLine("* soft core unlimited")
res.AddLine("* hard core unlimited")
Expand Down

0 comments on commit bf4fc2d

Please sign in to comment.