Skip to content

Commit

Permalink
fix: infer default namespace unless provided by provider config
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed Feb 2, 2022
1 parent 6778889 commit fbb5e07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions provider/pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,11 @@ func (k *kubeProvider) Configure(_ context.Context, req *pulumirpc.ConfigureRequ
}

var err error
namespace := "default"
if k.defaultNamespace != "" {
namespace, _, err := kubeconfig.Namespace()
if err != nil || k.defaultNamespace != "" {
namespace = k.defaultNamespace
}

k.helmReleaseProvider, err = newHelmReleaseProvider(
k.host,
apiConfig,
Expand Down

0 comments on commit fbb5e07

Please sign in to comment.