Skip to content

Commit 3740fe5

Browse files
committed
Rename CRD group
1 parent 204b8b8 commit 3740fe5

File tree

155 files changed

+47523
-446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+47523
-446
lines changed

api/v1alpha1/backup_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (r *Backup) SetupWebhookWithManager(mgr ctrl.Manager) error {
1717
}
1818

1919
//nolint
20-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-backup,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=backups,verbs=create;update,versions=v1alpha1,name=vbackup.kb.io,admissionReviewVersions=v1
20+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-backup,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=backups,verbs=create;update,versions=v1alpha1,name=vbackup.kb.io,admissionReviewVersions=v1
2121

2222
var _ webhook.Validator = &Backup{}
2323

api/v1alpha1/connection_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (r *Connection) SetupWebhookWithManager(mgr ctrl.Manager) error {
1919
}
2020

2121
//nolint
22-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-connection,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=connections,verbs=create;update,versions=v1alpha1,name=vconnection.kb.io,admissionReviewVersions=v1
22+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-connection,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=connections,verbs=create;update,versions=v1alpha1,name=vconnection.kb.io,admissionReviewVersions=v1
2323

2424
var _ webhook.Validator = &Connection{}
2525

api/v1alpha1/database_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (r *Database) SetupWebhookWithManager(mgr ctrl.Manager) error {
1414
}
1515

1616
//nolint
17-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-database,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=databases,verbs=create;update,versions=v1alpha1,name=vdatabase.kb.io,admissionReviewVersions=v1
17+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-database,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=databases,verbs=create;update,versions=v1alpha1,name=vdatabase.kb.io,admissionReviewVersions=v1
1818

1919
var _ webhook.Validator = &Database{}
2020

api/v1alpha1/grant_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (r *Grant) SetupWebhookWithManager(mgr ctrl.Manager) error {
1414
}
1515

1616
//nolint
17-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-grant,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=grants,verbs=create;update,versions=v1alpha1,name=vgrant.kb.io,admissionReviewVersions=v1
17+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-grant,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=grants,verbs=create;update,versions=v1alpha1,name=vgrant.kb.io,admissionReviewVersions=v1
1818

1919
var _ webhook.Validator = &Grant{}
2020

api/v1alpha1/groupversion_info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Package v1alpha1 contains API Schema definitions for the v1alpha1 API group
22
// +kubebuilder:object:generate=true
3-
// +groupName=mariadb.mmontes.io
3+
// +groupName=k8s.mariadb.com
44
package v1alpha1
55

66
import (
@@ -10,7 +10,7 @@ import (
1010

1111
var (
1212
// GroupVersion is group version used to register these objects
13-
GroupVersion = schema.GroupVersion{Group: "mariadb.mmontes.io", Version: "v1alpha1"}
13+
GroupVersion = schema.GroupVersion{Group: "k8s.mariadb.com", Version: "v1alpha1"}
1414

1515
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
1616
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

api/v1alpha1/mariadb_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (r *MariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error {
2121
Complete()
2222
}
2323

24-
//+kubebuilder:webhook:path=/mutate-mariadb-mmontes-io-v1alpha1-mariadb,mutating=true,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=mariadbs,verbs=create;update,versions=v1alpha1,name=mmariadb.kb.io,admissionReviewVersions=v1
24+
//+kubebuilder:webhook:path=/mutate-mariadb-mmontes-io-v1alpha1-mariadb,mutating=true,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=mariadbs,verbs=create;update,versions=v1alpha1,name=mmariadb.kb.io,admissionReviewVersions=v1
2525

2626
var _ webhook.Defaulter = &MariaDB{}
2727

@@ -34,7 +34,7 @@ func (r *MariaDB) Default() {
3434
}
3535
}
3636

37-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-mariadb,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=mariadbs,verbs=create;update,versions=v1alpha1,name=vmariadb.kb.io,admissionReviewVersions=v1
37+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-mariadb,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=mariadbs,verbs=create;update,versions=v1alpha1,name=vmariadb.kb.io,admissionReviewVersions=v1
3838

3939
var _ webhook.Validator = &MariaDB{}
4040

api/v1alpha1/maxscale_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (r *MaxScale) SetupWebhookWithManager(mgr ctrl.Manager) error {
1818
Complete()
1919
}
2020

21-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-maxscale,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=maxscales,verbs=create;update,versions=v1alpha1,name=vmaxscale.kb.io,admissionReviewVersions=v1
21+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-maxscale,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=maxscales,verbs=create;update,versions=v1alpha1,name=vmaxscale.kb.io,admissionReviewVersions=v1
2222

2323
var _ webhook.Validator = &MaxScale{}
2424

api/v1alpha1/restore_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func (r *Restore) SetupWebhookWithManager(mgr ctrl.Manager) error {
1616
}
1717

1818
//nolint
19-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-restore,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=restores,verbs=create;update,versions=v1alpha1,name=vrestore.kb.io,admissionReviewVersions=v1
19+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-restore,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=restores,verbs=create;update,versions=v1alpha1,name=vrestore.kb.io,admissionReviewVersions=v1
2020

2121
var _ webhook.Validator = &Restore{}
2222

api/v1alpha1/sqljob_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (r *SqlJob) SetupWebhookWithManager(mgr ctrl.Manager) error {
1717
}
1818

1919
//nolint
20-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-sqljob,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=sqljobs,verbs=create;update,versions=v1alpha1,name=vsqljob.kb.io,admissionReviewVersions=v1
20+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-sqljob,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=sqljobs,verbs=create;update,versions=v1alpha1,name=vsqljob.kb.io,admissionReviewVersions=v1
2121

2222
var _ webhook.Validator = &SqlJob{}
2323

api/v1alpha1/user_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (r *User) SetupWebhookWithManager(mgr ctrl.Manager) error {
1414
}
1515

1616
//nolint
17-
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-user,mutating=false,failurePolicy=fail,sideEffects=None,groups=mariadb.mmontes.io,resources=users,verbs=create;update,versions=v1alpha1,name=vuser.kb.io,admissionReviewVersions=v1
17+
//+kubebuilder:webhook:path=/validate-mariadb-mmontes-io-v1alpha1-user,mutating=false,failurePolicy=fail,sideEffects=None,groups=k8s.mariadb.com,resources=users,verbs=create;update,versions=v1alpha1,name=vuser.kb.io,admissionReviewVersions=v1
1818

1919
var _ webhook.Validator = &User{}
2020

0 commit comments

Comments
 (0)