Skip to content

Commit

Permalink
fix(kubeconfig): Enforces kubernetes context with helm release namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioab committed Feb 6, 2025
1 parent 420fb40 commit 39b117e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ func (m *Meta) NewKubeConfig(ctx context.Context, namespace string) (*KubeConfig
}
if !kubernetesConfig.ConfigContextCluster.IsNull() {
overrides.Context.Cluster = kubernetesConfig.ConfigContextCluster.ValueString()
// Enforces configured release namespace
overrides.Context.Namespace = namespace
}
}

Expand Down

0 comments on commit 39b117e

Please sign in to comment.