Skip to content

Commit bdc7e9d

Browse files
committed
Fix panic on writing eksctl_cluster kubeconfig
1 parent 3ec010f commit bdc7e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/resource/cluster/cluster_read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (m *Manager) readCluster(d ReadWrite) (*Cluster, error) {
6969
if path != "" {
7070
if _, err := os.Stat(path); os.IsNotExist(err) {
7171
log.Printf("running customdiff: no kubeconfig file found at kubeconfig_path=%s: recreating it", path)
72-
if err := doWriteKubeconfig(nil, d, string(m.getClusterName(cluster, d.Id())), cluster.Region); err != nil {
72+
if err := doWriteKubeconfig(ctx, d, string(m.getClusterName(cluster, d.Id())), cluster.Region); err != nil {
7373
return nil, fmt.Errorf("writing missing kubeconfig on plan: %w", err)
7474
}
7575
}

0 commit comments

Comments
 (0)