Skip to content

Commit

Permalink
when creating cluster with behind firewall flag, get the credentials …
Browse files Browse the repository at this point in the history
…from cluster
  • Loading branch information
Oleg Sucharevich committed Jan 13, 2019
1 parent b56a5d1 commit a07ea2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1
6 changes: 2 additions & 4 deletions pkg/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,8 @@ func (kube *kubernetes) GoOverAllContexts() {
func (kube *kubernetes) GoOverContextByName(contextName string, namespace string, serviceaccount string, bf bool, name string) {
var override clientcmd.ConfigOverrides
var config clientcmd.ClientConfig
if bf == false {
override = getDefaultOverride()
config = clientcmd.NewNonInteractiveClientConfig(*kube.config, contextName, &override, nil)
}
override = getDefaultOverride()
config = clientcmd.NewNonInteractiveClientConfig(*kube.config, contextName, &override, nil)
logger := log.WithFields(log.Fields{
"context_name": contextName,
"namespace": namespace,
Expand Down

0 comments on commit a07ea2d

Please sign in to comment.