Skip to content

Commit

Permalink
update imports in controller
Browse files Browse the repository at this point in the history
Signed-off-by: ultram4rine <[email protected]>
  • Loading branch information
ultram4rine committed May 3, 2024
1 parent fc62825 commit 1cd53da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/controller/k8sgpt_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
corev1alpha1 "github.com/k8sgpt-ai/k8sgpt-operator/api/v1alpha1"

"github.com/prometheus/client_golang/prometheus"
v1 "k8s.io/api/apps/v1"
kcorev1 "k8s.io/api/core/v1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -160,7 +160,7 @@ func (r *K8sGPTReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
}

// Check and see if the instance is new or has a K8sGPT deployment in flight
deployment := v1.Deployment{}
deployment := appsv1.Deployment{}
err = r.Get(ctx, client.ObjectKey{Namespace: k8sgptConfig.Namespace,
Name: k8sgptConfig.Name}, &deployment)
if client.IgnoreNotFound(err) != nil {
Expand Down Expand Up @@ -371,7 +371,7 @@ func (r *K8sGPTReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
var sinkSecretValue string

if k8sgptConfig.Spec.Sink.Secret != nil {
secret := &kcorev1.Secret{}
secret := &corev1.Secret{}
secretNamespacedName := types.NamespacedName{
Namespace: req.Namespace,
Name: k8sgptConfig.Spec.Sink.Secret.Name,
Expand Down

0 comments on commit 1cd53da

Please sign in to comment.