mirror of
https://github.com/ysoftdevs/gardener-extension-shoot-fleet-agent.git
synced 2026-03-30 13:52:22 +02:00
gofmt runned
This commit is contained in:
@@ -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{})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user