Try using a clientset
This commit is contained in:
		@@ -9,13 +9,11 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/kube"
 | 
						"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/kube"
 | 
				
			||||||
	corev1 "k8s.io/api/core/v1"
 | 
						corev1 "k8s.io/api/core/v1"
 | 
				
			||||||
	"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
 | 
					 | 
				
			||||||
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
	"k8s.io/apimachinery/pkg/types"
 | 
						"k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
	"k8s.io/client-go/kubernetes"
 | 
						"k8s.io/client-go/kubernetes"
 | 
				
			||||||
	"k8s.io/client-go/rest"
 | 
						"k8s.io/client-go/rest"
 | 
				
			||||||
	ctrl "sigs.k8s.io/controller-runtime"
 | 
						ctrl "sigs.k8s.io/controller-runtime"
 | 
				
			||||||
	"sigs.k8s.io/controller-runtime/pkg/client"
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type Environemnt struct {
 | 
					type Environemnt struct {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user