gofmt runned

This commit is contained in:
Jakub Vavřík
2021-01-28 18:26:43 +01:00
parent 879cd4b33d
commit ac4d934c86
7 changed files with 21 additions and 23 deletions

View File

@@ -12,8 +12,8 @@ import (
type FleetManager struct {
secretClient kubernetes.Clientset
fleetClient clientset.Interface
namespace string
fleetClient clientset.Interface
namespace string
}
func NewManagerForConfig(c *rest.Config, namespace string) (*FleetManager, error) {
@@ -30,7 +30,7 @@ func NewManagerForConfig(c *rest.Config, namespace string) (*FleetManager, error
return &FleetManager{
secretClient: *secretClient,
fleetClient: fleetClient,
namespace: namespace,
namespace: namespace,
}, nil
}
@@ -48,4 +48,4 @@ func (f *FleetManager) GetCluster(ctx context.Context, clusterName string) (*v1a
func (f *FleetManager) CreateKubeconfigSecret(ctx context.Context, secret *corev1.Secret) (*corev1.Secret, error) {
return f.secretClient.CoreV1().Secrets(f.namespace).Create(ctx, secret, metav1.CreateOptions{})
}
}