Skip to content

Commit b4ad1bf

Browse files
committed
run gofumpt
1 parent b3b0f0f commit b4ad1bf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

third_party/vcluster/vcluster.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,21 @@ func (c *Cluster) WithPath(path string) support.E2EClusterProvider {
114114
c.path = path
115115
return c
116116
}
117+
117118
func (c *Cluster) WithOpts(opts ...support.ClusterOpts) support.E2EClusterProvider {
118119
for _, opt := range opts {
119120
opt(c)
120121
}
121122
return c
122123
}
124+
123125
func (c *Cluster) SetDefaults() support.E2EClusterProvider {
124126
if c.path == "" {
125127
c.path = "vcluster"
126128
}
127129
return c
128130
}
131+
129132
func (c *Cluster) Create(ctx context.Context, args ...string) (string, error) {
130133
log.V(4).Info("Creating vcluster ", c.name)
131134
if err := c.findOrInstallVcluster(); err != nil {
@@ -180,13 +183,15 @@ func (c *Cluster) Create(ctx context.Context, args ...string) (string, error) {
180183

181184
return kConfig, nil
182185
}
186+
183187
func (c *Cluster) CreateWithConfig(ctx context.Context, configFile string) (string, error) {
184188
var args []string
185189
if configFile != "" {
186190
args = append(args, "--values", configFile)
187191
}
188192
return c.Create(ctx, args...)
189193
}
194+
190195
func (c *Cluster) GetKubeconfig() string {
191196
return c.kubecfgFile
192197
}
@@ -206,10 +211,12 @@ func (c *Cluster) GetKubectlContext() string {
206211
}
207212
return kc.CurrentContext
208213
}
214+
209215
func (c *Cluster) ExportLogs(ctx context.Context, dest string) error {
210216
// Not implemented
211217
return nil
212218
}
219+
213220
func (c *Cluster) Destroy(ctx context.Context) error {
214221
log.V(4).Info("Destroying vcluster ", c.name)
215222
if err := c.findOrInstallVcluster(); err != nil {
@@ -258,6 +265,7 @@ func (c *Cluster) WaitForControlPlane(ctx context.Context, client klient.Client)
258265
}
259266
return nil
260267
}
268+
261269
func (c *Cluster) KubernetesRestConfig() *rest.Config {
262270
return c.rc
263271
}

0 commit comments

Comments
 (0)