Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientProfile reconcile #48

Merged
merged 4 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/v1alpha1/cephconnection_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type CephConnectionSpec struct {
Monitors []string `json:"monitors"`

//+kubebuilder:validation:Optional
ReadAffinity ReadAffinitySpec `json:"readAffinity,omitempty"`
ReadAffinity *ReadAffinitySpec `json:"readAffinity,omitempty"`

//+kubebuilder:validation:Optional
//+kubebuilder:validation:Minimum:=1
Expand Down
6 changes: 5 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ func main() {
setupLog.Error(err, "unable to create controller", "controller", "Driver")
os.Exit(1)
}
if err = (&controller.ConfigReconciler{
if err = (&controller.ClientProfileReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "Config")
setupLog.Error(err, "unable to create controller", "controller", "ClientProfile")
os.Exit(1)
}
if err = (&controller.ClientProfileMappingReconciler{
Expand Down
20 changes: 17 additions & 3 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ rules:
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -47,6 +52,15 @@ rules:
- patch
- update
- watch
- apiGroups:
- csi.ceph.io
resources:
- cephconnections
verbs:
- get
- list
- update
- watch
- apiGroups:
- csi.ceph.io
resources:
Expand Down Expand Up @@ -76,7 +90,7 @@ rules:
- apiGroups:
- csi.ceph.io
resources:
- configs
- clientprofiles
verbs:
- create
- delete
Expand All @@ -88,13 +102,13 @@ rules:
- apiGroups:
- csi.ceph.io
resources:
- configs/finalizers
- clientprofiles/finalizers
verbs:
- update
- apiGroups:
- csi.ceph.io
resources:
- configs/status
- clientprofiles/status
verbs:
- get
- patch
Expand Down
Loading
Loading