99
1010 . "github.com/onsi/ginkgo/v2"
1111 . "github.com/onsi/gomega"
12- trustyaiopendatahubiov1alpha1 "github.com/trustyai-explainability/trustyai-service-operator/api/tas/v1alpha1 "
12+ trustyaiopendatahubiov1 "github.com/trustyai-explainability/trustyai-service-operator/api/tas/v1 "
1313 "github.com/trustyai-explainability/trustyai-service-operator/controllers/constants"
1414 appsv1 "k8s.io/api/apps/v1"
1515 corev1 "k8s.io/api/core/v1"
@@ -30,7 +30,7 @@ func printKubeObject(obj interface{}) {
3030 }
3131}
3232
33- func setupAndTestDeploymentDefault (instance * trustyaiopendatahubiov1alpha1 .TrustyAIService , namespace string ) {
33+ func setupAndTestDeploymentDefault (instance * trustyaiopendatahubiov1 .TrustyAIService , namespace string ) {
3434 Expect (createNamespace (ctx , k8sClient , namespace )).To (Succeed ())
3535 caBundle := reconciler .GetCustomCertificatesBundle (ctx , instance )
3636
@@ -92,7 +92,7 @@ func setupAndTestDeploymentDefault(instance *trustyaiopendatahubiov1alpha1.Trust
9292
9393}
9494
95- func setupAndTestDeploymentConfigMap (instance * trustyaiopendatahubiov1alpha1 .TrustyAIService , namespace string ) {
95+ func setupAndTestDeploymentConfigMap (instance * trustyaiopendatahubiov1 .TrustyAIService , namespace string ) {
9696 serviceImage := "custom-service-image:foo"
9797 kubeRBACProxyImage := "custom-kube-rbac-proxy:bar"
9898 Expect (createNamespace (ctx , k8sClient , namespace )).To (Succeed ())
@@ -165,7 +165,7 @@ func setupAndTestDeploymentConfigMap(instance *trustyaiopendatahubiov1alpha1.Tru
165165
166166}
167167
168- func setupAndTestDeploymentNoCustomCABundle (instance * trustyaiopendatahubiov1alpha1 .TrustyAIService , namespace string ) {
168+ func setupAndTestDeploymentNoCustomCABundle (instance * trustyaiopendatahubiov1 .TrustyAIService , namespace string ) {
169169 Expect (createNamespace (ctx , k8sClient , namespace )).To (Succeed ())
170170
171171 caBundle := reconciler .GetCustomCertificatesBundle (ctx , instance )
@@ -198,7 +198,7 @@ func setupAndTestDeploymentNoCustomCABundle(instance *trustyaiopendatahubiov1alp
198198
199199}
200200
201- func setupAndTestDeploymentCustomCABundle (instance * trustyaiopendatahubiov1alpha1 .TrustyAIService , namespace string ) {
201+ func setupAndTestDeploymentCustomCABundle (instance * trustyaiopendatahubiov1 .TrustyAIService , namespace string ) {
202202 caBundleConfigMap := createTrustedCABundleConfigMap (namespace )
203203 Expect (createNamespace (ctx , k8sClient , namespace )).To (Succeed ())
204204 Expect (k8sClient .Create (ctx , caBundleConfigMap )).To (Succeed ())
@@ -233,7 +233,7 @@ func setupAndTestDeploymentCustomCABundle(instance *trustyaiopendatahubiov1alpha
233233
234234}
235235
236- func setupAndTestDeploymentServiceAccount (instance * trustyaiopendatahubiov1alpha1 .TrustyAIService , namespace string , mode string ) {
236+ func setupAndTestDeploymentServiceAccount (instance * trustyaiopendatahubiov1 .TrustyAIService , namespace string , mode string ) {
237237 Expect (createNamespace (ctx , k8sClient , namespace )).To (Succeed ())
238238
239239 caBundle := reconciler .GetCustomCertificatesBundle (ctx , instance )
@@ -253,7 +253,7 @@ func setupAndTestDeploymentServiceAccount(instance *trustyaiopendatahubiov1alpha
253253 Expect (deployment .Spec .Template .Spec .ServiceAccountName ).To (Equal (instance .Name + "-proxy" ))
254254}
255255
256- func setupAndTestDeploymentInferenceService (instance * trustyaiopendatahubiov1alpha1 .TrustyAIService , namespace string , mode string ) {
256+ func setupAndTestDeploymentInferenceService (instance * trustyaiopendatahubiov1 .TrustyAIService , namespace string , mode string ) {
257257 WaitFor (func () error {
258258 return createNamespace (ctx , k8sClient , namespace )
259259 }, "failed to create namespace" )
@@ -346,7 +346,7 @@ var _ = Describe("TrustyAI operator", func() {
346346 })
347347
348348 Context ("When deploying with default settings without an InferenceService" , func () {
349- var instance * trustyaiopendatahubiov1alpha1 .TrustyAIService
349+ var instance * trustyaiopendatahubiov1 .TrustyAIService
350350 It ("Creates a deployment and a service with the default configuration in PVC-mode" , func () {
351351 namespace := "trusty-ns-a-1-pvc"
352352 instance = createDefaultPVCCustomResource (namespace )
@@ -374,7 +374,7 @@ var _ = Describe("TrustyAI operator", func() {
374374 })
375375
376376 Context ("When deploying with a ConfigMap and without an InferenceService" , func () {
377- var instance * trustyaiopendatahubiov1alpha1 .TrustyAIService
377+ var instance * trustyaiopendatahubiov1 .TrustyAIService
378378
379379 It ("Creates a deployment and a service with the ConfigMap configuration in PVC-mode" , func () {
380380 namespace := "trusty-ns-a-1-cm-pvc"
@@ -390,7 +390,7 @@ var _ = Describe("TrustyAI operator", func() {
390390 })
391391
392392 Context ("When deploying with default settings without an InferenceService" , func () {
393- var instance * trustyaiopendatahubiov1alpha1 .TrustyAIService
393+ var instance * trustyaiopendatahubiov1 .TrustyAIService
394394
395395 It ("should set environment variables correctly in PVC mode" , func () {
396396
@@ -715,7 +715,7 @@ var _ = Describe("TrustyAI operator", func() {
715715 })
716716
717717 Context ("When deploying with no custom CA bundle ConfigMap" , func () {
718- var instance * trustyaiopendatahubiov1alpha1 .TrustyAIService
718+ var instance * trustyaiopendatahubiov1 .TrustyAIService
719719
720720 It ("should use the correct service account and not include CustomCertificatesBundle in PVC-mode" , func () {
721721
@@ -739,7 +739,7 @@ var _ = Describe("TrustyAI operator", func() {
739739 })
740740
741741 Context ("When deploying with a custom CA bundle ConfigMap" , func () {
742- var instance * trustyaiopendatahubiov1alpha1 .TrustyAIService
742+ var instance * trustyaiopendatahubiov1 .TrustyAIService
743743
744744 It ("should use the correct service account and include CustomCertificatesBundle in PVC-mode" , func () {
745745
@@ -762,7 +762,7 @@ var _ = Describe("TrustyAI operator", func() {
762762 })
763763
764764 Context ("When deploying with default settings without an InferenceService" , func () {
765- var instance * trustyaiopendatahubiov1alpha1 .TrustyAIService
765+ var instance * trustyaiopendatahubiov1 .TrustyAIService
766766
767767 It ("should use the correct service account in PVC-mode" , func () {
768768
@@ -843,11 +843,11 @@ var _ = Describe("TrustyAI operator", func() {
843843 })
844844
845845 Context ("Across multiple namespaces" , func () {
846- var instances []* trustyaiopendatahubiov1alpha1 .TrustyAIService
846+ var instances []* trustyaiopendatahubiov1 .TrustyAIService
847847
848848 var namespaces = []string {"namespace1" , "namespace2" , "namespace3" }
849849
850- instances = make ([]* trustyaiopendatahubiov1alpha1 .TrustyAIService , len (namespaces ))
850+ instances = make ([]* trustyaiopendatahubiov1 .TrustyAIService , len (namespaces ))
851851
852852 It ("Deploys services with defaults in each specified namespace" , func () {
853853 for i , namespace := range namespaces {
0 commit comments