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

add webhook to check mysqlConfTemplate value is exists or not #722

Closed
qianfen2021 opened this issue Oct 26, 2022 · 0 comments · Fixed by #724
Closed

add webhook to check mysqlConfTemplate value is exists or not #722

qianfen2021 opened this issue Oct 26, 2022 · 0 comments · Fixed by #724
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@qianfen2021
Copy link

Is your feature request related to a problem? Please describe.

in cr file,write not exists mysqlConfTemplate value,the operator container has error,the error info as follows:

.6667743784840565e+09	ERROR	MySQLCMSyncer	unchanged	{"key": "default/radondb-mysql57", "kind": "/v1, Kind=ConfigMap", "error": "template is not exist: radondb-mysql57"}

 github.com/radondb/radondb-mysql-kubernetes/mysqlcluster/syncer.Sync

 	/workspace/mysqlcluster/syncer/objectSyncer.go:253

 github.com/radondb/radondb-mysql-kubernetes/controllers.(*MysqlClusterReconciler).Reconcile

 	/workspace/controllers/mysqlcluster_controller.go:119

 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile

 	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:114

 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler

 	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:311

 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem

 	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266

 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2

 	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227

 1.6667743784842253e+09	ERROR	controller.mysqlcluster	Reconciler error	{"reconciler group": "mysql.radondb.com", "reconciler kind": "MysqlCluster", "name": "sample", "namespace": "default", "error": "template is not exist: radondb-mysql57"}

 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem

 	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266

 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2

 	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227

Describe the solution you'd like
add webhook to check mysqlConfTemplate value is exists or not

Describe alternatives you've considered

Additional context

@qianfen2021 qianfen2021 added the enhancement New feature or request label Oct 26, 2022
@qianfen2021 qianfen2021 added this to the v2.3.0 milestone Oct 26, 2022
acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Oct 28, 2022
acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants