Skip to content

Commit 8d619ed

Browse files
authored
Remove kubeconfig file check (#1193)
The kubeconfig file check seems to cause problems when using local_file to create the kubeconfig in the same apply. Solves #1142
1 parent 078e9db commit 8d619ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kubernetes/provider.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,6 @@ func initializeConfiguration(d *schema.ResourceData) (*restclient.Config, error)
293293
if err != nil {
294294
return nil, err
295295
}
296-
if _, err := os.Stat(path); err != nil {
297-
return nil, fmt.Errorf("could not open kubeconfig %q: %v", p, err)
298-
}
299296

300297
log.Printf("[DEBUG] Using kubeconfig: %s", path)
301298
expandedPaths = append(expandedPaths, path)

0 commit comments

Comments
 (0)