Skip to content

Commit

Permalink
fix: write kubeconfig if not in deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiGuranIonos committed Dec 9, 2024
1 parent bb1b3dd commit 0201c2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [1.1.7]
### Fixes:
- Write kubeconfig to k8s cluster, only if not in deploying state.

## [1.1.6]
- **Chore**:
### Chore
- Update crossplane-runtime to 1.18.0

## [1.1.4]
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/k8s/k8scluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func (c *externalCluster) Observe(ctx context.Context, mg resource.Managed) (man
if kubeconfig, _, err = c.service.GetKubeConfig(ctx, cr.Status.AtProvider.ClusterID); err != nil {
c.log.Info(fmt.Sprintf("failed to get connection details. error: %v", err))
}
mo.ConnectionDetails = createKubernetesConnectionDetails(c, kubeconfig, mg)
}
mo.ConnectionDetails = createKubernetesConnectionDetails(c, kubeconfig, mg)

return mo, nil
}
Expand Down

0 comments on commit 0201c2b

Please sign in to comment.