Skip to content

Commit

Permalink
fix RBAC: add patch verb to ConfigMap resource for status-updater and…
Browse files Browse the repository at this point in the history
… SSA attributes for updating status (#94)

* Add patch verb to ConfigMap resource

* Specify FieldManager for Server-Side-Apply changes of configmap

---------

Co-authored-by: Piotr Godowski <Piotr.Godowski@pl.ibm.com>
  • Loading branch information
pgodowski and Piotr Godowski authored Nov 4, 2024
1 parent 9a4d75e commit d72a73a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rules:
verbs:
- get
- update
- patch
- create
- list
- delete
Expand Down
2 changes: 1 addition & 1 deletion internal/common/topology/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func UpdateNodeTopologyCM(kubeclient kubernetes.Interface, nodeTopology *NodeTop
}

_, err = kubeclient.CoreV1().ConfigMaps(
viper.GetString(constants.EnvTopologyCmNamespace)).Apply(context.TODO(), cm, metav1.ApplyOptions{})
viper.GetString(constants.EnvTopologyCmNamespace)).Apply(context.TODO(), cm, metav1.ApplyOptions{FieldManager: "fake-gpu-operator", Force: true})
return err
}

Expand Down

0 comments on commit d72a73a

Please sign in to comment.