@@ -27,6 +27,7 @@ import (
2727 "k8s.io/apimachinery/pkg/types"
2828
2929 api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
30+ "github.com/arangodb/kube-arangodb/pkg/util/k8sutil/inspector/constants"
3031)
3132
3233type arangoClusterSynchronizationsInspectorAnonymousV1 struct {
@@ -39,23 +40,23 @@ func (e *arangoClusterSynchronizationsInspectorAnonymousV1) Get(ctx context.Cont
3940
4041func (e * arangoClusterSynchronizationsInspectorAnonymousV1 ) Create (ctx context.Context , obj meta.Object , opts meta.CreateOptions ) (meta.Object , error ) {
4142 if o , ok := obj .(* api.ArangoClusterSynchronization ); ! ok {
42- return nil , newInvalidTypeError (ArangoClusterSynchronizationGKv1 ())
43+ return nil , newInvalidTypeError (constants . ArangoClusterSynchronizationGKv1 ())
4344 } else {
4445 return e .i .ArangoClusterSynchronizationModInterface ().V1 ().Create (ctx , o , opts )
4546 }
4647}
4748
4849func (e * arangoClusterSynchronizationsInspectorAnonymousV1 ) Update (ctx context.Context , obj meta.Object , opts meta.UpdateOptions ) (meta.Object , error ) {
4950 if o , ok := obj .(* api.ArangoClusterSynchronization ); ! ok {
50- return nil , newInvalidTypeError (ArangoClusterSynchronizationGKv1 ())
51+ return nil , newInvalidTypeError (constants . ArangoClusterSynchronizationGKv1 ())
5152 } else {
5253 return e .i .ArangoClusterSynchronizationModInterface ().V1 ().Update (ctx , o , opts )
5354 }
5455}
5556
5657func (e * arangoClusterSynchronizationsInspectorAnonymousV1 ) UpdateStatus (ctx context.Context , obj meta.Object , opts meta.UpdateOptions ) (meta.Object , error ) {
5758 if o , ok := obj .(* api.ArangoClusterSynchronization ); ! ok {
58- return nil , newInvalidTypeError (ArangoClusterSynchronizationGKv1 ())
59+ return nil , newInvalidTypeError (constants . ArangoClusterSynchronizationGKv1 ())
5960 } else {
6061 return e .i .ArangoClusterSynchronizationModInterface ().V1 ().UpdateStatus (ctx , o , opts )
6162 }
0 commit comments